Closed Bug 1680686 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 26756 - Fieldset NG: the anonymous fieldset content box should be a container of absolute-positioned descendants if the fieldset can be a container

Categories

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

task

Tracking

()

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

b'Kent Tamura <tkent@chromium.org>' wrote:

Fieldset NG: the anonymous fieldset content box should be a container of absolute-positioned descendants if the fieldset can be a container

Such descendants should not be contained by the fieldset because they
should be scrolled together with the fieldset contents. This CL adds
|position: relative| to the anonymous fieldset content box if the
fieldset can contain absolute-positioned objects.

We need to add a special handling for OOF descendants of a LEGEND to
LayoutObject::ContainerForAbsolutePosition() because such OOF
descendants are contained by the fieldset in an NG fragment tree.
Without this change, we had some CHECK failures.

Bug: 1153042
Change-Id: I993922cfd373a9e0558bc50edb009680f0f1244a
Reviewed-on: https://chromium-review.googlesource.com/2569140
WPT-Export-Revision: 65f2e92731e7a9b955c4fce1d72c86f68ee1c582

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests

Status Summary

Firefox

PASS: 1

Chrome

FAIL: 1

Safari

FAIL: 1

Links

GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ee3ffdf96f9b
[wpt PR 26756] - Fieldset NG: the content box should be able to be an OOF container, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
You need to log in before you can comment on or make changes to this bug.