Closed
Bug 1353921
Opened 8 years ago
Closed 8 years ago
Make letter-spacing animatable
Categories
(Core :: CSS Parsing and Computation, enhancement)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
People
(Reporter: hiro, Assigned: hiro)
References
Details
Attachments
(1 file)
To make a property animatable we need to do:
1. set animatable variable to 'True'
2. implement clone_PROPERTY_NAME() method
3. implement Interpolate trait
This bug is a reference what we need to do specifically.
Comment hidden (mozreview-request) |
Comment 2•8 years ago
|
||
mozreview-review |
Comment on attachment 8855088 [details]
Bug 1353921 - Make letter-spacing animatable.
https://reviewboard.mozilla.org/r/126986/#review129680
::: servo/components/style/properties/longhand/inherited_text.mako.rs:408
(Diff revision 1)
> }
> % endif
> </%helpers:longhand>
>
> // FIXME: This prop should be animatable.
> -<%helpers:longhand name="letter-spacing" boxed="True" animatable="False"
> +<%helpers:longhand name="letter-spacing" boxed="True" animatable="True"
presumably you can remove the FIXME now.
Assignee | ||
Comment 3•8 years ago
|
||
(In reply to Robert Longson from comment #2)
> Comment on attachment 8855088 [details]
> Bug 1353921 - Make letter-spacing animatable.
>
> https://reviewboard.mozilla.org/r/126986/#review129680
>
> ::: servo/components/style/properties/longhand/inherited_text.mako.rs:408
> (Diff revision 1)
> > }
> > % endif
> > </%helpers:longhand>
> >
> > // FIXME: This prop should be animatable.
> > -<%helpers:longhand name="letter-spacing" boxed="True" animatable="False"
> > +<%helpers:longhand name="letter-spacing" boxed="True" animatable="True"
>
> presumably you can remove the FIXME now.
Oh yes. Thanks!
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → hikezoe
Status: NEW → ASSIGNED
Comment hidden (mozreview-request) |
Assignee | ||
Comment 5•8 years ago
|
||
I did confirm letter-spacing animatable now with testing/web-platform/tests/web-animations/animation-model/animation-types/interpolation-per-property.html .
Comment 6•8 years ago
|
||
mozreview-review |
Comment on attachment 8855088 [details]
Bug 1353921 - Make letter-spacing animatable.
https://reviewboard.mozilla.org/r/126986/#review129702
Thanks for fixing this!
::: servo/components/style/properties/gecko.mako.rs:2890
(Diff revision 2)
> + pub fn clone_letter_spacing(&self) -> longhands::letter_spacing::computed_value::T {
> + use properties::longhands::letter_spacing::computed_value::T;
> + match self.gecko.mLetterSpacing.as_value() {
> + CoordDataValue::Normal => T(None),
> + CoordDataValue::Coord(coord) => T(Some(Au(coord))),
> + _ => unreachable!(),
Let's add a message here, like:
`unreachable!("Unexpected computed value for letter-spacing")`
or that sort of stuff.
Attachment #8855088 -
Flags: review?(emilio+bugs) → review+
Assignee | ||
Comment 7•8 years ago
|
||
Thank you Emilio for the quick review!
https://github.com/servo/servo/pull/16278
Assignee | ||
Comment 8•8 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•