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