commit | 2fd3378f869dd3f9b5564d1e9ae96a0691126356 | [log] [tgz] |
---|---|---|
author | fs <fs@opera.com> | Fri Jun 10 09:43:47 2016 |
committer | Commit bot <commit-bot@chromium.org> | Fri Jun 10 09:45:42 2016 |
tree | 198274dc27dd451f51c7b92cfaf2a5af571d64c6 | |
parent | 328468578fa1104659f135e0364f0a352dee6f1d [diff] |
Clamp filter functions {grayscale, invert, opacity, sepia} to 100% The spec says the following for these functions: "Values of amount over 100% are allowed but UAs must clamp the values to 1." So do that rather than failing. This matches the behavior of Gecko and Edge. This fixes http://test.csswg.org/suites/filters-1_dev/nightly-unstable/html/filter-grayscale-005.htm from the CSS WG Filter Effects testsuite (w/ the property unprefixed.) BUG=618607 Review-Url: https://codereview.chromium.org/2052883002 Cr-Commit-Position: refs/heads/master@{#399144}