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