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

Unified Diff: LayoutTests/fast/media/mq-scan-01.html

Issue 13896036: [CSSMQ] Implemented support for the scan media feature. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: another static_cast removed. Created 7 years, 7 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-scan-01-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/media/mq-scan-01.html
diff --git a/LayoutTests/fast/media/mq-scan-01.html b/LayoutTests/fast/media/mq-scan-01.html
new file mode 100644
index 0000000000000000000000000000000000000000..6bf862096d1d6da762f466bfb836d2bde73f530a
--- /dev/null
+++ b/LayoutTests/fast/media/mq-scan-01.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>Media Queries - scan media feature for "screen"</title>
+<script>
+ if (window.testRunner) {
+ /* The scan media feature only applies to "tv" media. This test checks that
+ we don't match any of the values for "screen". */
+ window.internals.settings.setMediaTypeOverride("screen");
+ }
+</script>
+<style>
+ @media (scan: progressive) {
+ #t1 { color: red; }
+ }
+
+ @media (scan: interlace) {
+ #t2 { color: red; }
+ }
+
+ @media (scan) {
+ #t3 { color: red; }
+ }
+</style>
+</head>
+<body>
+ <div id="t1">Should not be red</div>
+ <div id="t2">Should not be red</div>
+ <div id="t3">Should not be red</div>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/media/mq-scan-01-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698