for description elements, crop only works if you use the value attribute

NEW
Unassigned

Status

()

Core
XUL
10 years ago
7 years ago

People

(Reporter: (not reading, please use seth@sspitzer.org instead), Unassigned)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(2 attachments)

for description elements, crop only works if you use the value attribute

<description style="max-width: 20px" crop="end" value="this one uses value"/>

<description style="max-width: 20px" crop="end">this one does not use value</description>

test case and screen shot coming
Isn't that supposed to be a feature, not a bug? I thought that was the point of the third and fourth lines of the docs you linked to: if you want a single line, with cropped overflow, you use @value, if you want wrapping to multiple lines you use the element content.
hmm, good point phil.

Perhaps I could indicate what I'm ultimately trying to do:

<description style="max-width: 30px" crop="end">this <label style="font-weight: bold">is a</label> test</description>

(this is for bug #399664)

Comment 5

10 years ago
Phil is correct; I don't think we have anything that can achieve the effect that Seth is looking for. I think the best you can do is to override the (min-)width of the description so that it overflows its container.

Comment 6

10 years ago
Sounds like you actually want bug 312156 to be implemented.
> Sounds like you actually want bug 312156 to be implemented.

Yes, that sounds like it would work.  Any idea what that might involve?

Separate from having that, could description be made to do what I want?
No longer blocks: 407984

Updated

9 years ago
Assignee: jag → nobody
You need to log in before you can comment on or make changes to this bug.