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

Side by Side Diff: LayoutTests/fast/css/invalidation/targeted-class-custom-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 .theme ::-webkit-file-upload-button { background-color: green } 4 .theme ::-webkit-file-upload-button { background-color: green }
5 </style> 5 </style>
6 <div id="t"> 6 <div id="t">
7 <div></div> 7 <div></div>
8 <div></div> 8 <div></div>
9 <div></div> 9 <div></div>
10 <div></div> 10 <div></div>
(...skipping 10 matching lines...) Expand all
21 var green = "rgb(0, 128, 0)"; 21 var green = "rgb(0, 128, 0)";
22 22
23 fileUploadButton = internals.shadowRoot(document.querySelector("input")).fir stChild; 23 fileUploadButton = internals.shadowRoot(document.querySelector("input")).fir stChild;
24 24
25 shouldBe("getComputedStyle(fileUploadButton, null).backgroundColor", "gray") ; 25 shouldBe("getComputedStyle(fileUploadButton, null).backgroundColor", "gray") ;
26 26
27 document.body.offsetLeft; // force style recalc. 27 document.body.offsetLeft; // force style recalc.
28 28
29 document.getElementById("t").className = "theme"; 29 document.getElementById("t").className = "theme";
30 30
31 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2"); 31 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
32 shouldBe("getComputedStyle(fileUploadButton, null).backgroundColor", "green" ); 32 shouldBe("getComputedStyle(fileUploadButton, null).backgroundColor", "green" );
33 } 33 }
34 </script> 34 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698