layout/reftests/font-face/dynamic-duplicate-rule-1b.html

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

     1 <!DOCTYPE HTML>
     2 <html class="reftest-wait">
     3 <head>
     4 <meta charset="utf-8">
     6 <!-- Testcase for bug 879963 regression.
     7      Identical to dynamic-duplicate-rule-1a, except that we disable the
     8      second rule (rather than the first), to allow for the possibility of
     9      changes in how rules are ordered/searched. -->
    11 <style type="text/css" id="style1">
    12 @font-face {
    13   font-family: foo;
    14   src: local("Arial"),
    15        local("DejaVu Sans"),
    16        local("Free Sans"),
    17        local("Open Sans"),
    18        local("Droid Sans"),
    19        local("Roboto");
    20 }
    21 </style>
    23 <style type="text/css" id="style2">
    24 @font-face {
    25   font-family: foo;
    26   src: local("Arial"),
    27        local("DejaVu Sans"),
    28        local("Free Sans"),
    29        local("Open Sans"),
    30        local("Droid Sans"),
    31        local("Roboto");
    32 }
    33 </style>
    35 <style type="text/css">
    36 body {
    37   font-family: serif;
    38 }
    39 .test {
    40   font-family: foo;
    41 }
    42 </style>
    44 <script type="application/javascript">
    45 function run() {
    46   document.getElementById("style2").disabled = true;
    47   document.documentElement.removeAttribute("class");
    48 }
    49 </script>
    51 </head>
    53 <body onload="run()">
    54 <div>
    55 foo <span class="test">bar</span> baz
    56 </div>
    57 </body>
    59 </html>

mercurial