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

Side by Side Diff: LayoutTests/fast/media/mq-invalid-media-type-matchMedia.html

Issue 867363002: Some invalid media queries are parsed as valid (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add a test Created 5 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>CSS3 media query test: 'not', 'and', 'only', 'or' are invalid media types .</title>
5 <script src="../../resources/js-test.js"></script>
6 </head>
7 <body>
8 <script>
9 shouldBe(window.matchMedia("not not").media, "not all");
10 shouldBe(window.matchMedia("not and").media, "not all");
11 shouldBe(window.matchMedia("not only").media, "not all");
12 shouldBe(window.matchMedia("not or").media, "not all");
13 shouldBe(window.matchMedia("not (orientation)").media, "not all");
14 shouldBe(window.matchMedia("only (orientation)").media, "not all");
15 </script>
16 </body>
17 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698