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