Re: [csswg-drafts] [css-overflow] How does overflow-clip-margin: border-box behave on a scroll container? (#7246)

Another place that a feature like this would be useful is in conjunction with visible states (e.g. `:focus` or `:focus-visible`) wherein content is added outside of the border-box of content within a scroll area. This can come to bear as in this image:

<img width="500" alt="image" src="https://user-images.githubusercontent.com/1156657/228323002-76c5b17a-449d-4fc9-8b78-18469f66b171.png">
(source: adobe/spectrum-css#1336 )

There are reciprocal techniques (e.g. using extra padding _internal_ to the parent, etc.) that you could do today that allow for managing this correctly. However, the idea that content can exist outside of the border-box feels like something that would be better to manage outside of the parent as well. Seeing scroll clipping work as outlined in @matthewferry's screenshots would be a great way to open up this reality.




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


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

Received on Tuesday, 28 March 2023 17:47:56 UTC