Re: [csswg-drafts] [css-text-decor-4] Consider renaming `text-decoration-trim` (#8402)

Consider describing this feature of a line as the “cap” per prior art in Adobe Illustrator, and probably even older graphics software.

`text-decoration-cap`

Here is an Adobe Illustrator help doc about the [Apple a Stroke to an Object](https://helpx.adobe.com/illustrator/using/stroke-object.html?x-product=Helpx%2F1.0.0&x-product-location=Search%3AForums%3Alink%2F3.7.2-dev.2). Notice the initial photo of the Stroke Palette which offers a few basic options to adjust the cap style (butt, round, projecting). Also see the section “Change the caps or joins of a line”.

While the “cap” in Illustrator doesn’t afford arbitrary length values, the concept of describing this feature of a line could be helpful for CSS.

Example

- `text-decoration-cap: normal` (butt cap)
- `text-decoration-cap: round` (round cap)
- `text-decoration-cap: <length>` a positive or negative length resulting a projecting cap (positive  value) or shortened cap (negative value)

-- 
GitHub Notification of comment by rianmurnen
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8402#issuecomment-3412690911 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 16 October 2025 20:17:12 UTC