Skip to content

add Snap a length as a line width#44194

Open
sb3nder wants to merge 1 commit into
mdn:mainfrom
sb3nder:computed-border-width
Open

add Snap a length as a line width#44194
sb3nder wants to merge 1 commit into
mdn:mainfrom
sb3nder:computed-border-width

Conversation

@sb3nder
Copy link
Copy Markdown
Contributor

@sb3nder sb3nder commented May 19, 2026

Description

Add high level description of the Snap a length as a line width rounding method, to the <length> CSS type" page.

Motivation

The computed value for border-*-width, column-rule-width, outline-width, outline-offset, -webkit-border-*-width, is specified as "the absolute length, snapped as a line width" .
There is no docs explaing what that means, that I can easely link in the computed value description.

Additional details

border-*-width, column-rule-width, outline-width snapped as a line width:
w3c/csswg-drafts#5210

Computed value untangled from *-style properties value:
w3c/csswg-drafts#11494 (comment)

outline-offset snapped as a line width:
w3c/csswg-drafts#12906

Definition of "length snapped as a line width":
https://drafts.csswg.org/css-values-4/#snap-as-a-line-width

Related issues and pull requests

Fixes #44193

Relates mdn/data#1069

@sb3nder sb3nder requested a review from a team as a code owner May 19, 2026 21:48
@sb3nder sb3nder requested review from dipikabh and removed request for a team May 19, 2026 21:48
@github-actions github-actions Bot added Content:CSS Cascading Style Sheets docs size/s [PR only] 6-50 LoC changed labels May 19, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Preview URLs (1 page)

External URLs (1)

URL: /en-US/docs/Web/CSS/Reference/Values/length
Title: <length> CSS type

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:CSS Cascading Style Sheets docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CSS] add length snapped as a line width reference

2 participants