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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/invalidation/independent-inheritance-fast-path-inherit-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" style="visibility: hidden;">
5 <div id="inner" style="visibility: inherit;"></div>
6 </div>
7 <script>
8 test(function(t)
9 {
10 assert_equals(getComputedStyle(inner).visibility, "hidden");
11
12 outer.offsetTop; // Force recalc.
13 outer.style.visibility = "visible";
14 assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 1);
15 assert_equals(getComputedStyle(inner).visibility, "visible");
16
17 }, "Changing visibility, an independent inherited property, propagates correctly when using the 'inherit' keyword.");
18 </script>
19
20
21
22
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698