Closed Bug 1661661 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 25268 - Fieldset: A rendered legend should not split inline boxes into multiple anonymous blocks

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED INVALID

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Kent Tamura <tkent@chromium.org> wrote:

Fieldset: A rendered legend should not split inline boxes into multiple anonymous blocks

Before this CL, |\<fieldset>ABC\<legend>\</legend>XYZ\</fieldset>|
produced a LayoutObject tree like:

LayoutFieldset {FIELDSET}
LayoutBlockFlow (anonymous)
LayoutText for "ABC"
LayoutBlockFlow {LEGEND}
LayoutBlockFlow (anonymous)
LayoutText for "XYZ"

So, "ABC" and "XYZ" are in different IFCs.

This CL updates LayoutBlockFlow::AddChild() so that the above markup
produces:

LayoutFieldset {FIELDSET}
LayoutBlockFlow (anonymous)
LayoutText for "ABC"
LayoutText for "XYZ"
LayoutBlockFlow {LEGEND}

This change affects both of LayoutFieldset and LayoutNGFieldset.

Bug: 880062
Change-Id: I50f426e26ba279a25d3f1cde77764bfab95a27ce

Reviewed-on: https://chromium-review.googlesource.com/2381219
WPT-Export-Revision: f295a521375156a90b016234af85225c1f0483f6

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.