: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.

Published March 21, 2005 · Updated September 17, 2005
Categorized as HTML and CSS
Short URL: https://snook.ca/s/350

Conversation

5 Comments · RSS feed
Ian said on March 22, 2005

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.

Dave Marks said on March 26, 2005

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...

Andrea said on March 27, 2005

I have the same results as Dave with Firefox 1.0.2/Win2k. Passes your test as well as Anne's contributions.

Anne said on March 30, 2005

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.

said on May 07, 2006

that's not a bug. just don't forget to close brackets correctly..

Sorry, comments are closed for this post. If you have any further questions or comments, feel free to send them to me directly.

Want to learn about scaling CSS for large projects?

I'm available for full and half-day workshops on scalable CSS architecture. I can provide on-site training for your team. Interested?
Get in touch.