layout/reftests/first-letter/font-text-styles.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 <title>Testing first-letter handling of font/text styles</title>
michael@0 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
michael@0 6
michael@0 7 <style type="text/css">
michael@0 8 html { overflow: hidden; }
michael@0 9 body {
michael@0 10 margin: 1em;
michael@0 11 font-size: 25px;
michael@0 12 line-height: 1.2em;
michael@0 13 font-family: serif;
michael@0 14 }
michael@0 15
michael@0 16 div { width: 200px; }
michael@0 17 p { width: 0.5em; margin: 0; }
michael@0 18 p:first-letter { font-weight: bold; text-transform: uppercase; }
michael@0 19 p.reverse:first-letter { font-style: italic; text-transform: lowercase; }
michael@0 20 span.floater { float: left; }
michael@0 21 span.floater:first-letter { font-family: sans-serif; text-transform: uppercase; }
michael@0 22 span.special { display: inline-block; }
michael@0 23 span.special:first-letter { font-weight: bold; text-transform: uppercase; }
michael@0 24 </style>
michael@0 25
michael@0 26 </head>
michael@0 27 <body>
michael@0 28 <div>
michael@0 29 <p>yellow corndog</p>
michael@0 30 <p class="reverse">HIPPIE BANANA</p>
michael@0 31 <p><span class="floater">gonzo macadamia</span></p>
michael@0 32 <p class="reverse">FELICITOUS <span class="special">raspberry</span></p>
michael@0 33 </div>
michael@0 34 </body>
michael@0 35 </html>

mercurial