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

> but I also agree with @flackr's point that maybe just looking at the parent is the right thing.

Yes, there are *potentially* a large range of possible situations that fit this pattern (multiple wrappers between you and the border-radius container, you using margin vs the container using padding, etc), but I don't think it's reasonable to try and address all of them.

So a simple "look at parent, subtract parent's padding, floor at 0" seems like it hits the 80% case in a super simple, easy to explain  fashion. (And hopefully much more easily implementable than handling the wider range of situations.)

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7707#issuecomment-1239842790 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 20:34:19 UTC