diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-09-18 05:23:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-18 05:23:36 -0500 |
commit | cff9b427fca1ab878fd23929cf7835666aab6d84 (patch) | |
tree | 9698440fd12e65e2c5cb07ef06225bd8a05962b6 /python/servo/package_commands.py | |
parent | 1da581f49b039d5eda5fa618fc41905d444c4885 (diff) | |
parent | e719df53c0f89958641728737278b197419dc451 (diff) | |
download | servo-cff9b427fca1ab878fd23929cf7835666aab6d84.tar.gz servo-cff9b427fca1ab878fd23929cf7835666aab6d84.zip |
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 -->
Diffstat (limited to 'python/servo/package_commands.py')
0 files changed, 0 insertions, 0 deletions