From 6bf0a5cb5034a7e684dcc3500e841785237ce2dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:32:43 +0200 Subject: Adding upstream version 1:115.7.0. Signed-off-by: Daniel Baumann --- layout/style/test/test_bug511909.html | 198 ++++++++++++++++++++++++++++++++++ 1 file changed, 198 insertions(+) create mode 100644 layout/style/test/test_bug511909.html (limited to 'layout/style/test/test_bug511909.html') diff --git a/layout/style/test/test_bug511909.html b/layout/style/test/test_bug511909.html new file mode 100644 index 0000000000..ec0d414f9f --- /dev/null +++ b/layout/style/test/test_bug511909.html @@ -0,0 +1,198 @@ + + +@media and @-moz-document testcases + + + + + + + + + + + + + + + + + + + + + + + + Mozilla Bug 511909 +

+ + + +
+
default style
+
+This line should be pink
+ +This line should be green
+ +This line should be blue
+ +
@-moz-document {...}
+
+This line should be pink
+
@media screen {...}
+
+This line should be green
+
@-moz-document {
+   @media screen {...}
+}
+
+This line should be blue
+
@media print {
+  @-moz-document regexp("not_this_url"),}
+    #mx {
+        color: pink;
+    }
+  }
+}
+
+This line should be pink
+
@-moz-document regexp("not_this_url"){
+  @media print ,}
+    #mxx {
+      color: blue;
+    }
+  }
+}
+
+This line should be blue
+
@media screen {
+  @-moz-documen {...}
+}
+
+This line should be green
+
@media screen {
+  @-moz-document {
+    @media screen {...}
+  }
+}
+
+This line should be blue
+ + + -- cgit v1.2.3