Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / invalidation / autofill-pseudo.html
blob8f37616c2fc1498cfb718768ba354082445ee8a9
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <style>
4 :-webkit-autofill { text-decoration: underline }
5 input + div { color: pink }
6 </style>
7 <input id="text" type="text"></input>
8 <div>
9 <div></div>
10 <div></div>
11 <div></div>
12 <div></div>
13 </div>
14 <script>
15 description("Use descendant invalidation set for :-webkit-autofill pseudo class.")
17 shouldBeDefined(window.internals);
18 shouldBe("getComputedStyle(text, '').textDecorationLine", "'none'");
20 text.offsetTop; // Force recalc.
22 internals.setAutofilled(text, true);
24 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
25 shouldBe("getComputedStyle(text, '').textDecorationLine", "'underline'");
27 </script>