Title: [279176] trunk/LayoutTests
- Revision
- 279176
- Author
- [email protected]
- Date
- 2021-06-23 11:38:56 -0700 (Wed, 23 Jun 2021)
Log Message
CSSStyleDeclaration.getPropertyPriority() should return the empty string for invalid CSS properties
https://bugs.webkit.org/show_bug.cgi?id=227257
<rdar://problem/79622278>
Reviewed by Darin Adler.
Follow-up to r279125 to improve test coverage for usage of USVString in CSSStyleDeclaration.
* fast/css/CSSStyleDeclaration-setProperty-unicode-expected.txt: Added.
* fast/css/CSSStyleDeclaration-setProperty-unicode.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (279175 => 279176)
--- trunk/LayoutTests/ChangeLog 2021-06-23 18:34:02 UTC (rev 279175)
+++ trunk/LayoutTests/ChangeLog 2021-06-23 18:38:56 UTC (rev 279176)
@@ -1,3 +1,16 @@
+2021-06-23 Chris Dumez <[email protected]>
+
+ CSSStyleDeclaration.getPropertyPriority() should return the empty string for invalid CSS properties
+ https://bugs.webkit.org/show_bug.cgi?id=227257
+ <rdar://problem/79622278>
+
+ Reviewed by Darin Adler.
+
+ Follow-up to r279125 to improve test coverage for usage of USVString in CSSStyleDeclaration.
+
+ * fast/css/CSSStyleDeclaration-setProperty-unicode-expected.txt: Added.
+ * fast/css/CSSStyleDeclaration-setProperty-unicode.html: Added.
+
2021-06-23 Amir Mark Jr <[email protected]>
[macOS WK1] imported/w3c/web-platform-tests/css/css-scroll-snap/scroll-target-snap-003.html is a flaky failure.
Added: trunk/LayoutTests/fast/css/CSSStyleDeclaration-setProperty-unicode-expected.txt (0 => 279176)
--- trunk/LayoutTests/fast/css/CSSStyleDeclaration-setProperty-unicode-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/css/CSSStyleDeclaration-setProperty-unicode-expected.txt 2021-06-23 18:38:56 UTC (rev 279176)
@@ -0,0 +1,12 @@
+Tests use of USVString in CSSStyleDeclaration.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS declaration.getPropertyValue('animation-name') is "abc�def�ghi"
+PASS declaration.cssText.includes(REPLACED) is true
+PASS declaration.removeProperty('animation-name') is "abc�def�ghi"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Added: trunk/LayoutTests/fast/css/CSSStyleDeclaration-setProperty-unicode.html (0 => 279176)
--- trunk/LayoutTests/fast/css/CSSStyleDeclaration-setProperty-unicode.html (rev 0)
+++ trunk/LayoutTests/fast/css/CSSStyleDeclaration-setProperty-unicode.html 2021-06-23 18:38:56 UTC (rev 279176)
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<body>
+<script src=""
+<script>
+const CONTAINS_UNPAIRED_SURROGATES = 'abc\uDC00def\uD800ghi';
+const REPLACED = 'abc\uFFFDdef\uFFFDghi';
+
+description("Tests use of USVString in CSSStyleDeclaration.");
+
+var declaration = document.styleSheets[0].cssRules[0].style;
+declaration.setProperty("animation-name", CONTAINS_UNPAIRED_SURROGATES);
+shouldBeEqualToString("declaration.getPropertyValue('animation-name')", REPLACED);
+shouldBeTrue("declaration.cssText.includes(REPLACED)");
+shouldBeEqualToString("declaration.removeProperty('animation-name')", REPLACED);
+</script>
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes