Skip to content

Commit

Permalink
Add tests for scrollbars taking up space in flexbox containers
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Apr 9, 2023
1 parent d56e314 commit 6fd63ec
Show file tree
Hide file tree
Showing 7 changed files with 171 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test_fixtures/overflow_scrollbars_take_up_space_both_axis.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="width:50px; height: 50px;overflow: scroll;">
<div style="flex-grow: 1"></div>
</div>

</body>
</html>
17 changes: 17 additions & 0 deletions test_fixtures/overflow_scrollbars_take_up_space_cross_axis.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="width:50px; height: 50px;overflow-y: scroll;">
<div style="flex-grow: 1"></div>
</div>

</body>
</html>
17 changes: 17 additions & 0 deletions test_fixtures/overflow_scrollbars_take_up_space_main_axis.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="width:50px; height: 50px;overflow-x: scroll;">
<div style="flex-grow: 1"></div>
</div>

</body>
</html>
3 changes: 3 additions & 0 deletions tests/generated/mod.rs

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

39 changes: 39 additions & 0 deletions tests/generated/overflow_scrollbars_take_up_space_both_axis.rs

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

39 changes: 39 additions & 0 deletions tests/generated/overflow_scrollbars_take_up_space_cross_axis.rs

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

39 changes: 39 additions & 0 deletions tests/generated/overflow_scrollbars_take_up_space_main_axis.rs

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

0 comments on commit 6fd63ec

Please sign in to comment.