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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="resources/shadow-dom.js"></script>
3 <!-- adapted from http://jsbin.com/ganocegu/4/edit, reported in crbug.com/355674 -->
4 <div id="sandbox"></div>
5 <script>
6 var shadowStyle = document.createElement('style');
7 shadowStyle.innerHTML = '.special::content > * { color: green; }';
8
9 var sandbox = document.getElementById('sandbox');
10 sandbox.appendChild(
11 createDOM('div', {'id': 'host'},
12 createShadowRoot(
13 createDOM('content', {'class': 'special'})),
14 createShadowRoot(
15 shadowStyle,
16 createDOM('shadow')),
17 createDOM('div', {},
18 document.createTextNode('should not be green'))));
19 </script>
OLDNEW
« 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