Closed Bug 1567349 Opened 5 years ago Closed 5 years ago

Background-position-y parsing WPT is bogus.

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: emilio, Assigned: emilio)

Details

Attachments

(1 file)

The right serialization for calc(10px - 0.5em) is calc(-0.5em + 10px).

https://drafts.csswg.org/css-values-4/#calc-serialize:

Sort the terms in the following order:
The number, if present
The percentage, if present
The dimensions, ordered by their units ASCII case-insensitive alphabetically
Comparison, trigonometric and exponential functions, in the order they appeared in the original expression.

So em goes before px. I filed https://github.com/w3c/csswg-drafts/issues/4129 on
the second part of that algorithm not matching any browser.

These are tests that are marked as only failing in Firefox because we're the
only following the spec. #funtimes

Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0bbd8e64cb9c
Fix various bogus WPTs that test wrong calc serialization. r=heycam
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/17933 for changes under testing/web-platform/tests
No longer regressions: 1589038
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: