Closed Bug 1504327 Opened 6 years ago Closed 6 years ago

Support |rotate: {x|y|z} <angle>| for individual transform

Categories

(Core :: CSS Transitions and Animations, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox65 --- fixed

People

(Reporter: boris, Assigned: boris)

References

(Blocks 1 open bug, )

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

The spec [1] says it is possible to use the `x`, `y`, `z` as the axis for "rotate" property. i.e.

> rotate: none | [ x | y | z | <number>{3} ]? && <angle>

For now, we only can use number as the axis.

Besides, "rotate" is not "GETCS_NEEDS_LAYOUT_FLUSH", so it is possible to serialize it by servo.

[1] https://drafts.csswg.org/css-transforms-2/#propdef-rotate
Update the parser and the serialization for rotate to support [x|y|z]
keywords.
Assignee: nobody → boris.chiou
Attachment #9024124 - Attachment description: Bug 1504327 - Support x, y, z, keywords on rotate. → Bug 1504327 - Support keywords [x|y|z] on rotate.
Pushed by boris.chiou@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/3bc1fa72e7eb
Support keywords [x|y|z] on rotate. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/14051 for changes under testing/web-platform/tests
https://hg.mozilla.org/mozilla-central/rev/3bc1fa72e7eb
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
Note to MDN writers:

The individual transform properties are still disabled behind a pref, AFAICT, so I'm not adding a note to the Fx65 rel notes about this.

We do already document the rotate property:
https://developer.mozilla.org/en-US/docs/Web/CSS/rotate

It is pretty much accurate, so this will probably just be a matter of updating the compat data.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: