4 <title>Inserting an @viewport rule before an existing one (CSSOM)
</title>
12 if (window
.testRunner
) {
13 testRunner
.dumpAsText();
14 document
.styleSheets
[0].insertRule("@viewport {width: 1000px}", 0);
15 document
.body
.offsetWidth
; // Trigger style resolving
16 alert(internals
.viewportAsText(document
, 1, 320, 352));
21 <body onload=
"test()"></body>