layout/reftests/css-mediaqueries/mq_print_orientation.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/css-mediaqueries/mq_print_orientation.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,41 @@
     1.4 +<?xml version="1.0" encoding="iso-8859-1" ?>
     1.5 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
     1.6 +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
     1.7 +<head>
     1.8 +  <title>Media Query - Print mode test - orientation</title>
     1.9 +  <style type="text/css"><![CDATA[
    1.10 +    p {height: 10px; width: 100px; color: yellow; }
    1.11 +    @media print { .a { color: aqua; } }
    1.12 +    @media screen { .b { color: aqua; } }
    1.13 +
    1.14 +    /* Print reftests are 5/3, which is landscape. */
    1.15 +    @media (orientation: landscape) { .c { color: aqua; } }    /* y */
    1.16 +    @media print and (orientation: landscape) { .d {color: aqua; } }  /* y */
    1.17 +    @media all and (orientation: landscape) { .e { color: aqua; } } /* y */
    1.18 +
    1.19 +
    1.20 +    /* negative cases */
    1.21 +    @media all and (orientation: portrait) { .f { color: aqua; } } /* n */
    1.22 +
    1.23 +    @media (orientation: portrait) { .g { color: aqua; } } /* n */
    1.24 +    @media print and (orientation: portrait) { .h { color: aqua; } }  /* n */
    1.25 +
    1.26 +    @media screen and (orientation: landscape) { .i {color: aqua; } }   /* n */
    1.27 +    @media screen and (orientation: portrait) { .j {color: aqua; } } /* n */
    1.28 +
    1.29 +  ]]></style>
    1.30 +</head>
    1.31 +
    1.32 +<body>
    1.33 +  <p class="a">a</p>
    1.34 +  <p class="b">b</p>
    1.35 +  <p class="c">c</p>
    1.36 +  <p class="d">d</p>
    1.37 +  <p class="e">e</p>
    1.38 +  <p class="f">f</p>
    1.39 +  <p class="g">g</p>
    1.40 +  <p class="h">h</p>
    1.41 +  <p class="i">i</p>
    1.42 +  <p class="j">j</p>
    1.43 +</body>
    1.44 +</html>

mercurial