You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When reserving space for a scrollbar placed at the edge of an element’s box, the reserved space is inserted between the inner border edge and the outer padding edge. For the purpose of the background positioning area and background painting area however, this reserved space is considered to be part of the padding box.
But what browsers do with content-box still seems a bug. This is what I would expect:
Loirooriol
changed the title
[css-backgrounds] background-clip with scrollbarNov 11, 2024
https://drafts.csswg.org/css-backgrounds/#background-clip
This doesn't seem to be the case in any browser:
I'm using
::webkit-scrollbar
andwidget.gtk.overlay-scrollbars.enabled=false
to force classic scrollbars.background-clip: content-box
background-clip: padding-box
So there seems to be interoperability that:
background-clip: padding-box
clips to the border box shrunken by the border widths, not to the padding box.background-clip: content-box
clips to the border box shrunken by the border widths and padding, not to the content box.The text was updated successfully, but these errors were encountered: