Closed Bug 1382168 Opened 7 years ago Closed 7 years ago

stylo: MaxLength and MozLength need zero value for SMIL

Categories

(Core :: CSS Parsing and Computation, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox-esr52 --- unaffected
firefox55 --- wontfix
firefox56 --- wontfix
firefox57 --- fixed

People

(Reporter: hiro, Assigned: canova)

Details

Emilio noticed that MaxLength does not return zero value [1]

I think we need zero value for MaxLength and MozLength.  Oops Emilio realized that LineHeight have no zero value either.

[1] https://github.com/servo/servo/pull/17774#discussion_r128175751
Brian? If it's not needed for SMIL, please close this bug.
Thanks!
Flags: needinfo?(bbirtles)
Yeah, there are a few of those implementations that seem really dubious... Probably someone should review all of them. I think it'd be nice if only for consistency.
We don't actually need zero value for most types. It's only used by SMIL and only for properties which are allowed to be animated by SMIL which is a closed set:

  http://searchfox.org/mozilla-central/rev/3a3af33f513071ea829debdfbc628caebcdf6996/dom/smil/nsSMILCSSProperty.cpp#173-227

When I added the zero functionality I probably filled in more types than I needed to simply because some of them were so easy.
Flags: needinfo?(bbirtles)
Ok, the list includes 'width' and 'height', so as far as I can tell, we need zero value for MozLength at least.
Assignee: nobody → canaltinova
Status: NEW → ASSIGNED
Implemented ToAnimatedZero for MozLength in https://github.com/servo/servo/pull/17986
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in before you can comment on or make changes to this bug.