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

Side by Side Diff: LayoutTests/fast/css/invalidation/full-page-media.html

Issue 664583007: Avoid subtree style recalc for :-webkit-full-page-media. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 1 month 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 | LayoutTests/fast/css/invalidation/full-page-media-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 .outer #inner:not(:-webkit-full-page-media) {
5 background-color: green
6 }
7 #outer + div {
8 color: pink
9 }
10 </style>
11 <div id="outer">
12 <div>
13 <div id="inner"></div>
14 </div>
15 <div></div>
16 <div></div>
17 </div>
18 <div></div>
19 <script>
20 description("Support style invalidation when selectors contain :-webkit-full-pag e-media")
21
22 var transparent = "rgba(0, 0, 0, 0)";
23 var green = "rgb(0, 128, 0)";
24
25 shouldBe("getComputedStyle(inner).backgroundColor", "transparent");
26
27 inner.offsetTop; // force recalc
28 outer.className = "outer";
29
30 if (window.internals)
31 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2");
32
33 shouldBe("getComputedStyle(inner).backgroundColor", "green");
34 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/invalidation/full-page-media-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698