Open Bug 209073 Opened 22 years ago Updated 3 years ago

Lines containing only newlines have no height (empty line boxes) (white-space: pre on inlines collapses newlines together)

Categories

(Core :: Layout: Block and Inline, defect)

x86
Windows 2000
defect

Tracking

()

People

(Reporter: ian, Unassigned)

References

()

Details

(Whiteboard: DUPEME)

All line boxes should have a height, even empty ones. Thus, "\A\A" in generated content should take up room. At the moment, empty line boxes take no room, so there's no way to introduce more than one newline at a time.
There's a lot of code in nsLineLayout that deals with empty continuation frames. My guess would be that some of it is over-eager. I thought this was a dupe too but I couldn't find the other bug. Bug 82296 is probably related, though.
See also bug 49938.
Summary: Lines containing only newlines have no height → Lines containing only newlines have no height (empty line boxes)
Actually, this is probably buggy mainly because we don't truly support white-space on inlines (bug 100604) and thus on :before and :after inlines the support is less than optimal. In fact I'm not that sure why it has any effect at all. Go figure.
Depends on: 100604
Summary: Lines containing only newlines have no height (empty line boxes) → Lines containing only newlines have no height (empty line boxes) (white-space: pre on inlines collapses newlines together)
*** Bug 210983 has been marked as a duplicate of this bug. ***
No longer blocks: 38370
No longer depends on: 100604
Assignee: layout.block-and-inline → nobody
QA Contact: ian → layout.block-and-inline
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.