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

Side by Side Diff: LayoutTests/fast/css/invalidation/spatial-navigation-focus-pseudo.html

Issue 1317533002: Sibling invalidation sets (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review feedback Created 5 years, 3 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script> 2 <script src="../../../resources/js-test.js"></script>
3 <style> 3 <style>
4 .a .b:not(:-internal-spatial-navigation-focus) { background-color: green } 4 .a .b:not(:-internal-spatial-navigation-focus) { background-color: green }
5 </style> 5 </style>
6 <div id="a"> 6 <div id="a">
7 <select id="sel" multiple> 7 <select id="sel" multiple>
8 <option id="b" class="b">1</option> 8 <option id="b" class="b">1</option>
9 <option>2</option> 9 <option>2</option>
10 </select> 10 </select>
(...skipping 19 matching lines...) Expand all
30 if (window.internals) 30 if (window.internals)
31 internals.settings.setSpatialNavigationEnabled(true); 31 internals.settings.setSpatialNavigationEnabled(true);
32 sel.focus(); 32 sel.focus();
33 33
34 shouldBe("getComputedStyle(b).backgroundColor", "transparent"); 34 shouldBe("getComputedStyle(b).backgroundColor", "transparent");
35 35
36 a.offsetTop; // Force recalc. 36 a.offsetTop; // Force recalc.
37 a.className = "a"; 37 a.className = "a";
38 38
39 if (window.internals) 39 if (window.internals)
40 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2"); 40 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
41 41
42 shouldBe("getComputedStyle(b).backgroundColor", "green"); 42 shouldBe("getComputedStyle(b).backgroundColor", "green");
43 </script> 43 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698