Title: [283539] trunk/LayoutTests/imported/w3c
Revision
283539
Author
[email protected]
Date
2021-10-05 00:04:16 -0700 (Tue, 05 Oct 2021)

Log Message

Test a font palette identifier of just "--"
https://bugs.webkit.org/show_bug.cgi?id=230975
<rdar://problem/83681811>

Reviewed by Tim Horton.

It's a valid <dashed-ident>:
"The <dashed-ident> production is a <custom-ident>, with all the case-sensitivity
that implies, with the additional restriction that it must start with two dashes
(U+002D HYPHEN-MINUS)."

This is being upstreamed at https://github.com/web-platform-tests/wpt/pull/30963.

* web-platform-tests/css/css-fonts/parsing/font-palette-valid-expected.txt:
* web-platform-tests/css/css-fonts/parsing/font-palette-valid.html:
* web-platform-tests/css/css-fonts/parsing/font-palette-values-valid-expected.txt:
* web-platform-tests/css/css-fonts/parsing/font-palette-values-valid.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/imported/w3c/ChangeLog (283538 => 283539)


--- trunk/LayoutTests/imported/w3c/ChangeLog	2021-10-05 06:45:46 UTC (rev 283538)
+++ trunk/LayoutTests/imported/w3c/ChangeLog	2021-10-05 07:04:16 UTC (rev 283539)
@@ -1,3 +1,23 @@
+2021-10-05  Myles C. Maxfield  <[email protected]>
+
+        Test a font palette identifier of just "--"
+        https://bugs.webkit.org/show_bug.cgi?id=230975
+        <rdar://problem/83681811>
+
+        Reviewed by Tim Horton.
+
+        It's a valid <dashed-ident>:
+        "The <dashed-ident> production is a <custom-ident>, with all the case-sensitivity
+        that implies, with the additional restriction that it must start with two dashes
+        (U+002D HYPHEN-MINUS)."
+
+        This is being upstreamed at https://github.com/web-platform-tests/wpt/pull/30963.
+
+        * web-platform-tests/css/css-fonts/parsing/font-palette-valid-expected.txt:
+        * web-platform-tests/css/css-fonts/parsing/font-palette-valid.html:
+        * web-platform-tests/css/css-fonts/parsing/font-palette-values-valid-expected.txt:
+        * web-platform-tests/css/css-fonts/parsing/font-palette-values-valid.html:
+
 2021-10-04  Myles C. Maxfield  <[email protected]>
 
         Stop parsing context-sensitive colors in override-color

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/parsing/font-palette-valid-expected.txt (283538 => 283539)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/parsing/font-palette-valid-expected.txt	2021-10-05 06:45:46 UTC (rev 283538)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/parsing/font-palette-valid-expected.txt	2021-10-05 07:04:16 UTC (rev 283539)
@@ -3,4 +3,5 @@
 PASS e.style['font-palette'] = "light" should set the property value
 PASS e.style['font-palette'] = "dark" should set the property value
 PASS e.style['font-palette'] = "--pitchfork" should set the property value
+PASS e.style['font-palette'] = "--" should set the property value
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/parsing/font-palette-valid.html (283538 => 283539)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/parsing/font-palette-valid.html	2021-10-05 06:45:46 UTC (rev 283538)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/parsing/font-palette-valid.html	2021-10-05 07:04:16 UTC (rev 283539)
@@ -15,6 +15,7 @@
 test_valid_value('font-palette', 'light');
 test_valid_value('font-palette', 'dark');
 test_valid_value('font-palette', '--pitchfork');
+test_valid_value('font-palette', '--');
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/parsing/font-palette-values-valid-expected.txt (283538 => 283539)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/parsing/font-palette-values-valid-expected.txt	2021-10-05 06:45:46 UTC (rev 283538)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/parsing/font-palette-values-valid-expected.txt	2021-10-05 07:04:16 UTC (rev 283539)
@@ -29,4 +29,6 @@
 PASS CSS Fonts Module Level 4: parsing @font-palette-values 27
 PASS CSS Fonts Module Level 4: parsing @font-palette-values 28
 PASS CSS Fonts Module Level 4: parsing @font-palette-values 29
+PASS CSS Fonts Module Level 4: parsing @font-palette-values 30
+PASS CSS Fonts Module Level 4: parsing @font-palette-values 31
 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/parsing/font-palette-values-valid.html (283538 => 283539)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/parsing/font-palette-values-valid.html	2021-10-05 06:45:46 UTC (rev 283538)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/parsing/font-palette-values-valid.html	2021-10-05 07:04:16 UTC (rev 283539)
@@ -94,6 +94,10 @@
 @font-palette-values --O {
     override-colors: 0 transparent;
 }
+
+/* 15 */
+@font-palette-values -- {
+}
 </style>
 </head>
 <body>
@@ -339,6 +343,19 @@
     assert_equals(rule.basePalette, "");
     assert_not_equals(rule.overrideColors, "");
 });
+
+test(function() {
+    let text = rules[15].cssText;
+    assert_not_equals(text.indexOf("--"), -1);
+});
+
+test(function() {
+    let rule = rules[15];
+    assert_equals(rule.name, "--");
+    assert_equals(rule.fontFamily, "");
+    assert_equals(rule.basePalette, "");
+    assert_equals(rule.overrideColors, "");
+});
 </script>
 </body>
 </html>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to