-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Change the default visual box for OverflowClipMargin
to PaddingBox
#18935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change the default visual box for OverflowClipMargin
to PaddingBox
#18935
Conversation
It looks like your PR is a breaking change, but you didn't provide a migration guide. Please review the instructions for writing migration guides, then expand or revise the content in the migration guides directory to reflect your changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found a link to a CSS spec for the default value: https://udn.realityripple.com/docs/Mozilla/Gecko/Chrome/CSS/overflow-clip-box
(Btw, it seems that overflow-clip-box
is an obsolete CSS property, not supported in modern browsers)
UI overflow
example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Migration guide looks good. Thanks!
Yeah I think the visual-box settings are all just rolled into |
Objective
The default should be
OverflowClipBox::PaddingBox
notOverflowClipBox::ContentBox
padding-box
is the default in CSS.Solution
Set the default to
PaddingBox
.Testing
Compare the
overflow
UI example on main vs with this PR. You should see that on main the outline around the inner node gets clipped. With this PR by default clipping starts at the inner edge of the border (thepadding-box
) and the outlines are visible.Fixes #18934