New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
min/max-width/height, replaced elements #25207
Merged
+701
−440
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
a2c2b29
Move `clamp_*` functions to methods of `Length`
SimonSapin ce7e84b
Replace `percent_resolved_*` functions with methods
SimonSapin 999dd72
Account for min/max-width in outer intrinsic sizing
SimonSapin bf96988
Add min/max-width/height support for `inline-block`
SimonSapin c40583b
Move replaced box used size computation to a method of `ReplacedConte…
SimonSapin b73eb49
Add sizing of inline replaced boxes
SimonSapin 8996be3
Don’t assume replaced elements have an intrinsic size
SimonSapin 80b2b5f
Fix min/max-content of replaced boxes
SimonSapin f43dc3a
Remove inline/block_size from AbsolutelyPositionedFragment
SimonSapin e86222d
Remove AbsoluteBoxOffsets’s type parameter
SimonSapin 14ddf39
Rename ReplacedContent::used_size to used_size_as_if_inline_element
SimonSapin f09c14a
impl From<&'_ DefiniteContainingBlock> for ContainingBlock
SimonSapin 1fcdde9
Move two AbsoluteBoxOffsets fields into a Vec2
SimonSapin 1fa20e9
Implement replaced abspos
SimonSapin c07c980
Delayed initialization over mutation
SimonSapin 2906722
Conditionsals over closures
SimonSapin be8df1d
Move `solve_axis` function to module level
SimonSapin a17db21
Struct with named fields over large tuple
SimonSapin 53ce714
Fix a “Accessing content size that was not requested” panic
SimonSapin File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.
Fix min/max-content of replaced boxes
- Loading branch information
commit 80b2b5fb5e60f10ddac23429bf8c4353b6317133
ProTip!
Use n and p to navigate between commits in a pull request.
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.
Sorry, but again, I find the code more readable when that is just named
ratio.