Index: LayoutTests/css3/device-adapt/viewport-insert-rule-after.html |
diff --git a/LayoutTests/css3/device-adapt/viewport-insert-rule-after.html b/LayoutTests/css3/device-adapt/viewport-insert-rule-after.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a827505b95acddf2a3301760b82a1d1a7c47c54a |
--- /dev/null |
+++ b/LayoutTests/css3/device-adapt/viewport-insert-rule-after.html |
@@ -0,0 +1,22 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<title>Insert an @viewport rule after an existing one (CSSOM)</title> |
+<style> |
+@viewport { |
+ width: 500px; |
+} |
+</style> |
+<script> |
+ function test() { |
+ if (window.testRunner) { |
+ testRunner.dumpAsText(); |
+ document.styleSheets[0].insertRule("@viewport {width: 1000px}", 1); |
+ document.body.offsetWidth; // Trigger style resolving |
+ alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352)); |
+ } |
+ } |
+</script> |
+</head> |
+<body onload="test()"></body> |
+</html> |