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

Side by Side Diff: content/test/data/interaction-mq-dynamic.html

Issue 2690323002: Make Interaction Media Features MQ dynamic on Windows. (Closed)
Patch Set: Nit fix Created 3 years, 8 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>Dynamic interaction media query test</title>
5 <script type="text/javascript">
6 function handleMediaChange(mediaQueryList) {
7 if (mediaQueryList.matches) {
8 pass();
9 } else {
10 fail();
11 }
12 }
13
14 function start() {
15 var mql = window.matchMedia("(pointer: coarse) and (hover:hover)");
16 mql.addListener(handleMediaChange);
17 }
18
19 function pass() {
20 document.title = 'SUCCESS';
21 }
22
23 function fail() {
24 document.title = 'FAIL';
25 }
26 </script>
27 </head>
28 <body onLoad="start()">
29 </body>
30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698