Closed Bug 1567152 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 17876 - Replaced elements with 'contain: size' should have zero intrinsic size.

Categories

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

task

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Joonghun Park <pjh0718@gmail.com> wrote:

Replaced elements with 'contain: size' should have zero intrinsic size.

This behavior follows the spec,
https://drafts.csswg.org/css-contain/#containment-size,
as the statement below.

'Replaced elements must be treated
as having an intrinsic width and height of 0.'

For this behavior, when 'contain: size' is specified,
LayoutReplaced::IntrinsicSize returns zero size
instead of the intrinsic size it actually has.

Bug: 955163
Change-Id: If0309ae5f1adb2e3026ff92bfde2ffb07ba73582

Reviewed-on: https://chromium-review.googlesource.com/1703540
WPT-Export-Revision: 219c7725a6bdda2f6f8b83e597a3ab48ee619cbf

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Type: -- → task
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/3fe80012490f [wpt PR 17876] - Replaced elements with 'contain: size' should have zero intrinsic size., a=testonly
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in before you can comment on or make changes to this bug.