Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / css3 / device-adapt / viewport-insert-rule-before.html
blobb2c06a05687fbb616c4659604a998fb4e57044f5
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Inserting an @viewport rule before an existing one (CSSOM)</title>
5 <style>
6 @viewport {
7 width: 500px;
9 </style>
10 <script>
11 function test() {
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));
19 </script>
20 </head>
21 <body onload="test()"></body>
22 </html>