Open Bug 404427 Opened 17 years ago Updated 2 years ago

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

Categories

(Core :: XUL, defect)

defect

Tracking

()

People

(Reporter: moco, Unassigned)

References

()

Details

Attachments

(2 files)

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)
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.
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
Assignee: jag → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: