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/font-feature-settings.html

Issue 1887613002: Compare font-feature-settings as part of Font::operator==(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/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>

Powered by Google App Engine
This is Rietveld 408576698