From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- .../tests/css/css-font-loading/META.yml | 4 + .../css/css-font-loading/empty-family-load.html | 18 ++ .../css/css-font-loading/font-face-reject.html | 18 ++ .../fontface-descriptor-updates-ref.html | 18 ++ .../fontface-descriptor-updates.html | 56 ++++++ .../fontface-load-in-modal-dialog.html | 30 +++ ...face-override-descriptor-getter-setter.sub.html | 222 +++++++++++++++++++++ .../fontface-override-descriptors-ref.html | 27 +++ .../fontface-override-descriptors.html | 29 +++ .../fontface-size-adjust-descriptor-ref.html | 26 +++ .../fontface-size-adjust-descriptor.html | 30 +++ .../fontfaceset-add-css-connected.html | 28 +++ .../fontfaceset-clear-css-connected-2-ref.html | 13 ++ .../fontfaceset-clear-css-connected-2.html | 17 ++ .../fontfaceset-clear-css-connected.html | 23 +++ .../fontfaceset-delete-css-connected-2-ref.html | 13 ++ .../fontfaceset-delete-css-connected-2.html | 19 ++ .../fontfaceset-delete-css-connected.html | 23 +++ .../css/css-font-loading/fontfaceset-has.html | 37 ++++ .../fontfaceset-load-css-connected.html | 27 +++ .../fontfaceset-load-css-wide-keywords.html | 48 +++++ .../css/css-font-loading/fontfaceset-load-var.html | 44 ++++ .../fontfaceset-loading-worker-crash.html | 7 + .../fontfaceset-no-root-element.html | 12 ++ ...fontfaceset-update-after-stylesheet-change.html | 27 +++ .../fontfaceset-worker-fontface-crash.html | 32 +++ .../fontfacesetloadevent-constructor.html | 20 ++ .../css/css-font-loading/idlharness.https.html | 29 +++ .../css/css-font-loading/nonexistent-file-url.html | 19 ++ .../css/css-font-loading/resources/GenI102.woff2 | Bin 0 -> 102536 bytes .../css/css-font-loading/resources/GenR102.woff2 | Bin 0 -> 106560 bytes .../css/css-font-loading/resources/Rochester.otf | Bin 0 -> 27260 bytes .../support/fontfaceset-loading-worker.js | 8 + 33 files changed, 924 insertions(+) create mode 100644 testing/web-platform/tests/css/css-font-loading/META.yml create mode 100644 testing/web-platform/tests/css/css-font-loading/empty-family-load.html create mode 100644 testing/web-platform/tests/css/css-font-loading/font-face-reject.html create mode 100644 testing/web-platform/tests/css/css-font-loading/fontface-descriptor-updates-ref.html create mode 100644 testing/web-platform/tests/css/css-font-loading/fontface-descriptor-updates.html create mode 100644 testing/web-platform/tests/css/css-font-loading/fontface-load-in-modal-dialog.html create mode 100644 testing/web-platform/tests/css/css-font-loading/fontface-override-descriptor-getter-setter.sub.html create mode 100644 testing/web-platform/tests/css/css-font-loading/fontface-override-descriptors-ref.html create mode 100644 testing/web-platform/tests/css/css-font-loading/fontface-override-descriptors.html create mode 100644 testing/web-platform/tests/css/css-font-loading/fontface-size-adjust-descriptor-ref.html create mode 100644 testing/web-platform/tests/css/css-font-loading/fontface-size-adjust-descriptor.html create mode 100644 testing/web-platform/tests/css/css-font-loading/fontfaceset-add-css-connected.html create mode 100644 testing/web-platform/tests/css/css-font-loading/fontfaceset-clear-css-connected-2-ref.html create mode 100644 testing/web-platform/tests/css/css-font-loading/fontfaceset-clear-css-connected-2.html create mode 100644 testing/web-platform/tests/css/css-font-loading/fontfaceset-clear-css-connected.html create mode 100644 testing/web-platform/tests/css/css-font-loading/fontfaceset-delete-css-connected-2-ref.html create mode 100644 testing/web-platform/tests/css/css-font-loading/fontfaceset-delete-css-connected-2.html create mode 100644 testing/web-platform/tests/css/css-font-loading/fontfaceset-delete-css-connected.html create mode 100644 testing/web-platform/tests/css/css-font-loading/fontfaceset-has.html create mode 100644 testing/web-platform/tests/css/css-font-loading/fontfaceset-load-css-connected.html create mode 100644 testing/web-platform/tests/css/css-font-loading/fontfaceset-load-css-wide-keywords.html create mode 100644 testing/web-platform/tests/css/css-font-loading/fontfaceset-load-var.html create mode 100644 testing/web-platform/tests/css/css-font-loading/fontfaceset-loading-worker-crash.html create mode 100644 testing/web-platform/tests/css/css-font-loading/fontfaceset-no-root-element.html create mode 100644 testing/web-platform/tests/css/css-font-loading/fontfaceset-update-after-stylesheet-change.html create mode 100644 testing/web-platform/tests/css/css-font-loading/fontfaceset-worker-fontface-crash.html create mode 100644 testing/web-platform/tests/css/css-font-loading/fontfacesetloadevent-constructor.html create mode 100644 testing/web-platform/tests/css/css-font-loading/idlharness.https.html create mode 100644 testing/web-platform/tests/css/css-font-loading/nonexistent-file-url.html create mode 100644 testing/web-platform/tests/css/css-font-loading/resources/GenI102.woff2 create mode 100644 testing/web-platform/tests/css/css-font-loading/resources/GenR102.woff2 create mode 100644 testing/web-platform/tests/css/css-font-loading/resources/Rochester.otf create mode 100644 testing/web-platform/tests/css/css-font-loading/support/fontfaceset-loading-worker.js (limited to 'testing/web-platform/tests/css/css-font-loading') diff --git a/testing/web-platform/tests/css/css-font-loading/META.yml b/testing/web-platform/tests/css/css-font-loading/META.yml new file mode 100644 index 0000000000..3ac9b655b0 --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/META.yml @@ -0,0 +1,4 @@ +spec: https://drafts.csswg.org/css-font-loading/ +suggested_reviewers: + - tabatkins + - svgeesus diff --git a/testing/web-platform/tests/css/css-font-loading/empty-family-load.html b/testing/web-platform/tests/css/css-font-loading/empty-family-load.html new file mode 100644 index 0000000000..a2aa374af7 --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/empty-family-load.html @@ -0,0 +1,18 @@ + + + + + + + + + + diff --git a/testing/web-platform/tests/css/css-font-loading/font-face-reject.html b/testing/web-platform/tests/css/css-font-loading/font-face-reject.html new file mode 100644 index 0000000000..47456de443 --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/font-face-reject.html @@ -0,0 +1,18 @@ + + + + + + + + + +
a
+ diff --git a/testing/web-platform/tests/css/css-font-loading/fontface-descriptor-updates-ref.html b/testing/web-platform/tests/css/css-font-loading/fontface-descriptor-updates-ref.html new file mode 100644 index 0000000000..513867b350 --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/fontface-descriptor-updates-ref.html @@ -0,0 +1,18 @@ + + +CSS Font Loading reference: modification of descriptors + + +
+All lines below should use the same serif font, with the word "weight" in italics: +

