Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve convert_gradient_stops function.
Implement Specification from CSS Images 3. Improvements: 1. Stops with positions less than preceding stops are moved. A common pattern is blue `70%, white 0` for sharp transitions. 2. Stop runs are correct if first stop has a position. The list `black 0%, red, gold` now renders the same as `black, red, gold`. Other runs may also be corrected. 3. Absolute length are no longer capped to 100%.
- Loading branch information
Showing
1 changed file
with
57 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters