layout: Enable rendering of conical-gradient and repeating-conical-gradient (#31597)

This also ignores a clippy warning for a new function (and a similar
existing one), until this code can be refactored to use temporary Rust
strutures to carry display list building state.

There are a few new test failures here:

 - FAIL [expected PASS] /css/css-images/image-set/image-set-conic-gradient-rendering.html
 - FAIL [expected PASS] /css/css-images/image-set/image-set-repeating-conic-gradient-rendering.html

 These fail because Servo does not yet support `image-set()`.

 - FAIL [expected PASS] /css/filter-effects/filter-function/filter-function-conic-gradient.html
 - FAIL [expected PASS] /css/filter-effects/filter-function/filter-function-repeating-conic-gradient.html

 These fail because Servo does not support the very early filter effects
 specification.

 - FAIL [expected PASS] /html/canvas/element/manual/fill-and-stroke-styles/conic-gradient-rotation.html
 - FAIL [expected PASS] /html/canvas/element/manual/fill-and-stroke-styles/conic-gradient.html

 These fail because this change only adds support for CSS conical
 gradients. Another set of changes will be necessary to support this for
 Canvas.
This commit is contained in:
Martin Robinson 2024-03-11 13:58:44 +01:00 committed by GitHub
parent de7b9bed85
commit 1d1f239ecc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
32 changed files with 161 additions and 405 deletions

View file

@ -1,48 +0,0 @@
[background-image-computed.sub.html]
[Property background-image value 'conic-gradient(at center, red, blue)']
expected: FAIL
[Property background-image value 'conic-gradient(from 45deg at 10px 10px, red, blue)']
expected: FAIL
[Property background-image value 'conic-gradient(from 0deg, red, blue)']
expected: FAIL
[Property background-image value 'conic-gradient(at 10px 10px, rgb(255, 0, 0), rgb(0, 0, 255))']
expected: FAIL
[Property background-image value 'conic-gradient(from 45deg at 50%, red, blue)']
expected: FAIL
[Property background-image value 'conic-gradient(from 45deg at center, red, blue)']
expected: FAIL
[Property background-image value 'conic-gradient(from 0deg at 50%, red, blue)']
expected: FAIL
[Property background-image value 'conic-gradient(from 0deg at center, red, blue)']
expected: FAIL
[Property background-image value 'conic-gradient(from 45deg, rgb(255, 0, 0), rgb(0, 0, 255))']
expected: FAIL
[Property background-image value 'conic-gradient(from 0deg at 10px 10px, red, blue)']
expected: FAIL
[Property background-image value 'conic-gradient(rgb(255, 0, 0), rgb(0, 0, 255))']
expected: FAIL
[Property background-image value 'conic-gradient(at 50%, red, blue)']
expected: FAIL
[Property background-image value 'conic-gradient(from -45deg, rgb(255, 0, 0), rgb(0, 0, 255))']
expected: FAIL
[Property background-image value 'conic-gradient(from -45deg at center, red, blue)']
expected: FAIL
[Property background-image value 'conic-gradient(from -45deg at 50%, red, blue)']
expected: FAIL
[Property background-image value 'conic-gradient(from -45deg at 10px 10px, red, blue)']
expected: FAIL

View file

@ -1,4 +0,0 @@
[border-image-source-computed.sub.html]
[Property border-image-source value 'conic-gradient(from 90deg at 80% 90%, lime, black)']
expected: FAIL