2 <script src=
"../../../resources/js-test.js"></script>
4 :-webkit-autofill { text-decoration: underline }
5 input + div { color: pink }
7 <input id=
"text" type=
"text"></input>
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'");