layout/reftests/font-matching/normalmedium.html

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 <!DOCTYPE HTML>
     2 <html>
     3 <head>
     4 <title>Mapping 400 to medium</title>
     5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     7 <style type="text/css">
     9 body {
    10   margin: 50px;
    11 }
    13 @font-face {
    14   font-family: mplus1p;
    15   src: url(../fonts/mplus/mplus-1p-light.ttf);
    16   font-weight: 200;
    17 }
    19 @font-face {
    20   font-family: mplus1p;
    21   src: url(../fonts/mplus/mplus-1p-medium.ttf);
    22   font-weight: 500;
    23 }
    25 p { font-size: 24pt; }
    26 #test1 { font-family: mplus1p; font-weight: normal; }
    27 #test2 { font-family: mplus1p; font-weight: 500; }
    29 </style>
    31 <script type="text/javascript">
    33 </script>
    35 </head>
    36 <body>
    38 <h4>The two lines below should match</h4>
    40 <p id="test1">Fiddling fiddlesticks!</p>
    41 <p id="test2">Fiddling fiddlesticks!</p>
    43 </body>
    44 </html>

mercurial