Closed Bug 1758299 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 33077 - [block-in-inline] Fix when inserting inline in the middle of blocks

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
100 Branch
Tracking Status
firefox100 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 33077 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/33077
Details from upstream follow.

Koji Ishii <kojii@chromium.org> wrote:

[block-in-inline] Fix when inserting inline in the middle of blocks

When inserting an inline child in the middle of blocks-in-
inline, the |LayoutObject| tree must be adjusted. For example:

LayoutInline
  LayoutBlockFlow (anonymous)
    LayoutBlockFlow DIV
    LayoutBlockFlow DIV

should become:

LayoutInline
  LayoutBlockFlow (anonymous)
    LayoutBlockFlow DIV
  LayoutInline
  LayoutBlockFlow (anonymous)
    LayoutBlockFlow DIV

To do this, this patch moves |SplitAnonymousBoxesAroundChild|
from |LayoutBox| to |LayoutBoxModelObject|, and changes it to
work with |LayoutInline|.

Bug: 1301982
Change-Id: I680748159d50826f152b0bf6c46d11bb33563c40
Reviewed-on: https://chromium-review.googlesource.com/3499975
WPT-Export-Revision: c5d695c017534a4a7c4bf1e1a9226aa43668ed5d

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b759532cee45
[wpt PR 33077] - [block-in-inline] Fix when inserting inline in the middle of blocks, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
You need to log in before you can comment on or make changes to this bug.