Re: [csswg-drafts] Make child visible outside of `overflow: hidden` (#4092)

> Thanks for the detailed use cases.
> 
> For the case where `overflow: hidden` is only used to trim the corners of an image, my first instinct is whether there could be another way to do this — a new clip-path value that references the parent's border box, maybe? That way, you're not hiding overflow unless you really want to hide content.
> 
> But that doesn't help with the case where you want to extend outside of a scrolling container, but still be positioned relative to an element inside that scroller.

This is a little bit anal, so take this with a grain of salt -- however, I strongly dislike the question: "is there a way to do this that does not require making any changes to our system"?  A much better question might be, "what is the best experience we can give to our develops, and what changes ought we make to our system to accomplish this?"

The answer to the former question is for the developer to learn how to use clip-paths. The answer to the latter is to implement what the OP is suggesting.

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


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

Received on Tuesday, 2 April 2024 15:01:37 UTC