layout/reftests/w3c-css/submitted/variables/variable-font-face-02.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/w3c-css/submitted/variables/variable-font-face-02.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,31 @@
     1.4 +<!--
     1.5 +     Any copyright is dedicated to the Public Domain.
     1.6 +     http://creativecommons.org/publicdomain/zero/1.0/
     1.7 +-->
     1.8 +<!DOCTYPE html>
     1.9 +<title>CSS Test: Test the invalid use of a variable in an @font-face rule where the variable is defined on the root element.</title>
    1.10 +<link rel="author" title="Cameron McCormack" href="mailto:cam@mcc.id.au">
    1.11 +<link rel="help" href="http://www.w3.org/TR/css-variables-1/#defining-variables">
    1.12 +<link rel="match" href="variable-font-face-02-ref.html">
    1.13 +<meta name="flags" content="ahem">
    1.14 +<style>
    1.15 +:root {
    1.16 +  --a: MyTestFontName;
    1.17 +}
    1.18 +@font-face {
    1.19 +  font-family: var(--a);
    1.20 +  src: url(../../../fonts/Ahem.ttf);
    1.21 +}
    1.22 +@font-face {
    1.23 +  font-family: MyTestFontName2;
    1.24 +  src: url(../../../fonts/Ahem.ttf);
    1.25 +}
    1.26 +#a {
    1.27 +  font-family: MyTestFontName;
    1.28 +}
    1.29 +#b {
    1.30 +  font-family: MyTestFontName2;
    1.31 +}
    1.32 +</style>
    1.33 +<p id=a>This text must not be in Ahem.</p>
    1.34 +<p id=b>But this text must be in Ahem.</p>

mercurial