Index: third_party/WebKit/LayoutTests/fast/css/invalidation/font-feature-settings.html |
diff --git a/third_party/WebKit/LayoutTests/fast/css/invalidation/font-feature-settings.html b/third_party/WebKit/LayoutTests/fast/css/invalidation/font-feature-settings.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ac6a665aff4a767abe7eef60be18fc6527633b48 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/css/invalidation/font-feature-settings.html |
@@ -0,0 +1,29 @@ |
+<!DOCTYPE html> |
+<script src="../../../resources/js-test.js"></script> |
+<style> |
+ #x { |
+ -webkit-font-feature-settings: "liga"; |
+ font-feature-settings: "liga" |
+ } |
+ .y { |
+ background-color: green |
+ } |
+</style> |
+<div id="x"> |
+ <div> |
+ <div></div> |
+ <div></div> |
+ <div></div> |
+ <div></div> |
+ </div> |
+</div> |
+<script> |
+ description("Local style change on element with font-feature-settings should not cause subtree recalc"); |
+ |
+ x.offsetTop; |
+ x.className = "y"; |
+ |
+ if (window.internals) |
+ shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1"); |
+ |
+</script> |