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

Side by Side Diff: LayoutTests/fast/css/invalidation/explicit-inheritance-flag.html

Issue 1133263003: Maintain child dependent ComputedStyle flags if propagation stops. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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 | LayoutTests/fast/css/invalidation/explicit-inheritance-flag-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 .root1, .root2 { max-height: 200px }
5 .root3 { max-height: 100px }
6 #root span { max-height: inherit }
7 </style>
8 <div id="root" class="root1">
9 <span></span>
10 </div>
11 <script>
12 description("Explicit inheritance of non-inherited property. Test that the expli citInherit flag in ComputedStyle is maintained correctly.");
13
14 root.offsetTop; // force recalc
15 root.className = "root2";
16
17 // No inheritance neede but explicitlInheritance needs to be set.
18 if (window.internals)
19 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
20
21 root.offsetTop; // force recalc
22 root.className = "root3";
23
24 if (window.internals)
25 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2");
26
27 shouldBeEqualToString("getComputedStyle(root.querySelector('span')).maxHeight", "100px");
28 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/invalidation/explicit-inheritance-flag-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698