mirror of
https://github.com/servo/servo.git
synced 2025-10-17 08:49:21 +01:00
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 --> |
||
---|---|---|
.. | ||
align.rs | ||
angle.rs | ||
background.rs | ||
basic_shape.rs | ||
border.rs | ||
box.rs | ||
calc.rs | ||
color.rs | ||
effects.rs | ||
flex.rs | ||
gecko.rs | ||
grid.rs | ||
image.rs | ||
length.rs | ||
mod.rs | ||
percentage.rs | ||
position.rs | ||
rect.rs | ||
svg.rs | ||
text.rs | ||
time.rs | ||
transform.rs |