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

Unified Diff: LayoutTests/fast/media/mq-invalid-media-type.html

Issue 23477048: Media query malformed when 'or' is used as a media type. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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/fast/media/mq-invalid-media-type-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/media/mq-invalid-media-type.html
diff --git a/LayoutTests/fast/media/mq-invalid-media-type.html b/LayoutTests/fast/media/mq-invalid-media-type.html
new file mode 100644
index 0000000000000000000000000000000000000000..00850b64e5a929dd1cceed07da93a633d928eb8d
--- /dev/null
+++ b/LayoutTests/fast/media/mq-invalid-media-type.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>CSS3 media query test: 'not', 'and', 'only', 'or' are invalid media types.</title>
+<link rel="help" href="http://www.w3.org/TR/css3-mediaqueries/" />
+<style type="text/css">
+#t1::before, #t2::before, #t3::before, #t4::before { content: "PASS" }
+@media not not { #t1::before { content: "FAIL" } }
+@media not and { #t2::before { content: "FAIL" } }
+@media not only { #t3::before { content: "FAIL" } }
+@media not or { #t4::before { content: "FAIL" } }
+</style>
+</head>
+<body>
+<p>You should see four PASSes below.</p>
+<div id="t1"></div>
+<div id="t2"></div>
+<div id="t3"></div>
+<div id="t4"></div>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/media/mq-invalid-media-type-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698