You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary text-decoration-skip-spaces controls whether text decoration lines (underlines, overlines, line-throughs) are drawn over whitespace characters. The spec's initial value is start end (skip leading and trailing whitespace). Chrome is preparing to ship this property (Intent to Ship posted; tracking bug https://issues.chromium.org/issues/40862777).
Use cases
Authors commonly want to suppress the underline under leading/trailing spaces in inline elements (navigation menus, links) so the decoration visually attaches only to non-space characters. There is currently no web-standard way to control this.
Questions for Mozilla
Do you plan to implement text-decoration-skip-spaces?
Specification: https://drafts.csswg.org/css-text-decor-4/#text-decoration-skip-spaces-property
Feature:
text-decoration-skip-spaces(CSS Text Decoration Level 4)Summary
text-decoration-skip-spacescontrols whether text decoration lines (underlines, overlines, line-throughs) are drawn over whitespace characters. The spec's initial value isstart end(skip leading and trailing whitespace). Chrome is preparing to ship this property (Intent to Ship posted; tracking bug https://issues.chromium.org/issues/40862777).Use cases
Authors commonly want to suppress the underline under leading/trailing spaces in inline elements (navigation menus, links) so the decoration visually attaches only to non-space characters. There is currently no web-standard way to control this.
Questions for Mozilla
text-decoration-skip-spaces?start end, while Firefox's current behavior is closer toend(per [css-text-decor-4] Variants of text-decoration-skip-spaces:end behavior, and initial value w3c/csswg-drafts#4653 — Firefox skips only overflowing preserved U+0020 at line endings underwhite-space: pre-wrapand does not skip leading spaces). Would you align withstart end, shipend, or something else?