Closed Bug 1695514 Opened 5 years ago Closed 2 years ago

[wpt-sync] Sync PR 27818 - [CSS] Return 'auto' for the computed value instead of 0px

Categories

(Core :: DOM: CSS Object Model, task, P4)

task

Tracking

()

RESOLVED INVALID

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

b'Jaeyong Bae <jdragon.bae@gmail.com>' wrote:

[CSS] Return 'auto' for the computed value instead of 0px

This patch returns 'auto' for the computed value instead of 0px for
min-height / min-width. getComputedStyle(element)['min-height'] fixes
up the return value for min-height / min-width to report 0px even though
the computed style 'auto'. But computedStyleMap() shouldn't apply these
fixups, instead should return 'auto' in these cases.

Bug: 989123
Change-Id: I351723f276ee98c1fc70a15ee49a7233513004d5
Reviewed-on: https://chromium-review.googlesource.com/2705908
WPT-Export-Revision: f82c159b0b7e06300479946ddbacb1a426966634

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