servo/components/style/values/specified
bors-servo cff9b427fc Auto merge of #18517 - BorisChiou:stylo/filter/clamp, r=emilio
style: Clamp some filter functions to one if the values over 100%

For grayscale, invert, opacity, and sepia, "values of amount over 100%
are allowed but UAs must clamp the values to 1" [1]-[4], so we clamp its value
in the parser.

[1] https://drafts.fxtf.org/filter-effects/#funcdef-filter-grayscale
[2] https://drafts.fxtf.org/filter-effects/#funcdef-filter-invert
[3] https://drafts.fxtf.org/filter-effects/#funcdef-filter-opacity
[4] https://drafts.fxtf.org/filter-effects/#funcdef-filter-sepia

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix [Bug 1399799](https://bugzilla.mozilla.org/show_bug.cgi?id=1399799).
- [X] There are tests for these changes

<!-- 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/18517)
<!-- Reviewable:end -->
2017-09-18 05:23:36 -05:00
..
align.rs Measure PropertyDeclaration more thoroughly. 2017-09-14 13:18:03 +10:00
angle.rs Measure PropertyDeclaration more thoroughly. 2017-09-14 13:18:03 +10:00
background.rs style: Be a bit more explicit about background-size. 2017-09-17 21:33:19 +02:00
basic_shape.rs Introduce ComputedUrl 2017-08-09 13:55:39 +02:00
border.rs style: Make border-spacing serialization consistent, and move it to precomputed_type. 2017-09-17 21:33:17 +02:00
box.rs Use generics for the vertical-align property 2017-08-30 23:01:12 +02:00
calc.rs Measure PropertyDeclaration more thoroughly. 2017-09-14 13:18:03 +10:00
color.rs style: Implement the body text color quirk in a more straight-forward way. 2017-09-16 02:44:56 +02:00
effects.rs Auto merge of #18517 - BorisChiou:stylo/filter/clamp, r=emilio 2017-09-18 05:23:36 -05: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 style: Properly use integers on grid properties, and derive ToComputedValue. 2017-09-11 11:29:27 +02:00
image.rs Measure PropertyDeclaration more thoroughly. 2017-09-14 13:18:03 +10:00
length.rs style: bonus point: only add the condition when computing reset properties. 2017-09-17 05:07:27 +02:00
mod.rs Auto merge of #18517 - BorisChiou:stylo/filter/clamp, r=emilio 2017-09-18 05:23:36 -05:00
percentage.rs Auto merge of #18517 - BorisChiou:stylo/filter/clamp, r=emilio 2017-09-18 05:23:36 -05:00
position.rs Measure PropertyDeclaration more thoroughly. 2017-09-14 13:18:03 +10:00
rect.rs Move specified and computed percentages to submodules 2017-08-14 02:47:43 +02:00
svg.rs style: Remove HasViewportPercentage. 2017-08-29 23:51:21 +02:00
text.rs Use CSSPixelLength in LengthOrPercentage{*}. 2017-09-13 18:10:46 +08:00
time.rs Measure PropertyDeclaration more thoroughly. 2017-09-14 13:18:03 +10:00
transform.rs Measure PropertyDeclaration more thoroughly. 2017-09-14 13:18:03 +10:00