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

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

Issue 205563004: Revert of Implement /content/ combinator. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed patch conflict Created 6 years, 9 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: LayoutTests/fast/dom/shadow/content-pseudo-element-css-text.html
diff --git a/LayoutTests/fast/dom/shadow/content-pseudo-element-css-text.html b/LayoutTests/fast/dom/shadow/content-pseudo-element-css-text.html
new file mode 100644
index 0000000000000000000000000000000000000000..2b73a2d808b23530575531ded3afffa0bc8ace4b
--- /dev/null
+++ b/LayoutTests/fast/dom/shadow/content-pseudo-element-css-text.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../../resources/js-test.js"></script>
+<style id="style1">
+.foo::content div .bar::before { display: block; }
+::content { display: block; }
+div content::content div content::content div.green { color: green; }
+*::content * { color: blue; }
+</style>
+</head>
+<script>
+description("Test for cssText of '::distributed' 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; }");
+</script>
+</html>

Powered by Google App Engine
This is Rietveld 408576698