Open Bug 367745 Opened 19 years ago Updated 3 years ago

Text decorations don't work in multiline <xul:label>s

Categories

(Core :: Layout: Text and Fonts, defect)

defect

Tracking

()

People

(Reporter: neil, Unassigned)

Details

(Keywords: regression)

Attachments

(1 file)

240 bytes, application/vnd.mozilla.xul+xml
Details
<xul:label>s without a value attribute display their content as HTML. However setting text-decoration on the label doesn't affect the rendering. At roc's request I breakpointed on DisplayLine in nsBlockFrame.cpp and traced the excution through nsHTMLContainerFrame::DisplayTextDecorations into nsHTMLContainerFrame::GetTextDecorations which bails out early because the label doesn't have a block or table display style.
Attached file Test case
Tip: Open this with -chrome to minimise frame construction.
Ah, a multiline label gets an nsAreaFrame, right? Could wait till after inline-block lands and see whether that has the same issues? The fix should be about the same, I'd think.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: