Closed Bug 1527392 Opened 1 year ago Closed 1 year ago

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

Categories

(Core :: DOM: CSS Object Model, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: emilio, Assigned: emilio)

Details

Attachments

(2 files)

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: 1 year 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
You need to log in before you can comment on or make changes to this bug.