mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Ignore spaces before atomic inline for the min-content size (#31896)
* Ignore spaces before atomic inline for the min-content size For the min-content size we should wrap lines wherever is possible, so wrappable spaces shouldn't increase the length of the line, they will just be removed or hang at the end of the line. * Add a clarifying comment Co-authored-by: Martin Robinson <mrobinson@igalia.com> --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
da518823ff
commit
b77ec08ab6
4 changed files with 4 additions and 7 deletions
|
@ -2393,7 +2393,10 @@ impl<'a> ContentSizesComputation<'a> {
|
|||
self.containing_block_writing_mode,
|
||||
);
|
||||
|
||||
self.current_line.min_content += self.pending_whitespace + outer.min_content;
|
||||
// For the min-content size we should wrap lines wherever is possible,
|
||||
// so wrappable spaces shouldn't increase the length of the line,
|
||||
// they will just be removed or hang at the end of the line.
|
||||
self.current_line.min_content += outer.min_content;
|
||||
self.current_line.max_content += self.pending_whitespace + outer.max_content;
|
||||
self.pending_whitespace = Au::zero();
|
||||
self.had_content_yet = true;
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
[absolute-tables-013.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[absolute-tables-014.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[absolute-tables-015.html]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue