Skip to content

Unprefixed line-clamp #725

Closed
Closed
@BenjaminAster

Description

@BenjaminAster

Description

The line-clamp CSS property still needs a -webkit- prefix and some additional non-standard properties (display: -webkit-box and -webkit-box-orient: vertical) to be set in Chromium, WebKit and Firefox. Chromium is currently working on implementing the unprefixed property. Implementing this new standardized property, which differs significantly from the old non-standard -webkit-line-clamp property, likely needs a lot of work from an implementation standpoint.


This issue is one of seven issues regarding unprefixing CSS properties/values, originally all in #702 (as per #702 (comment)). The aim is to group the properties together into multiple (but not seven) focus areas.

Specification

https://drafts.csswg.org/css-overflow-4/#line-clamp

Additional Signals

These are mostly copy-pasted from @ccpandhare's comment. Thank you Chinmay!

  1. What interop tests if any this affects:
  2. Site breakage and workaround
    • No breakage as we currently polyfill, but as a result we have code size increase and small parse time and runtime perf regressions.
  3. Size and current state of the feature
    • Size: Not sure
    • Current state: Works with vendor prefixes, with slightly different implementations across browsers
  4. Browser bug trackers:
  5. Stack Overflow/blog posts referring to this

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions