Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/shadow/content-pseudo-element-css-text.html

Issue 1574323003: Split compound selector after consume finished. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@upload-base
Patch Set: Removed obsolete serialization hack and fixed unit tests. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/dom/shadow/content-pseudo-element-css-text.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/content-pseudo-element-css-text.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/content-pseudo-element-css-text.html
index d2ca493dc3f810e0129f4f6ff990ca7c1e1b0a1a..9c6678fcf98a6de1f39a47a99305f7670e8cccbd 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/content-pseudo-element-css-text.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/shadow/content-pseudo-element-css-text.html
@@ -7,6 +7,7 @@
::content { display: block; }
div content::content div content::content div.green { color: green; }
*::content * { color: blue; }
+div::shadow::shadow::content { }
</style>
</head>
<script>
@@ -14,6 +15,7 @@ description("Test for cssText of '::content' rule.");
shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(0).cssText", ".foo::content div .bar::before { display: block; }");
shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(1).cssText", "::content { display: block; }");
shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(2).cssText", "div content::content div content::content div.green { color: green; }");
-shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(3).cssText", "*::content * { color: blue; }");
+shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(3).cssText", "::content * { color: blue; }");
+shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(4).cssText", "div::shadow::shadow::content { }"); // Should be dropped, really.
</script>
</html>

Powered by Google App Engine
This is Rietveld 408576698