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:
Oriol Brufau 2024-03-27 17:46:54 +01:00 committed by GitHub
parent da518823ff
commit b77ec08ab6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 7 deletions

View file

@ -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;

View file

@ -1,2 +0,0 @@
[absolute-tables-013.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[absolute-tables-014.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[absolute-tables-015.html]
expected: FAIL