Using original family name of a FontFace

+

Using updated family name of a FontFace

+

Using updated weight descriptors

+

Using updated unicode-range descriptors

+
+ diff --git a/testing/web-platform/tests/css/css-font-loading/fontface-descriptor-updates.html b/testing/web-platform/tests/css/css-font-loading/fontface-descriptor-updates.html new file mode 100644 index 0000000000..038b96da1e --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/fontface-descriptor-updates.html @@ -0,0 +1,56 @@ + + + +CSS Font Loading test: modification of descriptors + + + + + + + +
+All lines below should use the same serif font, with the word "weight" in italics: +

Using original family name of a FontFace

+

Using updated family name of a FontFace

+

Using updated weight descriptors

+

Using updated unicode-range descriptors

+
+ + diff --git a/testing/web-platform/tests/css/css-font-loading/fontface-load-in-modal-dialog.html b/testing/web-platform/tests/css/css-font-loading/fontface-load-in-modal-dialog.html new file mode 100644 index 0000000000..8838e05eaf --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/fontface-load-in-modal-dialog.html @@ -0,0 +1,30 @@ + + + + + + + + +0123456789 + diff --git a/testing/web-platform/tests/css/css-font-loading/fontface-override-descriptor-getter-setter.sub.html b/testing/web-platform/tests/css/css-font-loading/fontface-override-descriptor-getter-setter.sub.html new file mode 100644 index 0000000000..a3d8ccec36 --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/fontface-override-descriptor-getter-setter.sub.html @@ -0,0 +1,222 @@ + +Tests getters and setters of the font metrics override descriptors of FontFace + + + + + + diff --git a/testing/web-platform/tests/css/css-font-loading/fontface-override-descriptors-ref.html b/testing/web-platform/tests/css/css-font-loading/fontface-override-descriptors-ref.html new file mode 100644 index 0000000000..a08e7e97e0 --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/fontface-override-descriptors-ref.html @@ -0,0 +1,27 @@ + +Tests that the ascentOverride, descentOverride and lineGapOverride attributes of FontFace work + + + +
+
XXXXX
+
XXXXX
+
diff --git a/testing/web-platform/tests/css/css-font-loading/fontface-override-descriptors.html b/testing/web-platform/tests/css/css-font-loading/fontface-override-descriptors.html new file mode 100644 index 0000000000..34506b1547 --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/fontface-override-descriptors.html @@ -0,0 +1,29 @@ + +Tests that the ascentOverride, descentOverride and lineGapOverride attributes of FontFace work + + + + + + +
+ XXXXX
+ XXXXX +
diff --git a/testing/web-platform/tests/css/css-font-loading/fontface-size-adjust-descriptor-ref.html b/testing/web-platform/tests/css/css-font-loading/fontface-size-adjust-descriptor-ref.html new file mode 100644 index 0000000000..e752f4110c --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/fontface-size-adjust-descriptor-ref.html @@ -0,0 +1,26 @@ + + +Tests that the sizeAdjust attribute of FontFace works + + + +

The first and fourth characters should be double-sized:

+
+ FooBar +
diff --git a/testing/web-platform/tests/css/css-font-loading/fontface-size-adjust-descriptor.html b/testing/web-platform/tests/css/css-font-loading/fontface-size-adjust-descriptor.html new file mode 100644 index 0000000000..40e7a7f70a --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/fontface-size-adjust-descriptor.html @@ -0,0 +1,30 @@ + +Tests that the sizeAdjust attribute of FontFace works + + + + + + + + +

The first and fourth characters should be double-sized:

+
+ FooBar +
diff --git a/testing/web-platform/tests/css/css-font-loading/fontfaceset-add-css-connected.html b/testing/web-platform/tests/css/css-font-loading/fontfaceset-add-css-connected.html new file mode 100644 index 0000000000..874558ca85 --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/fontfaceset-add-css-connected.html @@ -0,0 +1,28 @@ + + + + + + + + + + diff --git a/testing/web-platform/tests/css/css-font-loading/fontfaceset-clear-css-connected-2-ref.html b/testing/web-platform/tests/css/css-font-loading/fontfaceset-clear-css-connected-2-ref.html new file mode 100644 index 0000000000..4c13ebc11c --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/fontfaceset-clear-css-connected-2-ref.html @@ -0,0 +1,13 @@ + + + + + + +
Hi
+ diff --git a/testing/web-platform/tests/css/css-font-loading/fontfaceset-clear-css-connected-2.html b/testing/web-platform/tests/css/css-font-loading/fontfaceset-clear-css-connected-2.html new file mode 100644 index 0000000000..af285460ef --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/fontfaceset-clear-css-connected-2.html @@ -0,0 +1,17 @@ + + + + + + + +
Hi
+ + diff --git a/testing/web-platform/tests/css/css-font-loading/fontfaceset-clear-css-connected.html b/testing/web-platform/tests/css/css-font-loading/fontfaceset-clear-css-connected.html new file mode 100644 index 0000000000..66f786d953 --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/fontfaceset-clear-css-connected.html @@ -0,0 +1,23 @@ + + + + + + + + + + diff --git a/testing/web-platform/tests/css/css-font-loading/fontfaceset-delete-css-connected-2-ref.html b/testing/web-platform/tests/css/css-font-loading/fontfaceset-delete-css-connected-2-ref.html new file mode 100644 index 0000000000..e183c44e89 --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/fontfaceset-delete-css-connected-2-ref.html @@ -0,0 +1,13 @@ + + + + + + +
Hi
+ diff --git a/testing/web-platform/tests/css/css-font-loading/fontfaceset-delete-css-connected-2.html b/testing/web-platform/tests/css/css-font-loading/fontfaceset-delete-css-connected-2.html new file mode 100644 index 0000000000..250ebb2b3b --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/fontfaceset-delete-css-connected-2.html @@ -0,0 +1,19 @@ + + + + + + + +
Hi
+ + diff --git a/testing/web-platform/tests/css/css-font-loading/fontfaceset-delete-css-connected.html b/testing/web-platform/tests/css/css-font-loading/fontfaceset-delete-css-connected.html new file mode 100644 index 0000000000..becea05273 --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/fontfaceset-delete-css-connected.html @@ -0,0 +1,23 @@ + + + + + + + + + + diff --git a/testing/web-platform/tests/css/css-font-loading/fontfaceset-has.html b/testing/web-platform/tests/css/css-font-loading/fontfaceset-has.html new file mode 100644 index 0000000000..acfeda840f --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/fontfaceset-has.html @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/css/css-font-loading/fontfaceset-load-css-connected.html b/testing/web-platform/tests/css/css-font-loading/fontfaceset-load-css-connected.html new file mode 100644 index 0000000000..2e6249526c --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/fontfaceset-load-css-connected.html @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/css/css-font-loading/fontfaceset-load-css-wide-keywords.html b/testing/web-platform/tests/css/css-font-loading/fontfaceset-load-css-wide-keywords.html new file mode 100644 index 0000000000..b5716fb4a0 --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/fontfaceset-load-css-wide-keywords.html @@ -0,0 +1,48 @@ + +SyntaxError thrown when matching CSS-wide keyword + + + + + diff --git a/testing/web-platform/tests/css/css-font-loading/fontfaceset-load-var.html b/testing/web-platform/tests/css/css-font-loading/fontfaceset-load-var.html new file mode 100644 index 0000000000..1d74f8ed2a --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/fontfaceset-load-var.html @@ -0,0 +1,44 @@ + +SyntaxError thrown when matching loading values with var() + + + + + diff --git a/testing/web-platform/tests/css/css-font-loading/fontfaceset-loading-worker-crash.html b/testing/web-platform/tests/css/css-font-loading/fontfaceset-loading-worker-crash.html new file mode 100644 index 0000000000..552722b6ed --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/fontfaceset-loading-worker-crash.html @@ -0,0 +1,7 @@ + + diff --git a/testing/web-platform/tests/css/css-font-loading/fontfaceset-no-root-element.html b/testing/web-platform/tests/css/css-font-loading/fontfaceset-no-root-element.html new file mode 100644 index 0000000000..130019162f --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/fontfaceset-no-root-element.html @@ -0,0 +1,12 @@ + +CSS Font Loading test: Load Document FontFaceSet font without documentElement + + + diff --git a/testing/web-platform/tests/css/css-font-loading/fontfaceset-update-after-stylesheet-change.html b/testing/web-platform/tests/css/css-font-loading/fontfaceset-update-after-stylesheet-change.html new file mode 100644 index 0000000000..f645f52029 --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/fontfaceset-update-after-stylesheet-change.html @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/css/css-font-loading/fontfaceset-worker-fontface-crash.html b/testing/web-platform/tests/css/css-font-loading/fontfaceset-worker-fontface-crash.html new file mode 100644 index 0000000000..11f7e1faf0 --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/fontfaceset-worker-fontface-crash.html @@ -0,0 +1,32 @@ + + + + + + diff --git a/testing/web-platform/tests/css/css-font-loading/fontfacesetloadevent-constructor.html b/testing/web-platform/tests/css/css-font-loading/fontfacesetloadevent-constructor.html new file mode 100644 index 0000000000..d5038ce690 --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/fontfacesetloadevent-constructor.html @@ -0,0 +1,20 @@ + +FontFaceSetLoadEvent constructor + + + + diff --git a/testing/web-platform/tests/css/css-font-loading/idlharness.https.html b/testing/web-platform/tests/css/css-font-loading/idlharness.https.html new file mode 100644 index 0000000000..23fc2cb9e6 --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/idlharness.https.html @@ -0,0 +1,29 @@ + +Font Loading API IDL tests + + + + + + + diff --git a/testing/web-platform/tests/css/css-font-loading/nonexistent-file-url.html b/testing/web-platform/tests/css/css-font-loading/nonexistent-file-url.html new file mode 100644 index 0000000000..02ff678b3e --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/nonexistent-file-url.html @@ -0,0 +1,19 @@ + + + + + + + + + + diff --git a/testing/web-platform/tests/css/css-font-loading/resources/GenI102.woff2 b/testing/web-platform/tests/css/css-font-loading/resources/GenI102.woff2 new file mode 100644 index 0000000000..117d4a8fe7 Binary files /dev/null and b/testing/web-platform/tests/css/css-font-loading/resources/GenI102.woff2 differ diff --git a/testing/web-platform/tests/css/css-font-loading/resources/GenR102.woff2 b/testing/web-platform/tests/css/css-font-loading/resources/GenR102.woff2 new file mode 100644 index 0000000000..6e8b6d17e2 Binary files /dev/null and b/testing/web-platform/tests/css/css-font-loading/resources/GenR102.woff2 differ diff --git a/testing/web-platform/tests/css/css-font-loading/resources/Rochester.otf b/testing/web-platform/tests/css/css-font-loading/resources/Rochester.otf new file mode 100644 index 0000000000..79f63ced68 Binary files /dev/null and b/testing/web-platform/tests/css/css-font-loading/resources/Rochester.otf differ diff --git a/testing/web-platform/tests/css/css-font-loading/support/fontfaceset-loading-worker.js b/testing/web-platform/tests/css/css-font-loading/support/fontfaceset-loading-worker.js new file mode 100644 index 0000000000..7357975661 --- /dev/null +++ b/testing/web-platform/tests/css/css-font-loading/support/fontfaceset-loading-worker.js @@ -0,0 +1,8 @@ +onconnect = async function(e) { + e.ports[0].onmessage = async () => { + let a = new FontFace("family_name_0", "url(/fonts/Ahem.ttf?fontfaceset-loading-worker)") + self.close() + await a.load() + let _ = new File([a]) + } +} -- cgit v1.2.3