Re: [csswg-drafts] New `border-radius` value for perfectly matching nested radii (#7707)

Would the new property know which corners align with the parent? E.g. in your example is it necessary to specify which corners align, or could you just do this:

```css
.card {
  border-radius: 24px;
}

.card picture {
  border-radius: match-nearest-parent;
}
```

I wonder if only referencing the immediate parent would help avoid corner cases (pun intended). E.g. it feels a bit weird that going from `border-radius: 0` to `border-radius: 1px` on an intermediate node could change a descendant's clip from a large radius to a small one.

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


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

Received on Wednesday, 7 September 2022 17:15:11 UTC