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

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

michael@0 1 <!--
michael@0 2 Any copyright is dedicated to the Public Domain.
michael@0 3 http://creativecommons.org/publicdomain/zero/1.0/
michael@0 4 -->
michael@0 5 <!DOCTYPE html>
michael@0 6 <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>
michael@0 7 <link rel="author" title="Cameron McCormack" href="mailto:cam@mcc.id.au">
michael@0 8 <link rel="help" href="http://www.w3.org/TR/css-variables-1/#defining-variables">
michael@0 9 <link rel="match" href="variable-font-face-02-ref.html">
michael@0 10 <meta name="flags" content="ahem">
michael@0 11 <style>
michael@0 12 :root {
michael@0 13 --a: MyTestFontName;
michael@0 14 }
michael@0 15 @font-face {
michael@0 16 font-family: var(--a);
michael@0 17 src: url(../../../fonts/Ahem.ttf);
michael@0 18 }
michael@0 19 @font-face {
michael@0 20 font-family: MyTestFontName2;
michael@0 21 src: url(../../../fonts/Ahem.ttf);
michael@0 22 }
michael@0 23 #a {
michael@0 24 font-family: MyTestFontName;
michael@0 25 }
michael@0 26 #b {
michael@0 27 font-family: MyTestFontName2;
michael@0 28 }
michael@0 29 </style>
michael@0 30 <p id=a>This text must not be in Ahem.</p>
michael@0 31 <p id=b>But this text must be in Ahem.</p>

mercurial