-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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: inline element with visibile child now is considered visible #8130
Conversation
Thanks for taking the time to open a PR!
|
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
Commented in issue: #6183 (comment) Yah, maybe another short discussion similar to opacity would be good. |
@jennifer-shehane I think that we should go ahead with this fix. Despite the concern that this goes against the DOM structure in Chrome, it does not change any behavior in Firefox. Therefore, I think we should implement the change in order to standardize our tests across Chrome and Firefox, since it is less important that our visibility algorithm is technically correct regarding an edge case for an ambiguous W3 specification and more important that our tests are consistent between browsers. |
Ok, I had a discussion task opened TR-232, but if you don't think that's necessary then I'll re-review. |
@jennifer-shehane I would be open to having a discussion, but when I mentioned it in our Slack it did not get much interest. I can ask again on <onday and see if there is more interest. |
User facing changelog
Fixes an issue where a
display: inline
parent would be considered hidden if it had a visible child who haddisplay: block
Additional details
I do not think that implementing this fix is an appropriate course of action, see this comment in the original issue: #6183 (comment).Updated comment: #8130 (comment)I would like to have a discussion around this before we decide to merge these changes.
How has the user experience changed?
Given the following test case (modified here so may not work exactly, but shows the general idea, actual test case can be seen in diff):
Before:
After:
Given the original test case from the issue:
Before:
After:
PR Tasks