Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add css image-set gradient images parsing tests
Current parsing tests cover only <linear-gradient()> and <radial-gradient()>. Based on the image-set spec, all gradient image values are supported, and they should also be tested. This change adds image-set gradient images parsing tests for * <repeating-linear-gradient()> * <repeating-radial-gradient()> * <conic-gradient()> * <repeating-conic-gradient()> Spec definitions: [1] "The syntax for image-set() is: <image-set()> = image-set( <image-set-option># ) <image-set-option> = [ <image> | <string> ] [ <resolution> || type(<string>) ]" [2] "<image> = <url> | <image()> | <image-set()> | <cross-fade()> | <element()> | <gradient>" [3] "<gradient> = [ <linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()> | <repeating-conic-gradient()> ]" [1] https://w3c.github.io/csswg-drafts/css-images-4/#image-set-notation [2] https://w3c.github.io/csswg-drafts/css-images-4/#image-values [3] https://w3c.github.io/csswg-drafts/css-images-4/#typedef-gradient R=pdr Bug: 1400902 Change-Id: Ie1460a5c93c1184ae9d5537e0e24ee2b47d68135 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4247618 Commit-Queue: Traian Captan <[email protected]> Reviewed-by: Philip Rogers <[email protected]> Cr-Commit-Position: refs/heads/main@{#1104785}
- Loading branch information