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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/css/invalidation/independent-inheritance-fast-path-initial-keyword.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/invalidation/independent-inheritance-fast-path-initial-keyword.html b/third_party/WebKit/LayoutTests/fast/css/invalidation/independent-inheritance-fast-path-initial-keyword.html
new file mode 100644
index 0000000000000000000000000000000000000000..53b8c90296faf9cc20192f407717b4030c488964
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/invalidation/independent-inheritance-fast-path-initial-keyword.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<div id="outer">
+ <div id="inner" style="visibility: initial;"></div>
+</div>
+<script>
+test(function(t)
+{
+ outer.offsetTop; // Force recalc.
+ outer.style.visibility = "hidden";
+ assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 1);
+ assert_equals(getComputedStyle(inner).visibility, "visible");
+
+ outer.offsetTop; // Force recalc.
+ outer.style.visibility = "visible";
+ assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 1);
+ assert_equals(getComputedStyle(inner).visibility, "visible");
+
+}, "Changing visibility, an independent inherited property, is not propagated when using the 'initial' keyword.");
+</script>
+
+
+
+

Powered by Google App Engine
This is Rietveld 408576698