-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for margin collapsing through a node being blocked
- Loading branch information
Showing
31 changed files
with
1,554 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
test_fixtures/block_margin_y_fixed_size_collapse_through_blocked_by_aspect_ratio.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,19 @@ | ||
<!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 id="test-root" style="display: block; width: 50px;"> | ||
<div style="display: block; height: 10px; margin-bottom: 10px;"></div> | ||
<div style="display: block; margin-top: 10px; margin-bottom: 10px; aspect-ratio: 2;"></div> | ||
<div style="display: block; height: 10px; margin-top: 10px;"></div> | ||
</div> | ||
|
||
</body> | ||
</html> |
19 changes: 19 additions & 0 deletions
19
test_fixtures/block_margin_y_fixed_size_collapse_through_blocked_by_border_bottom.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,19 @@ | ||
<!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 id="test-root" style="display: block; width: 50px;"> | ||
<div style="display: block; height: 10px; margin-bottom: 10px;"></div> | ||
<div style="display: block; margin-top: 10px; margin-bottom: 10px; border-width-bottom: 1px;"></div> | ||
<div style="display: block; height: 10px; margin-top: 10px;"></div> | ||
</div> | ||
|
||
</body> | ||
</html> |
19 changes: 19 additions & 0 deletions
19
test_fixtures/block_margin_y_fixed_size_collapse_through_blocked_by_border_top.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,19 @@ | ||
<!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 id="test-root" style="display: block; width: 50px;"> | ||
<div style="display: block; height: 10px; margin-bottom: 10px;"></div> | ||
<div style="display: block; margin-top: 10px; margin-bottom: 10px; border-width-top: 1px;"></div> | ||
<div style="display: block; height: 10px; margin-top: 10px;"></div> | ||
</div> | ||
|
||
</body> | ||
</html> |
19 changes: 19 additions & 0 deletions
19
test_fixtures/block_margin_y_fixed_size_collapse_through_blocked_by_height.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,19 @@ | ||
<!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 id="test-root" style="display: block; width: 50px;"> | ||
<div style="display: block; height: 10px; margin-bottom: 10px;"></div> | ||
<div style="display: block; margin-top: 10px; margin-bottom: 10px; height: 1px;"></div> | ||
<div style="display: block; height: 10px; margin-top: 10px;"></div> | ||
</div> | ||
|
||
</body> | ||
</html> |
19 changes: 19 additions & 0 deletions
19
test_fixtures/block_margin_y_fixed_size_collapse_through_blocked_by_line_box.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,19 @@ | ||
<!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 id="test-root" style="display: block; width: 50px;"> | ||
<div style="display: block; height: 10px; margin-bottom: 10px;"></div> | ||
<div style="display: block; margin-top: 10px; margin-bottom: 10px;">HH</div> | ||
<div style="display: block; height: 10px; margin-top: 10px;"></div> | ||
</div> | ||
|
||
</body> | ||
</html> |
19 changes: 19 additions & 0 deletions
19
...ures/block_margin_y_fixed_size_collapse_through_blocked_by_line_box_with_height_zero.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,19 @@ | ||
<!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 id="test-root" style="display: block; width: 50px;"> | ||
<div style="display: block; height: 10px; margin-bottom: 10px;"></div> | ||
<div style="display: block; margin-top: 10px; margin-bottom: 10px; height: 0px;">HH</div> | ||
<div style="display: block; height: 10px; margin-top: 10px;"></div> | ||
</div> | ||
|
||
</body> | ||
</html> |
19 changes: 19 additions & 0 deletions
19
.../block_margin_y_fixed_size_collapse_through_blocked_by_line_box_with_max_height_zero.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,19 @@ | ||
<!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 id="test-root" style="display: block; width: 50px;"> | ||
<div style="display: block; height: 10px; margin-bottom: 10px;"></div> | ||
<div style="display: block; margin-top: 10px; margin-bottom: 10px; max-height: 0px;">HH</div> | ||
<div style="display: block; height: 10px; margin-top: 10px;"></div> | ||
</div> | ||
|
||
</body> | ||
</html> |
19 changes: 19 additions & 0 deletions
19
test_fixtures/block_margin_y_fixed_size_collapse_through_blocked_by_min_height.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,19 @@ | ||
<!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 id="test-root" style="display: block; width: 50px;"> | ||
<div style="display: block; height: 10px; margin-bottom: 10px;"></div> | ||
<div style="display: block; margin-top: 10px; margin-bottom: 10px; min-height: 1px;"></div> | ||
<div style="display: block; height: 10px; margin-top: 10px;"></div> | ||
</div> | ||
|
||
</body> | ||
</html> |
19 changes: 19 additions & 0 deletions
19
test_fixtures/block_margin_y_fixed_size_collapse_through_blocked_by_overflow_x_hidden.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,19 @@ | ||
<!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 id="test-root" style="display: block; width: 50px;"> | ||
<div style="display: block; height: 10px; margin-bottom: 10px;"></div> | ||
<div style="display: block; margin-top: 10px; margin-bottom: 10px; overflow-x: hidden;"></div> | ||
<div style="display: block; height: 10px; margin-top: 10px;"></div> | ||
</div> | ||
|
||
</body> | ||
</html> |
19 changes: 19 additions & 0 deletions
19
test_fixtures/block_margin_y_fixed_size_collapse_through_blocked_by_overflow_x_scroll.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,19 @@ | ||
<!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 id="test-root" style="display: block; width: 50px;"> | ||
<div style="display: block; height: 10px; margin-bottom: 10px;"></div> | ||
<div style="display: block; margin-top: 10px; margin-bottom: 10px; overflow-x: scroll;"></div> | ||
<div style="display: block; height: 10px; margin-top: 10px;"></div> | ||
</div> | ||
|
||
</body> | ||
</html> |
19 changes: 19 additions & 0 deletions
19
test_fixtures/block_margin_y_fixed_size_collapse_through_blocked_by_overflow_y_hidden.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,19 @@ | ||
<!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 id="test-root" style="display: block; width: 50px;"> | ||
<div style="display: block; height: 10px; margin-bottom: 10px;"></div> | ||
<div style="display: block; margin-top: 10px; margin-bottom: 10px; overflow-y: hidden;"></div> | ||
<div style="display: block; height: 10px; margin-top: 10px;"></div> | ||
</div> | ||
|
||
</body> | ||
</html> |
19 changes: 19 additions & 0 deletions
19
test_fixtures/block_margin_y_fixed_size_collapse_through_blocked_by_overflow_y_scroll.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,19 @@ | ||
<!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 id="test-root" style="display: block; width: 50px;"> | ||
<div style="display: block; height: 10px; margin-bottom: 10px;"></div> | ||
<div style="display: block; margin-top: 10px; margin-bottom: 10px; overflow-y: scroll;"></div> | ||
<div style="display: block; height: 10px; margin-top: 10px;"></div> | ||
</div> | ||
|
||
</body> | ||
</html> |
19 changes: 19 additions & 0 deletions
19
test_fixtures/block_margin_y_fixed_size_collapse_through_blocked_by_padding_bottom.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,19 @@ | ||
<!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 id="test-root" style="display: block; width: 50px;"> | ||
<div style="display: block; height: 10px; margin-bottom: 10px;"></div> | ||
<div style="display: block; margin-top: 10px; margin-bottom: 10px; padding-bottom: 1px;"></div> | ||
<div style="display: block; height: 10px; margin-top: 10px;"></div> | ||
</div> | ||
|
||
</body> | ||
</html> |
19 changes: 19 additions & 0 deletions
19
test_fixtures/block_margin_y_fixed_size_collapse_through_blocked_by_padding_top.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,19 @@ | ||
<!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 id="test-root" style="display: block; width: 50px;"> | ||
<div style="display: block; height: 10px; margin-bottom: 10px;"></div> | ||
<div style="display: block; margin-top: 10px; margin-bottom: 10px; padding-top: 1px;"></div> | ||
<div style="display: block; height: 10px; margin-top: 10px;"></div> | ||
</div> | ||
|
||
</body> | ||
</html> |
19 changes: 19 additions & 0 deletions
19
test_fixtures/block_margin_y_fixed_size_collapse_through_with_absolute_child.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,19 @@ | ||
<!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 id="test-root" style="display: block; width: 50px;"> | ||
<div style="display: block; height: 10px; margin-bottom: 10px;"></div> | ||
<div style="display: block; margin-top: 10px; margin-bottom: 10px;"><div style="position: absolute;">HH</div></div> | ||
<div style="display: block; height: 10px; margin-top: 10px;"></div> | ||
</div> | ||
|
||
</body> | ||
</html> |
79 changes: 79 additions & 0 deletions
79
tests/generated/block_margin_y_fixed_size_collapse_through_blocked_by_aspect_ratio.rs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.