Skip to content

untangle border/column-rule/outline-width from *-style properties value#44195

Open
sb3nder wants to merge 2 commits into
mdn:mainfrom
sb3nder:untangle-border-width
Open

untangle border/column-rule/outline-width from *-style properties value#44195
sb3nder wants to merge 2 commits into
mdn:mainfrom
sb3nder:untangle-border-width

Conversation

@sb3nder

@sb3nder sb3nder commented May 19, 2026

Copy link
Copy Markdown
Contributor

Description

untangle the computed value for border-*-width, column-rule-width and outline-width from their related *-style properties.

Additional details

w3c/csswg-drafts#11494 (comment)

Related issues and pull requests

Relates #44193
Relates mdn/data#1069

@sb3nder sb3nder requested a review from a team as a code owner May 19, 2026 22:09
@sb3nder sb3nder requested review from dipikabh and removed request for a team May 19, 2026 22:09
@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

github-actions Bot commented May 19, 2026

Copy link
Copy Markdown
Contributor

@estelle estelle left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Outline style is OK.
I did not check line-style. Please do. As the other content can be changed/improved, but not removed, as the computed value is actually important in those two cases, and likely line style.

- `<line-style>`
- : Describes the style of the border. It can have the following values:
- `none`
- : Like the `hidden` keyword, displays no border. Unless a {{cssxref("background-image")}} is set, the computed value of the same side's {{cssxref("border-width")}} will be `0`, even if the specified value is something else. In the case of table cell and border collapsing, the `none` value has the _lowest_ priority: if any other conflicting border is set, it will be displayed.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this is actually important to explain.
if you do

border: 20px solid dashed;

and then:

border-style: hidden;

the box-model of that element is changed,

and then latter add this to the element:

border-style: dotted;

the border-width is 20px when shown as dotted.

this is true for both hidden and none

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I changed "computed value" to "used value", PTAL.

Comment thread files/en-us/web/css/reference/properties/outline/index.md
@sb3nder sb3nder requested a review from estelle June 10, 2026 14:05
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.

3 participants