Re: [csswg-drafts] [css-borders-4] Interaction of single-path `border-shape` with non-uniform `border-width` (#11662)

Summary of CSSWG discussion:
- We can't use `stroke` and `fill` because they inherit so setting them for a border would affect descendant SVG.
- border-width should still affect layout (as if we had a transparent solid border)
- There is a desire to use the existing border color & width in some way as a default.
- We should allow the geometry box of the shape to be inset by the stroke width, perhaps by default.

Based on the discussion, thinking of the following model for the single-path variant:
- Stroke-width and color are taken from (in order of priority):
   - A set of `border-stroke-*` properties 
   - The first border color/width that's not `none` in the shorthand order (TRBL).
- `border-style` is ignored.

We could probably spec this in stages, without the special `border-stroke-*` at first.


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


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

Received on Wednesday, 20 August 2025 15:03:55 UTC