Closed Bug 1498734 Opened 6 years ago Closed 6 years ago

Always compute angle values to degrees.

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla64
Tracking Status
firefox64 --- fixed

People

(Reporter: emilio, Assigned: emilio)

Details

Attachments

(1 file)

This matches the spec, https://drafts.csswg.org/css-values/#angles, which says:

> All <angle> units are compatible, and deg is their canonical unit.

And also other implementations (Blink always serializes angles as degrees in computed style for example).

Also allows us to get rid of quite a bit of code, and makes computed angle value representation just a number, which is nice.
This matches the spec, https://drafts.csswg.org/css-values/#angles, which says:

> All <angle> units are compatible, and deg is their canonical unit.

And also other implementations (Blink always serializes angles as degrees in
computed style for example).

Also allows us to get rid of quite a bit of code, and makes computed angle value
representation just a number, which is nice.
It also removes one of my oldest FIXMEs in the codebase ;)
Pushed by emilio@crisal.io:
https://hg.mozilla.org/integration/autoland/rev/7584ce8674c2
Always compute angle values to degrees. r=xidorn
https://hg.mozilla.org/mozilla-central/rev/7584ce8674c2
https://hg.mozilla.org/mozilla-central/rev/ebaf166c5731
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/13500 for changes under testing/web-platform/tests
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: