-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Make CSS Grid algorithm correctly apply max width/height and ava…
…ilable space when it is the root node (#491) * Add viewport control to gentest setup * Add tests for max-width and available space on a CSS Grid root node * Only treat definite available grid space as indefinite when container size is indefinite, and only do so for the final two track sizing steps. (cherry picked from commit 9958624)
- Loading branch information
Showing
20 changed files
with
834 additions
and
58 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
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
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
20 changes: 20 additions & 0 deletions
20
test_fixtures/grid_available_space_greater_than_max_content.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<script src="../scripts/gentest/test_helper.js"></script> | ||
<link rel="stylesheet" type="text/css" href="../scripts/gentest/test_base_style.css"> | ||
<title> | ||
Test description | ||
</title> | ||
</head> | ||
<body> | ||
|
||
<div class="viewport" style="width: 400px;"> | ||
<div id="test-root" style="display: grid; grid-template-columns: auto auto;"> | ||
<div>HH​HH​HH​HH</div> | ||
<div>HH​HH​HH​HH</div> | ||
</div> | ||
</div> | ||
|
||
</body> | ||
</html> |
20 changes: 20 additions & 0 deletions
20
test_fixtures/grid_available_space_smaller_than_max_content.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<script src="../scripts/gentest/test_helper.js"></script> | ||
<link rel="stylesheet" type="text/css" href="../scripts/gentest/test_base_style.css"> | ||
<title> | ||
Test description | ||
</title> | ||
</head> | ||
<body> | ||
|
||
<div class="viewport" style="width: 80px;"> | ||
<div id="test-root" style="display: grid; grid-template-columns: auto auto;"> | ||
<div>HH​HH​HH​HH</div> | ||
<div>HH​HH​HH​HH</div> | ||
</div> | ||
</div> | ||
|
||
</body> | ||
</html> |
20 changes: 20 additions & 0 deletions
20
test_fixtures/grid_available_space_smaller_than_min_content.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<script src="../scripts/gentest/test_helper.js"></script> | ||
<link rel="stylesheet" type="text/css" href="../scripts/gentest/test_base_style.css"> | ||
<title> | ||
Test description | ||
</title> | ||
</head> | ||
<body> | ||
|
||
<div class="viewport" style="width: 60px;"> | ||
<div id="test-root" style="display: grid; grid-template-columns: auto auto;"> | ||
<div>HHHH​HHHH</div> | ||
<div>HHHH​HHHH</div> | ||
</div> | ||
</div> | ||
|
||
</body> | ||
</html> |
Oops, something went wrong.