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 { | 4 #x { |
5 -webkit-font-feature-settings: "liga"; | 5 -webkit-font-feature-settings: "liga"; |
6 font-feature-settings: "liga" | 6 font-feature-settings: "liga" |
7 } | 7 } |
8 .y { | 8 .y { |
9 background-color: green | 9 background-color: green |
10 } | 10 } |
11 </style> | 11 </style> |
12 <div id="x"> | 12 <div id="x"> |
13 <div> | 13 <div> |
14 <div></div> | 14 <div></div> |
15 <div></div> | 15 <div></div> |
16 <div></div> | 16 <div></div> |
17 <div></div> | 17 <div></div> |
18 </div> | 18 </div> |
19 </div> | 19 </div> |
20 <script> | 20 <script> |
21 description("Local style change on element with font-feature-settings should
not cause subtree recalc"); | 21 description("Local style change on element with font-feature-settings should
not cause subtree recalc"); |
22 | 22 |
23 x.offsetTop; | 23 x.offsetTop; |
24 x.className = "y"; | 24 x.className = "y"; |
25 | 25 |
26 if (window.internals) | 26 if (window.internals) |
27 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1"); | 27 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()"
, "1"); |
28 | 28 |
29 </script> | 29 </script> |
OLD | NEW |