servo/components/style/values/generics
Boris Chiou f00818b8ec style: Tweak the serialization of rotate property
The serialization of rotate should be updated to match the current spec.

1. If a rotation about the z axis (that is, in 2D) is specified, the property
   must serialize as just an <angle>.

2. If any other rotation is specified, the property must serialize with an axis
   specified. If the axis is parallel with the x or y axes, it must serialize
   as the appropriate keyword.

Also, we need to handle the zero length vector separately because it is
parallel to every other vector but different from x axis, y axis, or z axis.

Differential Revision: https://phabricator.services.mozilla.com/D127747
2023-05-31 00:50:30 +02:00
..
background.rs style: Fix the serialization of the computed value of background-size. 2019-06-25 13:11:31 +02:00
basic_shape.rs Fix warnings introduced in newer Rust Nightly 2021-02-25 15:36:03 +01:00
border.rs style: Remove -moz-outline-radius 2023-05-24 18:32:35 +02:00
box.rs style: Use rust types for vertical-align. 2019-05-07 12:55:41 +02:00
calc.rs Add support for the 'cap' font-relative unit 2023-05-10 03:02:30 +02:00
color.rs style: Implement accent-color in nsNativeBasicTheme 2023-05-19 19:06:08 +02:00
column.rs style: Derive ToResolvedValue. 2019-04-12 12:20:09 +02:00
counters.rs style: Support image-set in the content property 2023-05-16 12:54:05 +02:00
easing.rs animations: Don't convert linear easing to a bezier 2020-06-24 17:19:25 +02:00
effects.rs Fix warnings introduced in newer Rust Nightly 2021-02-25 15:36:03 +01:00
flex.rs style: Miscellaneous servo build fixes. 2020-06-04 01:50:36 +02:00
font.rs style: Update font-size-adjust keywords to match CSSWG resolution in csswg-drafts/#6288 2023-05-24 18:32:37 +02:00
grid.rs style: Switch all callsites of try() to try_parse() in the style crate. 2020-06-18 23:51:14 +02:00
image.rs style: Support the type() function in image-set 2023-05-17 02:12:40 +02:00
length.rs style: Unprefix -moz-fit-content 2023-05-30 23:26:03 +02:00
mod.rs style: Add some style quirks for legacy ::markers created from list-style-type/list-style-image 2023-05-24 18:32:34 +02:00
motion.rs style: Use Serde for SVGOffsetPath. 2020-02-12 02:43:14 +01:00
page.rs style: Remove the paper size variant of GenericPageSize and add an implied default to the paper size and orientation variant 2023-05-24 18:32:38 +02:00
position.rs style: Implement Animate trait and ComputeSquaredDistance trait for <ratio>. 2021-02-26 16:44:05 +01:00
ratio.rs style: Implement Animate trait and ComputeSquaredDistance trait for <ratio>. 2021-02-26 16:44:05 +01:00
rect.rs style: Switch all callsites of try() to try_parse() in the style crate. 2020-06-18 23:51:14 +02:00
size.rs style: Switch all callsites of try() to try_parse() in the style crate. 2020-06-18 23:51:14 +02:00
svg.rs Fix warnings introduced in newer Rust Nightly 2021-02-25 15:36:03 +01:00
text.rs style: Switch all callsites of try() to try_parse() in the style crate. 2020-06-18 23:51:14 +02:00
transform.rs style: Tweak the serialization of rotate property 2023-05-31 00:50:30 +02:00
ui.rs style: Support image-set() on the cursor property 2023-05-16 12:50:55 +02:00
url.rs style: Update cbindgen. 2019-09-12 22:34:16 +02:00