-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix 1px wide gaps between adjacent UI nodes (#374)
* Fractional pixel investigations * Enable rounding test * Reinstate old rounding function * Add option to disable rounding of layout output * Match Taffy's rounding in gentests Disable rounding for the "percent moderate" tests which fail due to Taffy's lack of precision (only using f32) causing it round in the opposite direction for those two tests. * Simplify and document round_layout function
- Loading branch information
Showing
34 changed files
with
884 additions
and
79 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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,18 @@ | ||
<!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="height: 100px;width:963.3333px;justify-content: center;"> | ||
<div style="width:100.3px;height:100.3px"></div> | ||
<div style="width:100.3px;height:100.3px"></div> | ||
</div> | ||
|
||
</body> | ||
</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,24 @@ | ||
<!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:7px;"> | ||
<div style="width:50%;flex-wrap: wrap;"> | ||
<div style="width: 2px;height: 10px;background-color: red"></div> | ||
<div style="width: 2px;height: 10px;background-color: green"></div> | ||
</div> | ||
<div style="width:50%;flex-wrap: wrap;"> | ||
<div style="width: 2px;height: 10px;background-color: yellow"></div> | ||
<div style="width: 2px;height: 10px;background-color: blue"></div> | ||
</div> | ||
</div> | ||
|
||
</body> | ||
</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,32 @@ | ||
<!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:7px;"> | ||
<div style="width:25%;flex-wrap: wrap;"> | ||
<div style="width: 1px;height: 10px;background-color: red"></div> | ||
<div style="width: 1px;height: 10px;background-color: green"></div> | ||
</div> | ||
<div style="width:25%;flex-wrap: wrap;"> | ||
<div style="width: 1px;height: 10px;background-color: yellow"></div> | ||
<div style="width: 1px;height: 10px;background-color: blue"></div> | ||
</div> | ||
<div style="width:25%;flex-wrap: wrap;"> | ||
<div style="width: 1px;height: 10px;background-color: red"></div> | ||
<div style="width: 1px;height: 10px;background-color: green"></div> | ||
</div> | ||
<div style="width:25%;flex-wrap: wrap;"> | ||
<div style="width: 1px;height: 10px;background-color: yellow"></div> | ||
<div style="width: 1px;height: 10px;background-color: blue"></div> | ||
</div> | ||
</div> | ||
|
||
</body> | ||
</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
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
2 changes: 1 addition & 1 deletion
2
tests/generated/gap_column_gap_percentage_flexible_with_padding.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.