layout/reftests/font-features/alternates-order.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 <!DOCTYPE html>
michael@0 2 <html>
michael@0 3 <head>
michael@0 4 <style type="text/css">
michael@0 5 @font-face {
michael@0 6 font-family: libertine;
michael@0 7 src: url(../fonts/LinLibertine_Re-4.7.5.woff) format("woff");
michael@0 8 }
michael@0 9
michael@0 10 @font-face {
michael@0 11 font-family: fontA;
michael@0 12 src: url(../fonts/LinLibertine_Re-4.7.5.woff) format("woff");
michael@0 13 -moz-font-feature-settings: "ss05" on;
michael@0 14 }
michael@0 15
michael@0 16 @font-face {
michael@0 17 font-family: fontB;
michael@0 18 src: url(../fonts/LinLibertine_Re-4.7.5.woff) format("woff");
michael@0 19 -moz-font-feature-settings: "ss05" off;
michael@0 20 }
michael@0 21
michael@0 22 @font-feature-values libertine {
michael@0 23 @styleset {
michael@0 24 crossed-doubleu: 5;
michael@0 25 somethingElse: 4;
michael@0 26 }
michael@0 27 }
michael@0 28
michael@0 29 @font-feature-values fontA {
michael@0 30 @styleset { aLtW: 5; }
michael@0 31 }
michael@0 32
michael@0 33 @font-feature-values fontB {
michael@0 34 @styleset { crossedW: 5; several: 1 3 5; }
michael@0 35 @styleset { altW: 4; }
michael@0 36 }
michael@0 37
michael@0 38 @font-feature-values fontB {
michael@0 39 @styleset {
michael@0 40 AlTw: 5;
michael@0 41 defined-for-fontB: 5;
michael@0 42 scriptJ: 3;
michael@0 43 }
michael@0 44 }
michael@0 45
michael@0 46 body {
michael@0 47 font-family: libertine, sans-serif;
michael@0 48 font-size: 800%;
michael@0 49 line-height: 1.2em;
michael@0 50 }
michael@0 51
michael@0 52 /* -moz-font-feature-settings: "ss05"; crossed W */
michael@0 53
michael@0 54 div { margin: 0 20px; }
michael@0 55
michael@0 56 #test1 {
michael@0 57 font-variant-alternates: styleset(crossed-doubleu);
michael@0 58 }
michael@0 59
michael@0 60 #test2 {
michael@0 61 /* testing case-insensitivity of styleset name */
michael@0 62 font-family: fontB;
michael@0 63 font-variant-alternates: styleset(altW);
michael@0 64 }
michael@0 65
michael@0 66 #test3 {
michael@0 67 /* testing case-insensitivity of styleset name */
michael@0 68 font-family: fontB;
michael@0 69 font-variant-alternates: styleset(ALTW);
michael@0 70 }
michael@0 71
michael@0 72 #test4 {
michael@0 73 /* testing escapes in styleset name */
michael@0 74 font-family: fontB;
michael@0 75 font-variant-alternates: styleset(\41 ltW);
michael@0 76 }
michael@0 77
michael@0 78 #test5 {
michael@0 79 /* testing font-specificity of feature value rule */
michael@0 80 font-family: fontA;
michael@0 81 font-variant-alternates: styleset(defined-for-fontB);
michael@0 82 }
michael@0 83
michael@0 84 #test6 {
michael@0 85 /* testing one feature doesn't affect another */
michael@0 86 font-variant-alternates: styleset(somethingElse);
michael@0 87 -moz-font-feature-settings: "ss05" on;
michael@0 88 }
michael@0 89
michael@0 90 #test7 {
michael@0 91 /* testing font-specificity of feature value rule */
michael@0 92 font-family: fontA;
michael@0 93 font-variant-alternates: styleset(scriptJ);
michael@0 94 -moz-font-feature-settings: "ss06";
michael@0 95 }
michael@0 96
michael@0 97 #test8 {
michael@0 98 /* testing that an undefined value doesn't affect the results */
michael@0 99 font-family: fontB;
michael@0 100 font-variant-alternates: styleset(scriptJ, somethingUndefined, defined-for-fontB);
michael@0 101 }
michael@0 102
michael@0 103 #test9 {
michael@0 104 /* testing matching of font name with escape */
michael@0 105 font-family: font\62 ;
michael@0 106 font-variant-alternates: styleset(defined-for-fontB);
michael@0 107 }
michael@0 108
michael@0 109 </style>
michael@0 110 </head>
michael@0 111 <body lang="en">
michael@0 112 <div><span id="test1">W</span> <span id="test2">W</span> <span id="test3">W</span></div>
michael@0 113 <div><span id="test4">W</span> <span id="test5">W</span> <span id="test6">W</span></div>
michael@0 114 <div><span id="test7">W</span> <span id="test8">W</span> <span id="test9">W</span></div>
michael@0 115 </body>
michael@0 116 </html>

mercurial