[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)
Tracking
()
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: I50f426e26ba279a25d3f1cde77764bfab95a27ceReviewed-on: https://chromium-review.googlesource.com/2381219
WPT-Export-Revision: f295a521375156a90b016234af85225c1f0483f6
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
Description
•