aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/package_commands.py
diff options
context:
space:
mode:
authorBoris Chiou <boris.chiou@gmail.com>2017-09-15 11:38:44 +0800
committerBoris Chiou <boris.chiou@gmail.com>2017-09-18 12:52:55 +0800
commite719df53c0f89958641728737278b197419dc451 (patch)
tree46ac3d0c76873efb979963734c28506eb323b1b0 /python/servo/package_commands.py
parentcad3aff508fdf47036237ead519791f180e1ea3d (diff)
downloadservo-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