:first-line bug in Firefox
Today I submitted my first bug report into Bugzilla. I couldn't find another bug report on the matter but a quick test while trying to duplicate a feature I saw on a site uncovered this little pest.
The style applied to the block element gets applied to the entirety of the child element if it starts on the first line and continues onto subsequent lines.
It'll be interesting to see how things get handled on Mozilla's end. I imagine it's a daunting task to review all bug reports and confirm their validity and importance.
Conversation
Great find. Very odd indeed. Like Anna stated background works but other's like font-weight, font-color do not.
I'd be interested if this gets corrected in a recent nightly.
Hrm... I have build 1.7.5 (Windows) here and it works fine....
Although at full window width i get a weird blank space, but this disappears when i resize the window, and both your test case, and Anne's work as expected...
Haven't cross posted to Bugzilla, maybe someone can confirm what i'm seeing first...
I have the same results as Dave with Firefox 1.0.2/Win2k. Passes your test as well as Anne's contributions.
It is valid and IIRC we don't have a similar bug reported. It seems to be property specific as well which is just weird. I guess it will get end up fixed by a checkin of a larger fix.
that's not a bug. just don't forget to close brackets correctly..