-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: #29605 for display: contents parent visibility with correct widt…
…h check (#29680) * forst working version * remove visibilityVisible as non essencial * changelog for pipeline fix * fix only for firefox. It works in other browsers without this change * changelog update for pipeline * pipeline fix * return of previous spacing * Update CHANGELOG.md * changelog without unnecessery changes * changelog fix * fix changelog entry * update test to properly have a test for the issue * add test for other elements to not be visible * bump cache --------- Co-authored-by: Jennifer Shehane <[email protected]>
- Loading branch information
1 parent
11f3355
commit a6ddd3d
Showing
6 changed files
with
106 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Bump this version to force CI to re-create the cache from scratch. | ||
|
||
10-30-24-vue2-removal | ||
11-1-24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// https://github.com/cypress-io/cypress/issues/29605 | ||
describe('issue #29605 - els with display: contents', () => { | ||
beforeEach(() => { | ||
cy.visit('/fixtures/issue-29605.html') | ||
}) | ||
|
||
it('children of parent with no width/height are visible', () => { | ||
cy.get('#parent').should('not.be.visible') | ||
cy.get('#child').should('be.visible') | ||
}) | ||
|
||
// https://drafts.csswg.org/css-display/#unbox | ||
it('not rendered by CSS box concept are not visible', () => { | ||
cy.get('#input').should('not.be.visible') | ||
cy.get('#select').should('not.be.visible') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<title>29605 repro</title> | ||
</head> | ||
|
||
<body> | ||
<div id="parent" style="overflow: hidden; height: 0; width: 0; display: contents;"> | ||
<div id="child" style="height:200px; width: 200px; background: #f00"></div> | ||
</div> | ||
<input id="input" type="text" id="name" name="name" style="overflow: hidden; height: 0; width: 0; display: contents;" /> | ||
<select name="pets" id="select" style="display: contents;"> | ||
<option value="">--Please choose an option--</option> | ||
<option value="dog">Dog</option> | ||
<option value="cat">Cat</option> | ||
</select> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a6ddd3d
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.
Circle has built the
linux arm64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally:
a6ddd3d
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.
Circle has built the
linux x64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally:
a6ddd3d
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.
Circle has built the
win32 x64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally:
a6ddd3d
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.
Circle has built the
darwin arm64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally:
a6ddd3d
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.
Circle has built the
darwin x64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally: