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

Unified Diff: LayoutTests/fast/dom/shadow/content-pseudo-element-ignore-sibling.html

Issue 330193006: Adds a layout test that style in sibling shadow shouldn't match. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update Created 6 years, 6 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 | LayoutTests/fast/dom/shadow/content-pseudo-element-ignore-sibling-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/shadow/content-pseudo-element-ignore-sibling.html
diff --git a/LayoutTests/fast/dom/shadow/content-pseudo-element-ignore-sibling.html b/LayoutTests/fast/dom/shadow/content-pseudo-element-ignore-sibling.html
new file mode 100644
index 0000000000000000000000000000000000000000..8efa8a9cc499b456add32ef6b57b2aae6b629a6f
--- /dev/null
+++ b/LayoutTests/fast/dom/shadow/content-pseudo-element-ignore-sibling.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<script src="resources/shadow-dom.js"></script>
+<!-- adapted from http://jsbin.com/ganocegu/4/edit, reported in crbug.com/355674 -->
+<div id="sandbox"></div>
+<script>
+var shadowStyle = document.createElement('style');
+shadowStyle.innerHTML = '.special::content > * { color: green; }';
+
+var sandbox = document.getElementById('sandbox');
+sandbox.appendChild(
+ createDOM('div', {'id': 'host'},
+ createShadowRoot(
+ createDOM('content', {'class': 'special'})),
+ createShadowRoot(
+ shadowStyle,
+ createDOM('shadow')),
+ createDOM('div', {},
+ document.createTextNode('should not be green'))));
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/content-pseudo-element-ignore-sibling-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698