Title: [283154] trunk/LayoutTests/imported/w3c
- Revision
- 283154
- Author
- [email protected]
- Date
- 2021-09-27 16:44:54 -0700 (Mon, 27 Sep 2021)
Log Message
Add test to make sure CSSFontPaletteValuesRule's attributes are readonly
https://bugs.webkit.org/show_bug.cgi?id=230791
<rdar://problem/83530165>
Reviewed by Simon Fraser.
The spec enforces this in w3c/csswg-drafts@9ddf938. This is already the case in WebKit.
This is being upstreamed in https://github.com/web-platform-tests/wpt/pull/30964.
* web-platform-tests/css/css-fonts/parsing/font-palette-values-invalid.html:
Modified Paths
Diff
Modified: trunk/LayoutTests/imported/w3c/ChangeLog (283153 => 283154)
--- trunk/LayoutTests/imported/w3c/ChangeLog 2021-09-27 23:33:04 UTC (rev 283153)
+++ trunk/LayoutTests/imported/w3c/ChangeLog 2021-09-27 23:44:54 UTC (rev 283154)
@@ -1,5 +1,19 @@
2021-09-27 Myles C. Maxfield <[email protected]>
+ Add test to make sure CSSFontPaletteValuesRule's attributes are readonly
+ https://bugs.webkit.org/show_bug.cgi?id=230791
+ <rdar://problem/83530165>
+
+ Reviewed by Simon Fraser.
+
+ The spec enforces this in w3c/csswg-drafts@9ddf938. This is already the case in WebKit.
+
+ This is being upstreamed in https://github.com/web-platform-tests/wpt/pull/30964.
+
+ * web-platform-tests/css/css-fonts/parsing/font-palette-values-invalid.html:
+
+2021-09-27 Myles C. Maxfield <[email protected]>
+
Add support for CSSFontPaletteValuesRule.name
https://bugs.webkit.org/show_bug.cgi?id=230787
<rdar://problem/83528540>
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/parsing/font-palette-values-invalid.html (283153 => 283154)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/parsing/font-palette-values-invalid.html 2021-09-27 23:33:04 UTC (rev 283153)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/parsing/font-palette-values-invalid.html 2021-09-27 23:44:54 UTC (rev 283154)
@@ -115,6 +115,20 @@
let rule = rules[0];
assert_equals(text.indexOf("font-family"), -1);
assert_equals(rule.fontFamily, "");
+ rule.fontFamily = "SomeFontFamily";
+ assert_equals(rule.fontFamily, "");
+ assert_equals(rule.basePalette, "");
+ rule.basePalette = "7";
+ assert_equals(rule.basePalette, "");
+ assert_throws_js(TypeError, function() {
+ rule.clear();
+ });
+ assert_throws_js(TypeError, function() {
+ rule.delete(4);
+ });
+ assert_throws_js(TypeError, function() {
+ rule.set(4, "0 #123");
+ });
});
test(function() {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes