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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/invalidation/independent-inheritance-fast-path-initial-keyword.html

Issue 2220873002: Add a fast-path for independent inherited properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added 2 more tests Created 4 years, 4 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/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script>
4 <div id="outer">
5 <div id="inner" style="visibility: initial;"></div>
6 </div>
7 <script>
8 test(function(t)
9 {
10 outer.offsetTop; // Force recalc.
11 outer.style.visibility = "hidden";
12 assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 1);
13 assert_equals(getComputedStyle(inner).visibility, "visible");
14
15 outer.offsetTop; // Force recalc.
16 outer.style.visibility = "visible";
17 assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 1);
18 assert_equals(getComputedStyle(inner).visibility, "visible");
19
20 }, "Changing visibility, an independent inherited property, is not propagated wh en using the 'initial' keyword.");
21 </script>
22
23
24
25
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698