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

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

Issue 21151005: Implement ::content (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 7 years, 4 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..83434d9bec4602439f893d89d5f86199f6f0d1ac
--- /dev/null
+++ b/LayoutTests/fast/dom/shadow/content-pseudo-element-css-text.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../js/resources/js-test-pre.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>
+<script src="../../js/resources/js-test-post.js"></script>
+</html>

Powered by Google App Engine
This is Rietveld 408576698