| Index: third_party/WebKit/LayoutTests/fast/css/invalidation/font-face-load.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/css/invalidation/font-face-load.html b/third_party/WebKit/LayoutTests/fast/css/invalidation/font-face-load.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cbf46e9d877b247187c00324c69adb68c8cc7d10
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/css/invalidation/font-face-load.html
|
| @@ -0,0 +1,23 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../../resources/js-test.js"></script>
|
| +<style>
|
| + .x { color: green }
|
| +</style>
|
| +<div id="x">
|
| + <div></div>
|
| + <div></div>
|
| + <div></div>
|
| + <div></div>
|
| +</div>
|
| +<script>
|
| + description("Check that FontFaceSet.load() does not trigger a style recalc");
|
| +
|
| + x.offsetTop;
|
| + x.className = "x";
|
| + document.fonts.load("40px dummy");
|
| +
|
| + if (window.internals)
|
| + shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "5");
|
| +
|
| + shouldBeEqualToString("getComputedStyle(x).color", "rgb(0, 128, 0)");
|
| +</script>
|
|
|