-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
fix: update visibility to support parent overflow:clip without height/width #29778
fix: update visibility to support parent overflow:clip without height/width #29778
Conversation
|
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.
@senpl The visibility spec is failing in Firefox for this PR. Please address.
Fixed for firefox. Fix is now not that general but still fix reported issue. |
We've decided to prioritize looking into these visibility fixes in Quarter 4 of this year, when we intend to spend time on Cypress 14 release. It will ease any concerns we have around releasing breaking changes with these fixes and also help us plan the proper time to review these. Tracking here: #29925 |
Updated the base branch to go against release/14.0.0 |
Additional details
overflow:clip was added in Chrome 90 and was never incorporated back into the visibility logic. Added
clip
to theOVERFLOW_PROPS
to correctly handle visibility checks.Note: this PR does not address the overflow-clip-margin property which has limited support in browsers.
Steps to test
Verify when a parent element has
overflow:clip
and no height/width, a child element now returns ashidden
.How has the user experience changed?
Before:
After:
PR Tasks
cypress-documentation
?type definitions
?