Skip to content

Commit

Permalink
Add aspect ratio tests for flex-columns with align-items: start
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Jan 4, 2023
1 parent c0ac73d commit 015934e
Show file tree
Hide file tree
Showing 45 changed files with 702 additions and 29 deletions.
28 changes: 28 additions & 0 deletions benches/generated/aspect_ratio_flex_column_fill_height.rs

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

22 changes: 22 additions & 0 deletions benches/generated/aspect_ratio_flex_column_fill_max_height.rs

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

40 changes: 40 additions & 0 deletions benches/generated/aspect_ratio_flex_column_fill_max_width.rs

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

28 changes: 28 additions & 0 deletions benches/generated/aspect_ratio_flex_column_fill_min_height.rs

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

40 changes: 40 additions & 0 deletions benches/generated/aspect_ratio_flex_column_fill_min_width.rs

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

28 changes: 28 additions & 0 deletions benches/generated/aspect_ratio_flex_column_fill_width.rs

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

27 changes: 27 additions & 0 deletions benches/generated/aspect_ratio_flex_column_fill_width_flex.rs

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

42 changes: 28 additions & 14 deletions benches/generated/mod.rs

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

17 changes: 17 additions & 0 deletions test_fixtures/aspect_ratio_flex_column_fill_height.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!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: flex;flex-direction: column;align-items: start;height: 100px; width: 100px;">
<div style="width: 40px; aspect-ratio: 2;"></div>
</div>

</body>
</html>
17 changes: 17 additions & 0 deletions test_fixtures/aspect_ratio_flex_column_fill_max_height.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!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: flex;flex-direction: column;align-items: start;height: 100px; width: 100px;">
<div style="max-width: 40px; aspect-ratio: 2;">HH&ZeroWidthSpace;HH&ZeroWidthSpace;HH&ZeroWidthSpace;HH&ZeroWidthSpace;HH&ZeroWidthSpace;HH&ZeroWidthSpace;HH&ZeroWidthSpace;HH&ZeroWidthSpace;HH&ZeroWidthSpace;HH&ZeroWidthSpace;HH</div>
</div>

</body>
</html>
17 changes: 17 additions & 0 deletions test_fixtures/aspect_ratio_flex_column_fill_max_width.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!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: flex;flex-direction: column;align-items: start;height: 100px; width: 100px;">
<div style="max-height: 20px; aspect-ratio: 2;">HH&ZeroWidthSpace;HH&ZeroWidthSpace;HH&ZeroWidthSpace;HH</div>
</div>

</body>
</html>
17 changes: 17 additions & 0 deletions test_fixtures/aspect_ratio_flex_column_fill_min_height.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!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: flex;flex-direction: column;align-items: start;height: 100px; width: 100px;">
<div style="min-width: 40px; aspect-ratio: 2;"></div>
</div>

</body>
</html>
19 changes: 19 additions & 0 deletions test_fixtures/aspect_ratio_flex_column_fill_min_width.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: flex;flex-direction: column;align-items: start;height: 100px; width: 100px;">
<div style="min-height: 40px; aspect-ratio: 2;">

</div>
</div>

</body>
</html>
17 changes: 17 additions & 0 deletions test_fixtures/aspect_ratio_flex_column_fill_width.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!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: flex;flex-direction: column;align-items: start;height: 100px; width: 100px;">
<div style="height: 40px; aspect-ratio: 2;"></div>
</div>

</body>
</html>
Loading

0 comments on commit 015934e

Please sign in to comment.