-
Notifications
You must be signed in to change notification settings - Fork 719
[css-overflow-3] What clips scrollable overflow? #8607
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
Comments
|
I believe we represent |
The CSS Working Group just discussed
The full IRC log of that discussion |
I think we have a little less interop than we thought with TL;DR: The problematic case is when a float overflows in the block axis. Here's a test case It has a float, inside of a box with First, in Safari, the test doesn't work, because it seems that Back to the main test case. In Chrome and Firefox (and Safari if you modify the test case to remove block overflow), However, things get more "interesting" in the block axis:
If we try to have something other than a float cause the overflow, for instance with an abspos, then we do have interop in all 3 browsers that the clipped content does not trigger scroll overflow in either axis. In conclusion, what the spec currently says is that But the spec is less clear on whether the protruding geometry can cause scrollbars on ancestor elements, and we do not have full interop on that. We seem closer to agreement on not scrolling than the other way around, but we're not fully there: when a float overflows in the block axis, we get 3 possible behaviors: clear and scroll, clear but don't scroll, or give up. Question to the group (and particularly to Safari and Firefox): do you consider that a bug that you intend to fix, and we can therefore stick with the resolution, or does that cause a need to rethink? |
I think the Firefox behavior there is probably a bug -- at least, we change to match Chromium if I apply @dshin-moz's patch for bug 1768921 (which is aiming to implement the spec update from #129 and align with Chromium's behavior on that). (That patch has been stuck in my review queue, but I anticipate finishing the review soon. When it lands, Firefox & Chromium will be consistent on this part at least.) So: no concerns from me on sticking with the resolution at this point. |
I filed https://bugs.webkit.org/show_bug.cgi?id=256410 on the Safari issue with floats. |
Uh oh!
There was an error while loading. Please reload this page.
See testcase:
So far the following results:
overflow: clip
(andcontain: paint
) clip scrollable overflowclip-path
does not clip scrollable overflow in FF, WK, or Blinkclip-path
, e.g.border-box
doesn't work >:/clip
does not have interop on this pointIs this the behavior we want?
The text was updated successfully, but these errors were encountered: