Closed
Bug 773102
Opened 12 years ago
Closed 12 years ago
transition-duration and animation-duration should reject negative values at parse time
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla16
People
(Reporter: dbaron, Assigned: dbaron)
References
Details
(Keywords: dev-doc-complete)
Attachments
(4 files)
3.72 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
3.98 KB,
patch
|
bzbarsky
:
review-
|
Details | Diff | Splinter Review |
3.97 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
2.31 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
Per resolution in the CSS working group's teleconference today, animation-duration and transition-duration should reject negative values at parse time.
http://lists.w3.org/Archives/Public/www-style/2012Jul/0265.html
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → dbaron
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #641274 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 2•12 years ago
|
||
Attachment #641275 -
Flags: review?(bzbarsky)
Assignee | ||
Updated•12 years ago
|
Attachment #641275 -
Attachment description: Rename VARIANT_POSITIVE_LENGTH to VARIANT_NONNEGATIVE_DIMENSION since (a) it also applies to times and frequencies and (b) it allows 0. → Rename VARIANT_POSITIVE_LENGTH to VARIANT_NONNEGATIVE_DIMENSION since (a) it also applies to times and frequencies and (b) it allows 0. (patch 1)
Comment 3•12 years ago
|
||
Comment on attachment 641275 [details] [diff] [review]
Rename VARIANT_POSITIVE_LENGTH to VARIANT_NONNEGATIVE_DIMENSION since (a) it also applies to times and frequencies and (b) it allows 0. (patch 1)
The parser code ungets and returns false if "tk->mNumber <= 0.0". So as far as I can tell, it really is requiring a positive value....
And in fact, the spec for "perspective" claims that lengths "must be positive". Or is the spec and the parser code wrong?
Attachment #641275 -
Flags: review?(bzbarsky) → review-
Comment 4•12 years ago
|
||
Comment on attachment 641274 [details] [diff] [review]
Require animation-duration and transtion-duration to be nonnegative at parse time. (, patch 3)
This seems fine, assuming the first patch is fine...
Attachment #641274 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Updated•12 years ago
|
Attachment #641274 -
Attachment description: Require animation-duration and transtion-duration to be nonnegative at parse time. (, patch 2) → Require animation-duration and transtion-duration to be nonnegative at parse time. (, patch 3)
Assignee | ||
Comment 5•12 years ago
|
||
Attachment #641988 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 6•12 years ago
|
||
Attachment #641989 -
Flags: review?(bzbarsky)
Comment 7•12 years ago
|
||
Comment on attachment 641988 [details] [diff] [review]
Rename VARIANT_POSITIVE_LENGTH to VARIANT_POSITIVE_DIMENSION since it also applies to times and frequencies. (, patch 1)
r=me
Attachment #641988 -
Flags: review?(bzbarsky) → review+
Comment 8•12 years ago
|
||
Comment on attachment 641989 [details] [diff] [review]
Add VARIANT_NONNEGATIVE_DIMENSION. (, patch 2)
r=me
Attachment #641989 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 9•12 years ago
|
||
Comment 10•12 years ago
|
||
Backed out because of test failure: https://hg.mozilla.org/integration/mozilla-inbound/rev/16b2a1339ec0
Sample failure log: https://tbpl.mozilla.org/php/getParsedLog.php?id=13509570&tree=Mozilla-Inbound&full=1
Assignee | ||
Comment 11•12 years ago
|
||
Assignee | ||
Comment 12•12 years ago
|
||
The difference from the last landing is:
https://hg.mozilla.org/integration/mozilla-inbound/diff/1e6065596ace/layout/style/test/test_transitions_computed_value_combinations.html
Comment 13•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/9d29e87c3b64
https://hg.mozilla.org/mozilla-central/rev/6f2ab38fd992
https://hg.mozilla.org/mozilla-central/rev/1e6065596ace
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 14•12 years ago
|
||
I've added a sentence in:
https://developer-new.mozilla.org/en-US/docs/CSS/transition-duration
https://developer-new.mozilla.org/en-US/docs/CSS/animation-duration
(Negative values are invalid)
and added the info in
https://developer-new.mozilla.org/en-US/docs/Firefox_16_for_developers
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•