OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <script src="../../../resources/js-test.js"></script> | |
3 <style> | |
4 .x { color: green } | |
5 </style> | |
6 <div id="x"> | |
7 <div></div> | |
8 <div></div> | |
9 <div></div> | |
10 <div></div> | |
11 </div> | |
12 <script> | |
13 description("Check that FontFaceSet.load() does not trigger a style recalc") ; | |
14 | |
15 x.offsetTop; | |
16 x.className = "x"; | |
17 document.fonts.load("40px dummy"); | |
18 | |
19 if (window.internals) | |
20 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "5"); | |
21 | |
22 shouldBeEqualToString("getComputedStyle(x).color", "rgb(0, 128, 0)"); | |
23 </script> | |
OLD | NEW |