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

Unified Diff: LayoutTests/fast/dom/shadow/styling-pseudo-attribute.html

Issue 187573002: Revert "Reverting custom pseudo element". (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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/styling-pseudo-attribute.html
diff --git a/LayoutTests/fast/dom/shadow/styling-pseudo-attribute.html b/LayoutTests/fast/dom/shadow/styling-pseudo-attribute.html
new file mode 100644
index 0000000000000000000000000000000000000000..f0dc650005a292758a1f2ad2b9ae98ad2289445c
--- /dev/null
+++ b/LayoutTests/fast/dom/shadow/styling-pseudo-attribute.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<style>
+#host1::x-foo {
+ color: red;
+}
+</style>
+<div id="host1"></div>
+
+<script>
+var shadowRoot1 = host1.createShadowRoot();
+var div = document.createElement('div');
+div.setAttribute('pseudo', 'x-foo');
+div.appendChild(document.createTextNode('foo bar'));
+
+shadowRoot1.appendChild(div);
+</script>
+
+
+</html>

Powered by Google App Engine
This is Rietveld 408576698