Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Unified Diff: LayoutTests/css3/device-adapt/viewport-insert-rule-after.html

Issue 16962002: [css-device-adapt] insertRule tests and ASSERT for device lengths. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/css3/device-adapt/viewport-insert-rule-after-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/css3/device-adapt/viewport-insert-rule-after-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698