W3C home > Mailing lists > Public > www-style@w3.org > March 2011

[CSS21] WD 07 Dec. 2010: small code error in section 5.12.2 (The Economist example)

From: Gérard Talbot <www-style@gtalbot.org>
Date: Fri, 4 Mar 2011 10:57:03 -0800
Message-ID: <9bf2739c217733be736d54213f2440a4.squirrel@cp3.shieldhost.com>
To: "W3C style mailing list" <www-style@w3.org>
Hello,

5.12.2 The :first-letter pseudo-element
http://www.w3.org/TR/CSS21/selector.html#first-letter

gives

...
  <TITLE>Drop cap initial letter</TITLE>
  <STYLE type="text/css">
   P              { font-size: 12pt; line-height: 1.2 }
   P:first-letter { font-size: 200%; font-style: italic;
                    font-weight: bold; float: left }
   SPAN           { text-transform: uppercase }
  </STYLE>
 </HEAD>
 <BODY>
  <P><SPAN>The first</SPAN> few words of an article
    in The Economist.</P>
...


but after testing and comparing with screenshot
http://www.w3.org/TR/CSS21/images/first-letter.png
font-style: italic;
should be removed.

s/font-size: 200%; font-style: italic;/font-size: 200%;/

Gérard
-- 
CSS 2.1 Test suite RC5 (January 11th 2011)
http://test.csswg.org/suites/css2.1/20110111/html4/toc.html

Contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

Web authors' contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html
Received on Friday, 4 March 2011 18:57:39 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:38 GMT