Gecko clamps computed height / width with min/max when there's no box.

RESOLVED FIXED in Firefox 68

Status

()

defect
P3
normal
RESOLVED FIXED
5 months ago
2 months ago

People

(Reporter: emilio, Assigned: emilio)

Tracking

unspecified
mozilla68
Points:
---

Firefox Tracking Flags

(firefox68 fixed)

Details

Attachments

(2 attachments)

Which doesn't match the spec or other browsers. See the attached test-case.

Priority: -- → P3
Assignee: nobody → emilio

The spec says that when there's no box or the property doesn't apply, the
computed value should be returned.

That's not what we're doing right now, we're clamping by min-/max- values, which
is wrong.

This patch makes us match other engines and the spec, and it's an attempt to get
interop on resolved values in:

https://github.com/w3c/csswg-drafts/issues/3678

WebKit fails the WPT test, but due to a different reason:

https://bugs.webkit.org/show_bug.cgi?id=197814

Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d51f3432e142
Do not clamp computed width and height by min-/max- values. r=mats
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/16874 for changes under testing/web-platform/tests
Upstream PR merged
You need to log in before you can comment on or make changes to this bug.