Skip to content

feat(css): update computed for border/column-rule/outline-width, outline-offset#1069

Merged
dipikabh merged 4 commits into
mdn:mainfrom
sb3nder:computed-border-width
Jul 9, 2026
Merged

feat(css): update computed for border/column-rule/outline-width, outline-offset#1069
dipikabh merged 4 commits into
mdn:mainfrom
sb3nder:computed-border-width

Conversation

@sb3nder

@sb3nder sb3nder commented May 9, 2026

Copy link
Copy Markdown
Contributor

Description

This PR updates the computed value for border-*-width, column-rule-width, outline-width, outline-offset, -webkit-border-*-width, to "the absolute length, snapped as a line width".

Motivation

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

Depends on: mdn/content#44193

@sb3nder sb3nder changed the title feat(css): Update computed for border/column-rule/outline-width, outline-offset feat(css): update computed for border/column-rule/outline-width, outline-offset May 19, 2026

@dipikabh dipikabh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for sending this PR, @sb3nder!

I have two comments for you

Comment thread l10n/css.json Outdated
Comment thread css/properties.json
@sb3nder sb3nder requested a review from dipikabh July 8, 2026 17:10

@dipikabh dipikabh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thank you!

@dipikabh dipikabh merged commit dbf4dd3 into mdn:main Jul 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants