23605-5.html 859 B

12345678910111213141516171819202122232425
  1. <!DOCTYPE html>
  2. <!--
  3. See http://lists.w3.org/Archives/Public/www-style/2000Jan/0017.html and
  4. http://www.w3.org/TR/CSS21/selector.html#first-letter
  5. 'If the letters that would form the first-letter are not in the same element,
  6. such as "'T" in <p>'<em>T..., the UA may create a first-letter
  7. pseudo-element from one of the elements, both elements, or simply not create
  8. a pseudo-element.'
  9. So it's not necessarily a bug if this test fails, but I'm including it anyway
  10. to track whether the behaviour changes. The current behaviour at the time of
  11. creating the test is that only the first element is included in the
  12. pseudo-element.
  13. -->
  14. <html>
  15. <head>
  16. <style>
  17. p:first-letter { color: red; }
  18. </style>
  19. </head>
  20. <body>
  21. <p>[<a href="http://www.mozilla.org/">A link to mozilla.org</a> is the
  22. beginning of this paragraph.]</p>
  23. </body>
  24. </html>