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

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 <!DOCTYPE HTML>
     2 <title>test for system metric media queries</title>
     3 <style>
     5 p { color: red; }
     7 /* Exactly one of the next two should apply */
     9 @media all and (-moz-scrollbar-end-backward) {
    10   p:-moz-system-metric(scrollbar-end-backward) { color: green; }
    11 }
    13 @media not all and (-moz-scrollbar-end-backward) {
    14   p:not(:-moz-system-metric(scrollbar-end-backward)) { color: green; }
    15 }
    17 /* Neither of these should apply */
    19 @media not all and (-moz-scrollbar-end-backward) {
    20   p:-moz-system-metric(scrollbar-end-backward) { color: red; }
    21 }
    23 @media all and (-moz-scrollbar-end-backward) {
    24   p:not(:-moz-system-metric(scrollbar-end-backward)) { color: red; }
    25 }
    27 </style>
    28 <p>This text should be green.</p>

mercurial