first-letter-nested-004

:first-letter

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Flags
dom

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html><head>
 3   <link rel="reference" href="first-letter-nested-001-ref.xht">
 4   <title>CSS Test: :first-letter</title>
 5   <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu">
 6   <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter">
 8   <meta name="flags" content="dom">
 9   <style type="text/css">
10   div { color: black; }
11   div:first-letter { color: green; }
12   </style>
13 </head>
14 <body>
15   <div>
16     <span>
17       
18     </span>
19   </div>
20   <script type="text/javascript">
21     document.body.offsetWidth;
22     document.getElementsByTagName("span")[0].
23       appendChild(document.createTextNode("This is text"));
24   </script>
25 
26 
27 </body></html>