Repository navigation
flex: handle ‘align-self: [ first | last ]? && baseline’ - #32787
Merged
Merged
Conversation
delan
force-pushed
the
flexbox-item-baseline
branch
2 times, most recently
from
July 17, 2024 10:29
7c876cd to
2a63ab4
Compare
|
🔨 Triggering try run (#9973502453) for Linux WPT |
Member
Author
|
TODO in a subsequent patch
|
|
Test results for linux-wpt-layout-2020 from try job (#9973502453): Flaky unexpected result (23)
Stable unexpected results that are known to be intermittent (15)
Stable unexpected results (57)
|
|
|
delan
force-pushed
the
flexbox-item-baseline
branch
from
July 17, 2024 14:24
f5d76af to
d583ed0
Compare
|
🔨 Triggering try run (#9976061063) for Linux WPT |
|
Test results for linux-wpt-layout-2020 from try job (#9976061063): Flaky unexpected result (25)
Stable unexpected results that are known to be intermittent (15)
|
|
✨ Try run (#9976061063) succeeded. |
mukilan
force-pushed
the
flexbox-item-baseline
branch
from
July 18, 2024 06:33
d583ed0 to
b3d521c
Compare
Member
|
I've rebased against main since #32790 has landed, signed off the commits to satisfy DCO bot and force pushed to delan's branch. |
mukilan
approved these changes
Jul 18, 2024
mukilan
enabled auto-merge
July 18, 2024 06:38
Signed-off-by: Mukilan Thiyagarajan <[email protected]>
Signed-off-by: Mukilan Thiyagarajan <[email protected]>
Signed-off-by: Mukilan Thiyagarajan <[email protected]>
Signed-off-by: Mukilan Thiyagarajan <[email protected]>
Signed-off-by: Mukilan Thiyagarajan <[email protected]>
Signed-off-by: Mukilan Thiyagarajan <[email protected]>
Signed-off-by: Mukilan Thiyagarajan <[email protected]>
Signed-off-by: Mukilan Thiyagarajan <[email protected]>
Signed-off-by: Mukilan Thiyagarajan <[email protected]>
mukilan
force-pushed
the
flexbox-item-baseline
branch
from
July 18, 2024 06:41
b3d521c to
754d910
Compare
mukilan
disabled auto-merge
July 18, 2024 06:41
mukilan
enabled auto-merge
July 18, 2024 06:42
Gae24
pushed a commit
to Gae24/servo
that referenced
this pull request
Jul 26, 2024
* flex: handle ‘align-self: baseline’ Signed-off-by: Mukilan Thiyagarajan <[email protected]> * FIXME: css/css-flexbox/align-items-baseline-overflow-non-visible.html Signed-off-by: Mukilan Thiyagarajan <[email protected]> * Fix baseline selection Signed-off-by: Mukilan Thiyagarajan <[email protected]> * Fix baseline calculation with padding/border/margin Signed-off-by: Mukilan Thiyagarajan <[email protected]> * Fix compile errors and warnings Signed-off-by: Mukilan Thiyagarajan <[email protected]> * Implement ‘align-self: last baseline’ Signed-off-by: Mukilan Thiyagarajan <[email protected]> * Fix bug where non-baseline-aligned items affected max baseline Signed-off-by: Mukilan Thiyagarajan <[email protected]> * Update expectations Signed-off-by: Mukilan Thiyagarajan <[email protected]> * Rename method Signed-off-by: Mukilan Thiyagarajan <[email protected]> --------- Signed-off-by: Mukilan Thiyagarajan <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This patch implements layout for flex items with ‘baseline’ (‘first baseline’) or ‘last baseline’ alignment, except for the inline axis and auto cross margins checks when calculating the cross size of each flex line.
We calculate and store the baseline relative to the margin cross start edge for each item, then use that when calculating the cross size of each flex line and aligning all flex items along the cross-axis. When we need to synthesize baselines for an item, we take the hypothetical cross size or the used cross size respectively, adding cross-axis pbm sizes such that the baseline is the border cross end edge.
Co-authored-by: Martin Robinson [email protected]
Co-authored-by: Mukilan Thiyagarajan [email protected]
Signed-off-by: Delan Azabani [email protected]
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThese changes fix #___ (GitHub issue number if applicable)Diff against #32790: https://github.com/servo/servo/pull/32787/files/ab08695506911c4ac6d6b9a5834e8a89fc63a9c9..d583ed0669c356bd944bc520b438dc60b844a73a