-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply aspect ratio to absolute children of flex container
- Loading branch information
Showing
9 changed files
with
128 additions
and
75 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
benches/generated/aspect_ratio_flex_column_percent_fill_width.rs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
benches/generated/aspect_ratio_leaf_fill_min_width_percent.rs
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
17 changes: 17 additions & 0 deletions
17
test_fixtures/aspect_ratio_flex_column_absolute_fill_width.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,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; width: 1280px; height: 720px;"> | ||
<div style="position: absolute; top: 5%; left: 5%; width: 20%; aspect-ratio: 3;"></div> | ||
</div> | ||
|
||
</body> | ||
</html> |
17 changes: 17 additions & 0 deletions
17
test_fixtures/aspect_ratio_flex_column_percent_fill_width.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,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; width: 1280px; height: 720px;"> | ||
<div style="position: absolute; top: 5%; left: 5%; width: 20%; aspect-ratio: 3;"></div> | ||
</div> | ||
|
||
</body> | ||
</html> |
48 changes: 48 additions & 0 deletions
48
tests/generated/aspect_ratio_flex_column_percent_fill_width.rs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
tests/generated/aspect_ratio_leaf_fill_min_width_percent.rs
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.