Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / css3 / device-adapt / viewport-insert-rule-after.html
blob60a419bd765ad48ba763b1fd3a87d19676dd5507
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Insert an @viewport rule after an existing one (CSSOM)</title>
5 <style>
6 @viewport {
7 width: 500px;
8 </style>
9 <script>
10 function test() {
11 if (window.testRunner) {
12 testRunner.dumpAsText();
13 document.styleSheets[0].insertRule("@viewport {width: 1000px}", 1);
14 document.body.offsetWidth; // Trigger style resolving
15 alert(internals.viewportAsText(document, 1, 320, 352));
18 </script>
19 </head>
20 <body onload="test()"></body>
21 </html>