4 <meta name=
"viewport" content=
"width=800">
7 body { margin:
0; overflow-y: hidden; color: #aaa; }
8 #ib { display: inline-block; width:
12em; }
9 #ib:hover { color: #
99f; }
13 <script src=
"resources/autosizingTest.js"></script>
16 <div id=
"ib">(hover styled inline block)
</div> (some text follows)
<br><br>
18 This test requires text autosizing to be enabled. The test passes if the width
19 of the inline block does not increase when the user hovers over the content.
22 (additional text to trigger autosizing)
26 var inlineBlock
= document
.querySelector("#ib");
27 var width1
= inlineBlock
.clientWidth
;
29 // Trigger hover styles.
30 eventSender
.mouseMoveTo(50, 30);
32 var width2
= inlineBlock
.clientWidth
;
33 var pass
= width1
== width2
;
35 document
.body
.innerText
= pass
? "PASS" : "FAIL";
36 testRunner
.dumpAsText();
39 if (window
.testRunner
&& window
.eventSender
)