3 <title>Test CSS4 media query "pointer" and "hover" features.</title>
4 <style type="text/css">
7 <script type="text/javascript" charset="utf-8">
9 testRunner.dumpAsText();
12 document.getElementById('results').innerHTML += m + '<br>';
15 function testQueries()
23 "(pointer:bogusvalue)",
29 "(hover:bogusvalue)" ];
30 for (var index=0; index < queries.length; index++) {
31 log("Query "" + queries[index] + "": " +
32 window.matchMedia(queries[index]).matches);
38 log("------------- default configuration -------------");
41 if (window.internals) {
42 internals.settings.setDeviceSupportsTouch(true);
44 log("------------- with touch screen -------------");
51 <body onload="runTests()">
52 <p>Test the <a href="http://dev.w3.org/csswg/css4-mediaqueries/#pointer">(pointer)</a> and
53 <a href="http://dev.w3.org/csswg/css4-mediaqueries/#hover">(hover)</a> media features.
54 See <a href="https://bugs.webkit.org/show_bug.cgi?id=87403">Bug 87403</a> for details.</p>