diff options
author | Boris Chiou <boris.chiou@gmail.com> | 2017-09-15 11:38:44 +0800 |
---|---|---|
committer | Boris Chiou <boris.chiou@gmail.com> | 2017-09-18 12:52:55 +0800 |
commit | e719df53c0f89958641728737278b197419dc451 (patch) | |
tree | 46ac3d0c76873efb979963734c28506eb323b1b0 /python/servo/package_commands.py | |
parent | cad3aff508fdf47036237ead519791f180e1ea3d (diff) | |
download | servo-e719df53c0f89958641728737278b197419dc451.tar.gz servo-e719df53c0f89958641728737278b197419dc451.zip |
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
Diffstat (limited to 'python/servo/package_commands.py')
0 files changed, 0 insertions, 0 deletions