| 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 input + div { color: pink } | 4 input + div { color: pink } |
| 5 </style> | 5 </style> |
| 6 <input id="searchInput" type="search"></input> | 6 <input id="searchInput" type="search"></input> |
| 7 <div> | 7 <div> |
| 8 <div></div> | 8 <div></div> |
| 9 <div></div> | 9 <div></div> |
| 10 <div></div> | 10 <div></div> |
| 11 <div></div> | 11 <div></div> |
| 12 </div> | 12 </div> |
| 13 <script> | 13 <script> |
| 14 description("Setting the incremental attribute on an input type=search") | 14 description("Setting the incremental attribute on an input type=search") |
| 15 | 15 |
| 16 shouldBeDefined(window.internals); | 16 shouldBeDefined(window.internals); |
| 17 | 17 |
| 18 searchInput.offsetTop; | 18 searchInput.offsetTop; |
| 19 getComputedStyle(searchInput); // Force recalc. | 19 getComputedStyle(searchInput); // Force recalc. |
| 20 searchInput.setAttribute("incremental", ""); | 20 searchInput.setAttribute("incremental", ""); |
| 21 | 21 |
| 22 // Ideally, the expected value below should be "0", but the search control | 22 // Ideally, the expected value below should be "0", but the search control |
| 23 // button has its opacity changed unconditionally through inline style on | 23 // button has its opacity changed unconditionally through inline style on |
| 24 // every attribute change on the input element. | 24 // every attribute change on the input element. |
| 25 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1"); | 25 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()", "1"); |
| 26 | 26 |
| 27 </script> | 27 </script> |
| OLD | NEW |