forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1616106 - Add more tests and reference images for conic-gradient …
…wrench test suite. r=nical Differential Revision: https://phabricator.services.mozilla.com/D63213 --HG-- rename : gfx/wr/wrench/reftests/gradient/conic-start-angle.yaml => gfx/wr/wrench/reftests/gradient/conic-angle.yaml extra : moz-landing-system : lando
- Loading branch information
Showing
36 changed files
with
392 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
gfx/wr/wrench/reftests/gradient/conic-angle-wraparound-negative.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
root: | ||
items: | ||
- type: conic-gradient | ||
bounds: 50 50 300 300 | ||
center: 150 150 | ||
angle: -5.497787143782138 | ||
stops: [0.0, red, 1.0, yellow] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
root: | ||
items: | ||
- type: conic-gradient | ||
bounds: 50 50 300 300 | ||
center: 150 150 | ||
angle: 7.0685834705770345 | ||
stops: [0.0, red, 1.0, yellow] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
root: | ||
items: | ||
- type: conic-gradient | ||
bounds: 50 50 200 200 | ||
center: 50 50 | ||
angle: 0.0 | ||
stops: [0.0, red, 0.25, red, | ||
0.25, green, 0.5, green, | ||
0.5, blue, 0.75, blue, | ||
0.75, black, 1.0, black] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
root: | ||
items: | ||
- type: stacking-context | ||
bounds: 50 50 100 100 | ||
items: | ||
- type: rect | ||
bounds: 0 0 100 100 | ||
color: black | ||
- type: rect | ||
bounds: 100 0 100 100 | ||
color: red | ||
- type: rect | ||
bounds: 100 100 100 100 | ||
color: green | ||
- type: rect | ||
bounds: 0 100 100 100 | ||
color: blue |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
root: | ||
items: | ||
- type: conic-gradient | ||
bounds: 50 50 200 200 | ||
center: 100 100 | ||
angle: 0.0 | ||
stops: [0.0, red, 0.25, red, | ||
0.25, green, 0.5, green, | ||
0.5, blue, 0.75, blue, | ||
0.75, black, 1.0, black] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
root: | ||
items: | ||
- type: conic-gradient | ||
bounds: 50 50 200 200 | ||
angle: 0.0 | ||
center: 100 100 | ||
stops: [0.0, green, 0.5, green, | ||
0.5, blue, 1.0, blue] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
root: | ||
items: | ||
- type: conic-gradient | ||
bounds: 50 50 200 200 | ||
angle: 0.0 | ||
center: 100 100 | ||
stops: [0.25, green, 0.5, green, | ||
0.5, blue, 0.75, blue] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
root: | ||
items: | ||
- type: conic-gradient | ||
bounds: 50 50 200 200 | ||
angle: 0.0 | ||
center: 100 100 | ||
stops: [0.0, green, 0.5, green, | ||
0.5, blue, 1.0, blue] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
root: | ||
items: | ||
- type: conic-gradient | ||
bounds: 50 50 200 200 | ||
angle: 0.0 | ||
center: 100 100 | ||
stops: [0.5, green, | ||
0.5, blue] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
root: | ||
items: | ||
- type: conic-gradient | ||
bounds: 50 50 200 200 | ||
angle: 0.0 | ||
center: 100 100 | ||
stops: [0.0, blue, 1.0, blue] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
root: | ||
items: | ||
- type: conic-gradient | ||
bounds: 50 50 200 200 | ||
angle: 0.0 | ||
center: 100 100 | ||
stops: [-0.5, green, | ||
-0.5, blue] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
root: | ||
items: | ||
- type: conic-gradient | ||
bounds: 50 50 200 200 | ||
angle: 0.0 | ||
center: 100 100 | ||
stops: [0.0, green, 1.0, green] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
root: | ||
items: | ||
- type: conic-gradient | ||
bounds: 50 50 200 200 | ||
angle: 0.0 | ||
center: 100 100 | ||
stops: [1.5, green, | ||
1.5, blue] |
8 changes: 8 additions & 0 deletions
8
gfx/wr/wrench/reftests/gradient/norm-conic-degenerate-ref.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
root: | ||
items: | ||
- type: conic-gradient | ||
bounds: 50 50 300 300 | ||
angle: 0.0 | ||
center: 150 150 | ||
stops: [0.0, red, 1.0, red] |
14 changes: 14 additions & 0 deletions
14
gfx/wr/wrench/reftests/gradient/norm-conic-degenerate.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# see: https://www.w3.org/TR/2012/CR-css3-images-20120417/#repeating-gradients | ||
# the spec says that repeating gradients with color stops in the same offset | ||
# must render as a solid rect with color equal to the average color of the | ||
# gradient. Gecko and Blink seem to draw it with color equal to the last stop | ||
# so that is the behavior tested here | ||
--- | ||
root: | ||
items: | ||
- type: conic-gradient | ||
bounds: 50 50 300 300 | ||
angle: 0.0 | ||
center: 150 150 | ||
stops: [0.5, blue, 0.5, red] | ||
repeat: true |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
root: | ||
items: | ||
- type: conic-gradient | ||
bounds: 50 50 200 200 | ||
angle: 0.0 | ||
center: 100 100 | ||
stops: [0.0, [255.0, 0.0, 0.0, 0.5], 0.5, [0.0, 255.0, 0.0, 0.5], 1.0, [0.0, 0.0, 255.0, 0.5]] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
root: | ||
items: | ||
- type: conic-gradient | ||
bounds: 50 50 200 200 | ||
angle: 0.0 | ||
center: 100 100 | ||
stops: [0.0, red, 0.5, [0.0, 0.0, 0.0, 0.0], 1.0, green] |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
root: | ||
items: | ||
- type: conic-gradient | ||
bounds: 50 50 300 300 | ||
angle: -0.62831853 | ||
center: 150 150 | ||
stops: [0.1, red, 0.2, red, 0.2, blue, 0.3, blue] | ||
repeat: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
root: | ||
items: | ||
- type: conic-gradient | ||
bounds: 50 50 300 300 | ||
angle: 0.0 | ||
center: 150 150 | ||
stops: [0.0, red, | ||
0.1, red, | ||
0.1, blue, | ||
0.2, blue, | ||
0.2, red, | ||
0.3, red, | ||
0.3, blue, | ||
0.4, blue, | ||
0.4, red, | ||
0.5, red, | ||
0.5, blue, | ||
0.6, blue, | ||
0.6, red, | ||
0.7, red, | ||
0.7, blue, | ||
0.8, blue, | ||
0.8, red, | ||
0.9, red, | ||
0.9, blue, | ||
1.0, blue] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
root: | ||
items: | ||
- type: conic-gradient | ||
bounds: 50 50 300 300 | ||
angle: 0.0 | ||
center: 150 150 | ||
stops: [0.1, blue, 0.2, blue, 0.2, red, 0.3, red] | ||
repeat: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
root: | ||
items: | ||
# top left | ||
- type: conic-gradient | ||
bounds: 50 50 200 200 | ||
angle: 0.0 | ||
center: 100 100 | ||
stops: [0, red, 1, blue] | ||
# top right | ||
- type: conic-gradient | ||
bounds: 350 50 200 200 | ||
angle: 0.0 | ||
center: 100 100 | ||
stops: [0, red, 1, blue] | ||
# bottom left | ||
- type: conic-gradient | ||
bounds: 50 350 200 200 | ||
angle: 0.0 | ||
center: 100 100 | ||
stops: [0, red, 1, blue] | ||
# bottom right | ||
- type: conic-gradient | ||
bounds: 350 350 200 200 | ||
angle: 0.0 | ||
center: 100 100 | ||
stops: [0, red, 1, blue] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
root: | ||
items: | ||
# basic - 4 tiles spaced out with no clipping | ||
- type: conic-gradient | ||
bounds: 50 50 500 500 | ||
angle: 0.0 | ||
center: 100 100 | ||
stops: [0, red, 1, blue] | ||
tile-size: 200 200 | ||
tile-spacing: 100 100 |
Oops, something went wrong.