Open
Bug 487348
Opened 17 years ago
Updated 3 years ago
XUL <label> ignores CSS letter-spacing
Categories
(Core :: XUL, defect)
Core
XUL
Tracking
()
NEW
People
(Reporter: Dolske, Unassigned)
Details
(Keywords: testcase)
Attachments
(2 files)
Setting letter-spacing on a XUL label doesn't seem to have any effect. Works for a <description>, though.
In this simple testcase, the 1st pair of lines (using <label>) look the same (tested both OS X and Linux). The 2nd and 3rd pairs of lines (using <description> and <html:div>) correctly look different.
Comment 1•17 years ago
|
||
It's not a difference between label/description, but between specifying
the text in the 'value' attribute or as child text.
Comment 2•17 years ago
|
||
Maybe this is an optimization? When using the 'value' attribute
you get a (simple) nsTextBoxFrame otherwise you get a nsBlockFrame
with one ore more child nsTextFrames:
http://mxr.mozilla.org/mozilla-central/source/layout/base/nsCSSFrameConstructor.cpp#4223
Severity: normal → minor
Keywords: testcase
Comment 3•17 years ago
|
||
Yeah, the xul text frame doesn't use textruns, so it doesn't support things like letter-spacing and various things like that.
If you know you're not going to wrap lines and there aren't any issues in your case with using blocks inside boxes, you should just use <description>Text</description>.
Updated•3 years ago
|
Severity: minor → S4
You need to log in
before you can comment on or make changes to this bug.
Description
•