Repository navigation
layout: Make lines non-phantom if they have inline padding/border/margin - #39058
Conversation
|
🔨 Triggering try run (#17363522120) for Linux (WPT) |
|
Test results for linux-wpt from try job (#17363522120): Flaky unexpected result (23)
Stable unexpected results that are known to be intermittent (24)
Stable unexpected results (2)
|
|
|
795add3 to
4b3ff4d
Compare
|
🔨 Triggering try run (#17379148533) for Linux (WPT) |
|
Test results for linux-wpt from try job (#17379148533): Flaky unexpected result (20)
Stable unexpected results that are known to be intermittent (26)
|
|
✨ Try run (#17379148533) succeeded. |
4b3ff4d to
1a8665b
Compare
|
🔨 Triggering try run (#17705897277) for Linux (WPT) |
|
🤖 Opened new upstream WPT pull request (web-platform-tests/wpt#54833) with upstreamable changes. |
|
Test results for linux-wpt from try job (#17705897277): Flaky unexpected result (22)
Stable unexpected results that are known to be intermittent (24)
|
|
✨ Try run (#17705897277) succeeded. |
|
🔨 Triggering try run (#17708592155) for Linux (WPT) |
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#54833). |
|
Test results for linux-wpt from try job (#17708592155): Flaky unexpected result (17)
Stable unexpected results that are known to be intermittent (31)
|
|
✨ Try run (#17708592155) succeeded. |
|
✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#54833) title and body. |
9a0bde1 to
9f601a8
Compare
|
🔨 Triggering try run (#17708950512) for Linux (WPT) |
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#54833). |
|
Test results for linux-wpt from try job (#17708950512): Flaky unexpected result (41)
Stable unexpected results that are known to be intermittent (26)
|
|
✨ Try run (#17708950512) succeeded. |
|
✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#54833) title and body. |
According to https://drafts.csswg.org/css-inline/#invisible-line-boxes, if a line box contains non-zero inline-axis margins, padding or borders, then it can't be phantom. Therefore, this patch makes adds a `has_inline_pbm` flag to the line. Note that we can't use the `has_content` flag, because that would add a soft wrap wrap opportunity between the padding/border/margin and the first content of the line. The patch also renames `InlineFormattingContext::had_inflow_content` to `has_line_boxes`, which is what we care about for collapsing margins through. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
9f601a8 to
c93cf1b
Compare
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#54833). |
According to https://drafts.csswg.org/css-inline/#invisible-line-boxes, if a line box contains non-zero inline-axis margins, padding or borders, then it can't be phantom.
Therefore, this patch makes adds a
has_inline_pbmflag to the line. Note that we can't use thehas_contentflag, because that would add a soft wrap opportunity between the padding/border/margin and the first content of the line.The patch also renames
InlineFormattingContext::had_inflow_contenttohas_line_boxes, which is what we care about for collapsing margins through.Testing: Adding new tests
Fixes: #39057