Closed Bug 387512 Opened 17 years ago Closed 17 years ago

block with :first-line pseudo-element, subsequent text vanishes

Categories

(Core :: Layout, defect)

defect
Not set
major

Tracking

()

RESOLVED FIXED

People

(Reporter: phiw2, Unassigned)

References

Details

(Keywords: regression, testcase)

Attachments

(3 files)

Attached file test case
When styling the first line of a block with the ::first-line pseudo-element, then only the second line of a block will display; all subsequent lines of text disappear. Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a7pre) Gecko/2007070917 Minefield/3.0a7pre ID:2007070917 Regressed before 20070702 (fails with the last available Camino build).
regressed: OK Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a6pre) Gecko/20070620 Minefield/3.0a6pre ID:2007062004 Fails Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a6pre) Gecko/20070621 Minefield/3.0a6pre ID:2007062104 http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2007-06-20+04%3A00%3A00&maxdate=2007-06-21+04%3A00%3A00&cvsroot=%2Fcvsroot --> bug 367177, I guess.
Summary: :first-line pseudo-element, subsequent text vanishes → block with :first-line pseudo-element, subsequent text vanishes
Blocks: 367177
Flags: blocking1.9?
OS: Mac OS X → All
Hardware: Macintosh → All
Flags: blocking1.9? → blocking1.9+
Interesting... the bug seems to be masked for certain browser window sizes when there are regular linebreaks in the paragraph.
Attachment #274997 - Attachment is obsolete: true
Attachment #274997 - Attachment description: reduced test case → reduced test case (with linebreaks)
Attachment #274997 - Attachment is obsolete: false
Possibly a dup of 385270, based on lots of "ASSERTION: Invalid offset" being printed.
This works correctly now on Mac OS X. Fixed by the patch in bug 388049 ? (or the one in bug 391068, mac only) Other platforms ? Fails Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a8pre) Gecko/2007080919 Minefield/3.0a8pre ID:2007080919 (20070809_1906_firefox-3.0a8pre.en-US.mac.dmg) works Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a8pre) Gecko/2007080919 Minefield/3.0a8pre ID:2007080919 (20070809_1937_firefox-3.0a8pre.en-US.mac.dmg)
After the landing of bug 385270, all lines are visible, but the font-weight:bold is propagated to all lines (instead of affecting just the first-line).
color and background attributes correctly stick to just the first line. font-weight, font-style, and font-size go past the first line, but are stopped when they hit an explicit <br> tag.
Bug 392435 has been filed for the issue raised in comment 6.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: