layout/reftests/css-mediaqueries/system-metrics-1.html

branch
TOR_BUG_9701
changeset 10
ac0c01689b40
equal deleted inserted replaced
-1:000000000000 0:08708c90f0b7
1 <!DOCTYPE HTML>
2 <title>test for system metric media queries</title>
3 <style>
4
5 p { color: red; }
6
7 /* Exactly one of the next two should apply */
8
9 @media all and (-moz-scrollbar-end-backward) {
10 p:-moz-system-metric(scrollbar-end-backward) { color: green; }
11 }
12
13 @media not all and (-moz-scrollbar-end-backward) {
14 p:not(:-moz-system-metric(scrollbar-end-backward)) { color: green; }
15 }
16
17 /* Neither of these should apply */
18
19 @media not all and (-moz-scrollbar-end-backward) {
20 p:-moz-system-metric(scrollbar-end-backward) { color: red; }
21 }
22
23 @media all and (-moz-scrollbar-end-backward) {
24 p:not(:-moz-system-metric(scrollbar-end-backward)) { color: red; }
25 }
26
27 </style>
28 <p>This text should be green.</p>

mercurial