Solution (Clean Solution)
Date of the Solution
Tue Jul 28 09:41:51 2009
Fixed Versions
All of the affected
Description
This is not the first time I claim the solution to be super easy, but I think this bug takes the cake. Let's glance at the fixed demo and try to spot the change:
Due to the nature of the bug, the demo is available on a separate page
- HTML Code:
<p>Lorem Ipsum</p>
<p>Dolor Sit Amet</p>
- CSS Code:
h2,
p:first-letter {
color: #00f;
font-weight: bold;
font-size: 200%;
font-style: italic;
text-decoration: underline;
}
Now everything is fine and spiffy. What exactly have I done to fix the problem? I simply moved the :first-letter pseudo-element selector to
be the last one (i.e. no more commas and other selectors following it). Yes, it is in fact that simple.