servo/components/style/values/specified
bors-servo 016ea11cba Auto merge of #17783 - BorisChiou:stylo/animation/restrictions, r=nox
stylo: Bug 1374233 - Clamp interpolated values for properties which need to be restricted

Some properties only accept non-negative values, or values greater than or equal to one. It is possible to produce an negative interpolated values while using negative timing functions, so we have to apply a restriction to these values to avoid getting invalid values.

For example, line-height must be non-negative, but the output progress of some timing functions (e,g. cubic-bezier(0.25, -2, 0.75, 1)) may be a negative value, so the interpolated result of line-height is also negative.

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix Bug 1374233.
- [X] These changes do not require tests because we have tests in Gecko side already.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17783)
<!-- Reviewable:end -->
2017-08-07 11:05:17 -05:00
..
align.rs style: Get rid of GetParentAllowServo in implementation of CSS 'justify-items' property. 2017-07-31 11:55:04 +02:00
background.rs Update cssparser to 0.18 2017-07-24 11:39:12 +02:00
basic_shape.rs Update cssparser to 0.18 2017-07-24 11:39:12 +02:00
border.rs Bug 1374233 - Part 2: Add NonNegativeAu. 2017-08-04 14:21:57 +08:00
calc.rs Update cssparser to 0.18 2017-07-24 11:39:12 +02:00
color.rs Report an error for invalid CSS color values (bug 1381143). 2017-07-31 16:49:53 -04:00
effects.rs Bug 1374233 - Part 13: Use NonNegative{*} types for components of Shadow and Filter. 2017-08-04 14:23:30 +08:00
flex.rs Rename LengthOrPercentageOrAutoOrContent to FlexBasis 2017-06-17 13:46:35 +02:00
gecko.rs Thread ParseError return values through CSS parsing. 2017-06-09 16:46:25 -04:00
grid.rs Update cssparser to 0.18 2017-07-24 11:39:12 +02:00
image.rs Remove doc comment on statement 2017-08-01 10:48:17 -07:00
length.rs Bug 1374233 - Part 13: Use NonNegative{*} types for components of Shadow and Filter. 2017-08-04 14:23:30 +08:00
mod.rs Auto merge of #17783 - BorisChiou:stylo/animation/restrictions, r=nox 2017-08-07 11:05:17 -05:00
position.rs style: Respect calc for percentages. 2017-07-14 13:43:27 +02:00
rect.rs Thread ParseError return values through CSS parsing. 2017-06-09 16:46:25 -04:00
svg.rs Bug 1374233 - Part 9: Add NonNegativeLengthOrPercentageOrNumber for stroke-{width|dasharry}. 2017-08-04 14:23:24 +08:00
text.rs Bug 1374233 - Part 12: Implement ToAnimatedValue for LineHeight. 2017-08-04 14:23:28 +08:00
transform.rs Replace IsFramesTimingEnabled FFI function with direct pref cache access. 2017-07-31 14:06:37 +10:00