Index: Source/web/tests/data/device_emulation.html |
diff --git a/Source/web/tests/data/viewport_emulation.html b/Source/web/tests/data/device_emulation.html |
similarity index 70% |
rename from Source/web/tests/data/viewport_emulation.html |
rename to Source/web/tests/data/device_emulation.html |
index 94dc6b731f045874185063c30a6b2e9c4dfea376..c96394a05de7e6ed6d7be93c009790efcb986b3b 100644 |
--- a/Source/web/tests/data/viewport_emulation.html |
+++ b/Source/web/tests/data/device_emulation.html |
@@ -33,17 +33,30 @@ body { |
{ |
#test { height: 400px; } |
} |
+#pointer { |
+ width: 10px; |
+ height: 10px; |
+} |
+@media all and (pointer: coarse) |
+{ |
+ #pointer { height: 20px; } |
+} |
+@media all and (hover: on-demand) |
+{ |
+ #pointer { width: 20px; } |
+} |
</style> |
<script> |
-function dumpSize() |
+function dumpSize(id) |
{ |
- var div = document.querySelector("#test"); |
+ var div = document.querySelector("#" + id); |
return div.offsetWidth + "x" + div.offsetHeight; |
} |
</script> |
</head> |
<body> |
<div id="test"></div> |
+<div id="pointer"></div> |
</body> |
</html> |