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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/selectors/style-sharing-attribute-selector.html

Issue 1394663003: Support deeply nested uncommonAttributeSelectors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/selectors/style-sharing-attribute-selector-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 <style>
4 #t1 > :-webkit-any(:not([myattr])) { color: green }
5 </style>
6 <div id="t1">
7 <div myattr>This text should be black</div>
8 <div>This text should be green</div>
9 </div>
10 <script>
11 description("Style sharing based on attribute selectors");
12
13 var black = "rgb(0, 0, 0)";
14 var green = "rgb(0, 128, 0)";
15
16
17 debug("Attribute selector in nested functional syntax");
18
19 var firstDiv = t1.querySelector("div");
20 var secondDiv = t1.querySelector("div+div");
21
22 shouldBe("getComputedStyle(firstDiv).color", "black");
23 shouldBe("getComputedStyle(secondDiv).color", "green");
24 if (window.internals)
25 shouldBeFalse("internals.isSharingStyle(firstDiv, secondDiv)");
26 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/selectors/style-sharing-attribute-selector-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698