Cypress incorrectly uses the box model of elements that have display:contents
when determining visibility of child elements
#29605
Labels
display:contents
when determining visibility of child elements
#29605
Current behavior
Elements that have overflow:hidden and an effective width or height of 0, but are set to
display: contents
, will incorrectly be determined as not visible.Desired behavior
Cypress should correctly disregard any calculations regarding the box model of elements that have
display: contents
, as. these elements are effectively replaced by their children. See: https://drafts.csswg.org/css-display/#valdef-display-contentsTest code to reproduce
With the DOM:
Cypress wil determine that
#child
is not visible:However, this element is clearly visible, as the browser effectively replaces the
#parent
element with#child
when rendering.Cypress Version
13.11.0
Node version
v18.17.1
Operating System
macOS 14.3
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: