| Index: third_party/WebKit/LayoutTests/fast/css/invalidation/input-search-incremental.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/css/invalidation/input-search-incremental.html b/third_party/WebKit/LayoutTests/fast/css/invalidation/input-search-incremental.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e07439ef6abd45a138c9d0535506ae4a58bebc07
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/css/invalidation/input-search-incremental.html
|
| @@ -0,0 +1,27 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../../resources/js-test.js"></script>
|
| +<style>
|
| + input + div { color: pink }
|
| +</style>
|
| +<input id="searchInput" type="search"></input>
|
| +<div>
|
| + <div></div>
|
| + <div></div>
|
| + <div></div>
|
| + <div></div>
|
| +</div>
|
| +<script>
|
| +description("Setting the incremental attribute on an input type=search")
|
| +
|
| +shouldBeDefined(window.internals);
|
| +
|
| +searchInput.offsetTop;
|
| +getComputedStyle(searchInput); // Force recalc.
|
| +searchInput.setAttribute("incremental", "");
|
| +
|
| +// Ideally, the expected value below should be "0", but the search control
|
| +// button has its opacity changed unconditionally through inline style on
|
| +// every attribute change on the input element.
|
| +shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
|
| +
|
| +</script>
|
|
|