-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://bugs.webkit.org/show_bug.cgi?id=258923 rdar://111844595 Reviewed by Tim Nguyen. WPT @ 159c9d1 * LayoutTests/TestExpectations: * LayoutTests/imported/w3c/resources/resource-files.json: * LayoutTests/imported/w3c/web-platform-tests/css/css-color/color-mix-currentcolor-nested-for-color-property-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-color/color-mix-currentcolor-nested-for-color-property-ref.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-color/color-mix-currentcolor-nested-for-color-property.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-color/lab-l-over-100-1.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-color/lab-l-over-100-2.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-color/lch-l-over-100-1.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-color/lch-l-over-100-2.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-color/oklab-009-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-color/oklab-009.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-color/oklch-011-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-color/oklch-011.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/color-computed-color-mix-function-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/color-computed-color-mix-function.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/color-computed-relative-color-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/color-mix-out-of-gamut-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/color-mix-out-of-gamut.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/color-valid-color-function-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/color-valid-color-function.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/color-valid-color-mix-function-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/color-valid-color-mix-function.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/color-valid-relative-color-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/gamut-mapping-expected.txt: Removed. * LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/gamut-mapping.html: Removed. * LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/w3c-import.log: * LayoutTests/imported/w3c/web-platform-tests/css/css-color/w3c-import.log: * LayoutTests/platform/gtk/TestExpectations: * LayoutTests/platform/ios-wk2/TestExpectations: Canonical link: https://commits.webkit.org/265814@main
- Loading branch information
Showing
29 changed files
with
617 additions
and
520 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
11 changes: 11 additions & 0 deletions
11
...atform-tests/css/css-color/color-mix-currentcolor-nested-for-color-property-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> | ||
<meta charset="utf-8"> | ||
<title>Reference: currentColor is inherited correctly with a nested color-mix() for the color attribute</title> | ||
<style> | ||
div { | ||
color: color(srgb 0.5 0.75 0.75); | ||
} | ||
</style> | ||
<div> | ||
<div>This text should be a light blue-green</div> | ||
</div> |
11 changes: 11 additions & 0 deletions
11
...eb-platform-tests/css/css-color/color-mix-currentcolor-nested-for-color-property-ref.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> | ||
<meta charset="utf-8"> | ||
<title>Reference: currentColor is inherited correctly with a nested color-mix() for the color attribute</title> | ||
<style> | ||
div { | ||
color: color(srgb 0.5 0.75 0.75); | ||
} | ||
</style> | ||
<div> | ||
<div>This text should be a light blue-green</div> | ||
</div> |
20 changes: 20 additions & 0 deletions
20
...3c/web-platform-tests/css/css-color/color-mix-currentcolor-nested-for-color-property.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,20 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<link rel="match" href="color-mix-currentcolor-nested-for-color-property-ref.html"> | ||
<title>currentColor is inherited correctly with a nested color-mix() for the color attribute</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-color-5/#color-mix"> | ||
<link rel="author" title="Aaron Krajeski" href="https://github.com/mysterydate"> | ||
<style> | ||
body { | ||
color: color(srgb 0 0 1); | ||
} | ||
div { | ||
color: color-mix(in srgb, color-mix(in srgb, currentColor 50%, color(srgb 0 1 0)), white); | ||
} | ||
div > div { | ||
color: inherit; | ||
} | ||
</style> | ||
<div> | ||
<div>This text should be a light blue-green</div> | ||
</div> |
2 changes: 1 addition & 1 deletion
2
LayoutTests/imported/w3c/web-platform-tests/css/css-color/lab-l-over-100-1.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
2 changes: 1 addition & 1 deletion
2
LayoutTests/imported/w3c/web-platform-tests/css/css-color/lab-l-over-100-2.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
2 changes: 1 addition & 1 deletion
2
LayoutTests/imported/w3c/web-platform-tests/css/css-color/lch-l-over-100-1.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
2 changes: 1 addition & 1 deletion
2
LayoutTests/imported/w3c/web-platform-tests/css/css-color/lch-l-over-100-2.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
10 changes: 10 additions & 0 deletions
10
LayoutTests/imported/w3c/web-platform-tests/css/css-color/oklab-009-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,10 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>Green square reference</title> | ||
<style> | ||
.test { background-color: #008000; width: 12em; height: 12em;} | ||
</style> | ||
<body> | ||
<p>Test passes if you see a green square, and no red.</p> | ||
<div class="test"></div> | ||
</body> |
16 changes: 16 additions & 0 deletions
16
LayoutTests/imported/w3c/web-platform-tests/css/css-color/oklab-009.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,16 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CSS Color 4: OKLab and OKLCH</title> | ||
<link rel="author" title="James Stuckey Weber" href="mailto:james@jamessw.com"> | ||
<link rel="help" href="https://drafts.csswg.org/css-color-4/#specifying-oklab-oklch"> | ||
<link rel="help" href="https://drafts.csswg.org/css-color-4/#predefined-to-lab-oklab"> | ||
<link rel="match" href="greensquare-ref.html"> | ||
<meta name="assert" content="oklab() specifying a and b with percentages"> | ||
<style> | ||
.test { background-color: red; width: 12em; height: 12em; } | ||
.test { background-color: oklab(51.975% -35.075% 26.92%); } /* green (sRGB #008000) converted to OKLab */ | ||
</style> | ||
<body> | ||
<p>Test passes if you see a green square, and no red.</p> | ||
<div class="test"></div> | ||
</body> |
10 changes: 10 additions & 0 deletions
10
LayoutTests/imported/w3c/web-platform-tests/css/css-color/oklch-011-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,10 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>Green square reference</title> | ||
<style> | ||
.test { background-color: #008000; width: 12em; height: 12em;} | ||
</style> | ||
<body> | ||
<p>Test passes if you see a green square, and no red.</p> | ||
<div class="test"></div> | ||
</body> |
16 changes: 16 additions & 0 deletions
16
LayoutTests/imported/w3c/web-platform-tests/css/css-color/oklch-011.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,16 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CSS Color 4: OKLab and OKLCH</title> | ||
<link rel="author" title="James Stuckey Weber" href="mailto:james@jamessw.com"> | ||
<link rel="help" href="https://drafts.csswg.org/css-color-4/#specifying-oklab-oklch"> | ||
<link rel="help" href="https://drafts.csswg.org/css-color-4/#predefined-to-lab-oklab"> | ||
<link rel="match" href="greensquare-ref.html"> | ||
<meta name="assert" content="oklch() specifying C with percentage"> | ||
<style> | ||
.test { background-color: red; width: 12em; height: 12em; } | ||
.test { background-color: oklch(51.975% 44.215% 142.495); } /* green (sRGB #008000) converted to OKLCH */ | ||
</style> | ||
<body> | ||
<p>Test passes if you see a green square, and no red.</p> | ||
<div class="test"></div> | ||
</body> |
Oops, something went wrong.