mirror of
https://github.com/servo/servo.git
synced 2025-10-17 16:59:27 +01:00
stylo: Bug 1374233 - Clamp interpolated values for properties which need to be restricted Some properties only accept non-negative values, or values greater than or equal to one. It is possible to produce an negative interpolated values while using negative timing functions, so we have to apply a restriction to these values to avoid getting invalid values. For example, line-height must be non-negative, but the output progress of some timing functions (e,g. cubic-bezier(0.25, -2, 0.75, 1)) may be a negative value, so the interpolated result of line-height is also negative. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix Bug 1374233. - [X] These changes do not require tests because we have tests in Gecko side already. <!-- 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/17783) <!-- Reviewable:end --> |
||
---|---|---|
.. | ||
align.rs | ||
background.rs | ||
basic_shape.rs | ||
border.rs | ||
calc.rs | ||
color.rs | ||
effects.rs | ||
flex.rs | ||
gecko.rs | ||
grid.rs | ||
image.rs | ||
length.rs | ||
mod.rs | ||
position.rs | ||
rect.rs | ||
svg.rs | ||
text.rs | ||
transform.rs |