layout/reftests/font-features/alternates-order.html

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

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

mercurial