layout/reftests/text-overflow/marker-shadow.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.)

     1 <!DOCTYPE HTML>
     2 <!--
     3     Any copyright is dedicated to the Public Domain.
     4     http://creativecommons.org/licenses/publicdomain/
     6     Test: Marker should have text-shadow applied to it
     7 -->
     8 <html>
     9 <head>
    10 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    11 <style type="text/css">
    12 @font-face {
    13   font-family: DejaVuSansMono;
    14   src: url(../fonts/DejaVuSansMono.woff);
    15 }
    17 /* overflow:hidden will clip off some of our text-shadow too.
    18    Give us some padding, so we can put the shadow to the left and bottom
    19    and beat the overflow clipping. */
    20 div {
    21   font-family: DejaVuSansMono;
    22   width: 5em;
    23   padding-left: 1em;
    24   padding-bottom: 1em;
    25   overflow: hidden;
    26   white-space: nowrap;
    27   text-overflow: "...";
    28   text-shadow: -0.5em 3px 2px red;
    29 }
    30 </style>
    31 </head>
    32 <body>
    34 <div>HelloKitty</div>
    36 </body>
    37 </html>

mercurial