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

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

Issue 1749713002: Allow simple selectors after ::content for compat. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/shadow/content-pseudo-element-not-last-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/dom/shadow/content-pseudo-element-not-last.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/content-pseudo-element-not-last.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/content-pseudo-element-not-last.html
new file mode 100644
index 0000000000000000000000000000000000000000..39e13ed62b195657dcba9b6d54dea8fbc68be0a2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dom/shadow/content-pseudo-element-not-last.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<script src="../../../resources/js-test.js"></script>
+<div id="host">
+ <span id="distributed">This text should be green</span>
+</div>
+<script>
+ description("Accept simple selectors after ::content For Polymer 0.5 compat");
+
+ var root = host.createShadowRoot();
+ root.innerHTML = '<style>[select]::content.x span { color: green }</style><content class="x" select="span"></content>';
+
+ shouldBeEqualToString("getComputedStyle(distributed).color", "rgb(0, 128, 0)");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/shadow/content-pseudo-element-not-last-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698