forked from servo/webrender
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1757201 - Fix mix-blend mode on parent surfaces with snapping ena…
…bled r=gfx-reviewers,lsalzman Differential Revision: https://phabricator.services.mozilla.com/D139904 [ghsync] From https://hg.mozilla.org/mozilla-central/rev/7aaefe97188d8b0f65da8e52980de830761a8153
- Loading branch information
Glenn Watson
committed
Mar 2, 2022
1 parent
4fe3556
commit 216acba
Showing
4 changed files
with
142 additions
and
9 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
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,50 @@ | ||
--- | ||
root: | ||
items: | ||
- type: stacking-context | ||
bounds: [100, 100, 0, 0] | ||
blend-container: true | ||
items: | ||
- type: "shadow" | ||
blur-radius: 0 | ||
offset: [-10, -4] | ||
color: [255, 255, 0, 1] | ||
- text: "Fault" | ||
origin: 200 300 | ||
size: 200 | ||
color: [0, 0, 0, 0] | ||
font: "VeraBd.ttf" | ||
- | ||
type: "pop-all-shadows" | ||
|
||
- type: stacking-context | ||
blend-container: true | ||
mix-blend-mode: darken | ||
items: | ||
- type: "shadow" | ||
blur-radius: 0 | ||
offset: [6, -8] | ||
color: [0, 255, 255, 1] | ||
- text: "Fault" | ||
origin: 200 300 | ||
size: 200 | ||
color: [0, 0, 0, 0] | ||
font: "VeraBd.ttf" | ||
- | ||
type: "pop-all-shadows" | ||
|
||
- type: stacking-context | ||
blend-container: true | ||
mix-blend-mode: darken | ||
items: | ||
- type: "shadow" | ||
blur-radius: 0 | ||
offset: [10, 4] | ||
color: [255, 0, 255, 1] | ||
- text: "Fault" | ||
origin: 200 300 | ||
size: 200 | ||
color: [0, 0, 0, 0] | ||
font: "VeraBd.ttf" | ||
- | ||
type: "pop-all-shadows" |
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,53 @@ | ||
# Verify that surfaces with differing surface/raster spatial nodes correctly sample from | ||
# parent mix-blend container surfaces | ||
--- | ||
root: | ||
items: | ||
- type: stacking-context | ||
bounds: [100, 100, 0, 0] | ||
transform: scale(2) | ||
blend-container: true | ||
items: | ||
- type: "shadow" | ||
blur-radius: 0 | ||
offset: [-5, -2] | ||
color: [255, 255, 0, 1] | ||
- text: "Fault" | ||
origin: 100 150 | ||
size: 100 | ||
color: [0, 0, 0, 0] | ||
font: "VeraBd.ttf" | ||
- | ||
type: "pop-all-shadows" | ||
|
||
- type: stacking-context | ||
blend-container: true | ||
mix-blend-mode: darken | ||
items: | ||
- type: "shadow" | ||
blur-radius: 0 | ||
offset: [3, -4] | ||
color: [0, 255, 255, 1] | ||
- text: "Fault" | ||
origin: 100 150 | ||
size: 100 | ||
color: [0, 0, 0, 0] | ||
font: "VeraBd.ttf" | ||
- | ||
type: "pop-all-shadows" | ||
|
||
- type: stacking-context | ||
blend-container: true | ||
mix-blend-mode: darken | ||
items: | ||
- type: "shadow" | ||
blur-radius: 0 | ||
offset: [5, 2] | ||
color: [255, 0, 255, 1] | ||
- text: "Fault" | ||
origin: 100 150 | ||
size: 100 | ||
color: [0, 0, 0, 0] | ||
font: "VeraBd.ttf" | ||
- | ||
type: "pop-all-shadows" |
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