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

Side by Side Diff: third_party/WebKit/LayoutTests/shadow-dom/inherit-into-slotted.html

Issue 2074393002: Clean up shadow-dom layout tests so that they are well organized (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../resources/js-test.js"></script>
3 <div id="host">
4 <div slot="s1">This text should be green</div>
5 </div>
6 <script>
7 description("A changed inherited property on a slot parent should propagate down to slotted elements.");
8
9 var root = host.attachShadow({mode:"open"});
10 root.innerHTML = '<style>.p1 { color: green }</style><div id="p1"><slot name ="s1"></slot></div>';
11 var p1 = root.querySelector("#p1");
12 var s1 = host.querySelector("[slot]");
13 shouldBeEqualToString("getComputedStyle(s1).color", "rgb(0, 0, 0)");
14 p1.className = "p1";
15 shouldBeEqualToString("getComputedStyle(s1).color", "rgb(0, 128, 0)");
16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698