From c9024fa9604e14c37bb7f15b1c74383fe3bbe965 Mon Sep 17 00:00:00 2001 From: Jonathan Kew Date: Mon, 13 Jan 2025 15:27:24 +0000 Subject: [PATCH] [css-fonts] Add a test that src:local matches a single face, not a whole family. This was discussed at some length several years ago in https://github.com/web-platform-tests/wpt/pull/28990, but the test there never got merged. Given the time that has passed, it seemed cleanest to rewrite this as a new PR that simply adds the test we concluded was missing. This test depends on having a locally-installed Arial font family, which is true across all current macOS and Windows versions, but may not be the case on other platforms; in that case it falls back to Ahem and should harmlessly "pass" without really testing anything. --- .../font-face-local-not-family-ref.html | 19 ++++++++++++++ css/css-fonts/font-face-local-not-family.html | 25 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 css/css-fonts/font-face-local-not-family-ref.html create mode 100644 css/css-fonts/font-face-local-not-family.html diff --git a/css/css-fonts/font-face-local-not-family-ref.html b/css/css-fonts/font-face-local-not-family-ref.html new file mode 100644 index 00000000000000..e51cb80a440dcc --- /dev/null +++ b/css/css-fonts/font-face-local-not-family-ref.html @@ -0,0 +1,19 @@ + + +@font-face src:local() reference + + + +

These two lines should look the same

+ +

These two lines should look the same

diff --git a/css/css-fonts/font-face-local-not-family.html b/css/css-fonts/font-face-local-not-family.html new file mode 100644 index 00000000000000..6b6d5c9a368eb4 --- /dev/null +++ b/css/css-fonts/font-face-local-not-family.html @@ -0,0 +1,25 @@ + + +@font-face src:local() test + + + + + + +

These two lines should look the same

+ + +

These two lines should look the same