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

Side by Side Diff: LayoutTests/fast/dom/shadow/style-sharing-host-attribute.html

Issue 1009893004: Missing collectMatchingShadowHostRules call from hasAnyMatchingRules. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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/style-sharing-host-attribute-expected.txt » ('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/js-test.js"></script>
3 <template>
4 <style>:host([green]) { color: green }</style>
5 <content></content>
6 </template>
7 <div>
8 <div></div>
9 <div green>This text should be green</div>
10 </div>
11 <script>
12 description("Don't share style between two hosts with different attribute matchi ng for :host([])");
13
14 var template = document.querySelector("template");
15
16 var roots = document.querySelectorAll("div > div");
17 for (var i = 0; i < roots.length; i++)
18 roots[i].createShadowRoot().appendChild(document.importNode(template.content , true));
19
20 shouldBe("getComputedStyle(roots[1]).color", "'rgb(0, 128, 0)'");
21 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/style-sharing-host-attribute-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698