Skip to content

Commit

Permalink
Add tests for margin collapsing through a node being blocked
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed May 17, 2023
1 parent 42584a8 commit 77e82c4
Show file tree
Hide file tree
Showing 31 changed files with 1,554 additions and 0 deletions.
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 77e82c4

Please sign in to comment.