Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reviewed by Tim Nguyen. From WPT revision 6c984bf. * LayoutTests/imported/w3c/web-platform-tests/css/css-color/color-mix-basic-001.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-color/color-mix-currentcolor-001-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-color/color-mix-currentcolor-001.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-color/color-mix-currentcolor-002-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-color/color-mix-currentcolor-002.html: Added. Canonical link: https://commits.webkit.org/254191@main
- Loading branch information
Showing
6 changed files
with
70 additions
and
1 deletion.
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
11 changes: 11 additions & 0 deletions
11
...ts/imported/w3c/web-platform-tests/css/css-color/color-mix-currentcolor-001-expected.html
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 @@ | ||
<!doctype html> | ||
<style> | ||
div { | ||
width: 100px; | ||
height: 100px; | ||
background-color: red; | ||
color: red; | ||
background-color: green; | ||
} | ||
</style> | ||
<div></div> |
23 changes: 23 additions & 0 deletions
23
LayoutTests/imported/w3c/web-platform-tests/css/css-color/color-mix-currentcolor-001.html
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,23 @@ | ||
<!doctype html> | ||
<meta charset=utf-8> | ||
<link rel="match" href="color-mix-currentcolor-001-ref.html"> | ||
<title>currentColor is inherited correctly in color-mix()</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-color-5/#color-mix"> | ||
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez"> | ||
<link rel="author" href="https://mozilla.org" title="Mozilla"> | ||
<style> | ||
div { | ||
width: 100px; | ||
height: 100px; | ||
background-color: red; | ||
color: red; | ||
background-color: color-mix(in srgb, currentColor 50%, green); | ||
} | ||
div div { | ||
color: green; | ||
background-color: inherit; | ||
} | ||
</style> | ||
<div> | ||
<div></div> | ||
</div> |
11 changes: 11 additions & 0 deletions
11
...ts/imported/w3c/web-platform-tests/css/css-color/color-mix-currentcolor-002-expected.html
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 @@ | ||
<!doctype html> | ||
<style> | ||
div { | ||
width: 100px; | ||
height: 100px; | ||
background-color: red; | ||
color: red; | ||
background-color: color-mix(in lch, green 50%, blue); | ||
} | ||
</style> | ||
<div></div> |
22 changes: 22 additions & 0 deletions
22
LayoutTests/imported/w3c/web-platform-tests/css/css-color/color-mix-currentcolor-002.html
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,22 @@ | ||
<!doctype html> | ||
<link rel="match" href="color-mix-currentcolor-002-ref.html"> | ||
<title>currentColor is mixed with the correct color-space in color-mix()</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-color-5/#color-mix"> | ||
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez"> | ||
<link rel="author" href="https://mozilla.org" title="Mozilla"> | ||
<style> | ||
div { | ||
width: 100px; | ||
height: 100px; | ||
background-color: red; | ||
color: red; | ||
background-color: color-mix(in lch, currentColor 50%, blue); | ||
} | ||
div div { | ||
color: green; | ||
background-color: inherit; | ||
} | ||
</style> | ||
<div> | ||
<div></div> | ||
</div> |