1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/css-mediaqueries/system-metrics-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,28 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<title>test for system metric media queries</title> 1.6 +<style> 1.7 + 1.8 +p { color: red; } 1.9 + 1.10 +/* Exactly one of the next two should apply */ 1.11 + 1.12 +@media all and (-moz-scrollbar-end-backward) { 1.13 + p:-moz-system-metric(scrollbar-end-backward) { color: green; } 1.14 +} 1.15 + 1.16 +@media not all and (-moz-scrollbar-end-backward) { 1.17 + p:not(:-moz-system-metric(scrollbar-end-backward)) { color: green; } 1.18 +} 1.19 + 1.20 +/* Neither of these should apply */ 1.21 + 1.22 +@media not all and (-moz-scrollbar-end-backward) { 1.23 + p:-moz-system-metric(scrollbar-end-backward) { color: red; } 1.24 +} 1.25 + 1.26 +@media all and (-moz-scrollbar-end-backward) { 1.27 + p:not(:-moz-system-metric(scrollbar-end-backward)) { color: red; } 1.28 +} 1.29 + 1.30 +</style> 1.31 +<p>This text should be green.</p>