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

Unified Diff: LayoutTests/fast/media/mq-scan-02.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 | « LayoutTests/fast/media/mq-scan-01-expected.html ('k') | LayoutTests/fast/media/mq-scan-02-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-02.html
diff --git a/LayoutTests/fast/media/mq-scan-02.html b/LayoutTests/fast/media/mq-scan-02.html
new file mode 100644
index 0000000000000000000000000000000000000000..eb03e2a1b6a9e8be3ae57265d7977b21a6b516b3
--- /dev/null
+++ b/LayoutTests/fast/media/mq-scan-02.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>Media Queries - scan media feature for "tv"</title>
+<script>
+ if (window.testRunner) {
+ /* If progressive or interlace will ever be queriable for TVs through some
+ platform interface, this test needs to be modified by a test override.
+ For now, the implementation assumes a modern tv with progressive scan.
+ We test that here. */
+ window.internals.settings.setMediaTypeOverride("tv");
+ }
+</script>
+<style>
+ @media (scan: progressive) {
+ #t1 { color: green; }
+ }
+
+ #t2 { color: green; }
+ @media (scan: interlace) {
+ #t2 { color: red; }
+ }
+
+ @media (scan) {
+ #t3 { color: green; }
+ }
+</style>
+</head>
+<body>
+ <div id="t1">Should be green</div>
+ <div id="t2">Should be green</div>
+ <div id="t3">Should be green</div>
+</body>
+</html>
« no previous file with comments | « LayoutTests/fast/media/mq-scan-01-expected.html ('k') | LayoutTests/fast/media/mq-scan-02-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698