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)
Core
CSS Parsing and Computation
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
Reporter | ||
Comment 1•7 years ago
|
||
Brian? If it's not needed for SMIL, please close this bug. Thanks!
Flags: needinfo?(bbirtles)
Comment 2•7 years ago
|
||
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.
Comment 3•7 years ago
|
||
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)
Reporter | ||
Comment 4•7 years ago
|
||
Ok, the list includes 'width' and 'height', so as far as I can tell, we need zero value for MozLength at least.
Updated•7 years ago
|
Priority: -- → P3
Updated•7 years ago
|
Assignee: nobody → canaltinova
Status: NEW → ASSIGNED
Assignee | ||
Comment 5•7 years ago
|
||
Implemented ToAnimatedZero for MozLength in https://github.com/servo/servo/pull/17986
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
status-firefox57:
--- → fixed
Target Milestone: --- → mozilla57
Updated•7 years ago
|
status-firefox55:
--- → wontfix
status-firefox56:
--- → wontfix
status-firefox-esr52:
--- → unaffected
You need to log in
before you can comment on or make changes to this bug.
Description
•