Open Bug 2057345 Opened 1 month ago Updated 1 month ago

`text-overflow` ignored when `line-clamp` is set

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Points:
2

Tracking

()

People

(Reporter: dshin, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: css-line-clamp)

Attachments

(1 file)

Fell out of bug 2043002 not passing line-clamp-auto-010.html but issue seems more general, as seen in the testcase.
The testcase clamps from 3 lines to 2, but the first line should have text-overflow applied.
Interestingly WebKit agrees unless line-clamp: auto is set, which just seems inconsistent.

I imagine this needs to get expanded.

Should be noted that Blink also clamps the last line differently from Gecko and WebKit, by displacing the entire word. Spec says this is done as if by soft-wrapping, which I think makes Chrome more correct?

Comment indicates that this behaviour was deliberate, FWIW.

See Also: → 2059105
Points: --- → 2
Whiteboard: css-line-clamp-triage → css-line-clamp
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: