We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Element with backface-visibility: hidden which is rotated by 180deg is still considered visible, and not hidden.
backface-visibility: hidden
When the element is rotated (and hence not visible), the assertion el.should('be.hidden') should pass.
el.should('be.hidden')
transform: rotateY(180deg)
el.should('be.hidden'
Cypress: 3.3.0 Windows 10 Chrome: 74.0.3729.157 64bit
HTML:
<div class="wrapper"> <div class="innerDiv"><p>FRONT</p></div> <div class="innerDiv"><p>BACK</p></div> </div>
CSS:
.wrapper { position: relative; } .innerDiv { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); backface-visibility: hidden; } .innerDiv.second { transform: translate(-50%, -50%) rotateY(180deg); } .wrapper:hover .innerDiv.first { transform: translate(-50%, -50%) rotateY(180deg); } .wrapper:hover .innerDiv.second { transform: translate(-50%, -50%) rotateY(0); }
The text was updated successfully, but these errors were encountered:
Duplicate of #2985
Sorry, something went wrong.
No branches or pull requests
Current behavior:
Element with
backface-visibility: hidden
which is rotated by 180deg is still considered visible, and not hidden.Desired behavior:
When the element is rotated (and hence not visible), the assertion
el.should('be.hidden')
should pass.Steps to reproduce: (app code and test code)
backface-visibility: hidden
to both divs.transform: rotateY(180deg)
to the second div.el.should('be.hidden'
).Versions
Cypress: 3.3.0
Windows 10
Chrome: 74.0.3729.157 64bit
Code example
HTML:
CSS:
The text was updated successfully, but these errors were encountered: