-
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=261245 rdar://115083949 Reviewed by Tim Nguyen. Upstream commit: web-platform-tests/wpt@f97b1df * LayoutTests/TestExpectations: * LayoutTests/imported/w3c/resources/resource-files.json: * LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/animation/color-scheme-no-interpolation-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/animation/color-scheme-no-interpolation.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/animation/forced-color-adjust-no-interpolation-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/animation/forced-color-adjust-no-interpolation.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/animation/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/support/w3c-import.log. * LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-background-mismatch-opaque-cross-origin.sub.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-background-mismatch-used-preferred-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-background-mismatch-used-preferred-ref.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-background-mismatch-used-preferred.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-preferred-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-preferred-ref.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-preferred.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/support/prefers-color-scheme-blue-purple.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/support/w3c-import.log: * LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/w3c-import.log: Canonical link: https://commits.webkit.org/267717@main
- Loading branch information
Showing
17 changed files
with
181 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
30 changes: 30 additions & 0 deletions
30
...-platform-tests/css/css-color-adjust/animation/color-scheme-no-interpolation-expected.txt
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,30 @@ | ||
|
||
PASS CSS Transitions: property <color-scheme> from [initial] to [dark] at (-0.3) should be [dark] | ||
PASS CSS Transitions: property <color-scheme> from [initial] to [dark] at (0) should be [dark] | ||
PASS CSS Transitions: property <color-scheme> from [initial] to [dark] at (0.3) should be [dark] | ||
PASS CSS Transitions: property <color-scheme> from [initial] to [dark] at (0.5) should be [dark] | ||
PASS CSS Transitions: property <color-scheme> from [initial] to [dark] at (0.6) should be [dark] | ||
PASS CSS Transitions: property <color-scheme> from [initial] to [dark] at (1) should be [dark] | ||
PASS CSS Transitions: property <color-scheme> from [initial] to [dark] at (1.5) should be [dark] | ||
PASS CSS Transitions with transition: all: property <color-scheme> from [initial] to [dark] at (-0.3) should be [dark] | ||
PASS CSS Transitions with transition: all: property <color-scheme> from [initial] to [dark] at (0) should be [dark] | ||
PASS CSS Transitions with transition: all: property <color-scheme> from [initial] to [dark] at (0.3) should be [dark] | ||
PASS CSS Transitions with transition: all: property <color-scheme> from [initial] to [dark] at (0.5) should be [dark] | ||
PASS CSS Transitions with transition: all: property <color-scheme> from [initial] to [dark] at (0.6) should be [dark] | ||
PASS CSS Transitions with transition: all: property <color-scheme> from [initial] to [dark] at (1) should be [dark] | ||
PASS CSS Transitions with transition: all: property <color-scheme> from [initial] to [dark] at (1.5) should be [dark] | ||
PASS CSS Animations: property <color-scheme> from [initial] to [dark] at (-0.3) should be [initial] | ||
PASS CSS Animations: property <color-scheme> from [initial] to [dark] at (0) should be [initial] | ||
PASS CSS Animations: property <color-scheme> from [initial] to [dark] at (0.3) should be [initial] | ||
FAIL CSS Animations: property <color-scheme> from [initial] to [dark] at (0.5) should be [dark] assert_equals: expected "dark " but got "normal " | ||
FAIL CSS Animations: property <color-scheme> from [initial] to [dark] at (0.6) should be [dark] assert_equals: expected "dark " but got "normal " | ||
FAIL CSS Animations: property <color-scheme> from [initial] to [dark] at (1) should be [dark] assert_equals: expected "dark " but got "normal " | ||
FAIL CSS Animations: property <color-scheme> from [initial] to [dark] at (1.5) should be [dark] assert_equals: expected "dark " but got "normal " | ||
PASS Web Animations: property <color-scheme> from [initial] to [dark] at (-0.3) should be [initial] | ||
PASS Web Animations: property <color-scheme> from [initial] to [dark] at (0) should be [initial] | ||
PASS Web Animations: property <color-scheme> from [initial] to [dark] at (0.3) should be [initial] | ||
FAIL Web Animations: property <color-scheme> from [initial] to [dark] at (0.5) should be [dark] assert_equals: expected "dark " but got "normal " | ||
FAIL Web Animations: property <color-scheme> from [initial] to [dark] at (0.6) should be [dark] assert_equals: expected "dark " but got "normal " | ||
FAIL Web Animations: property <color-scheme> from [initial] to [dark] at (1) should be [dark] assert_equals: expected "dark " but got "normal " | ||
FAIL Web Animations: property <color-scheme> from [initial] to [dark] at (1.5) should be [dark] assert_equals: expected "dark " but got "normal " | ||
|
16 changes: 16 additions & 0 deletions
16
.../w3c/web-platform-tests/css/css-color-adjust/animation/color-scheme-no-interpolation.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> | ||
<link rel=author href="mailto:jarhar@chromium.org"> | ||
<link rel=help href="https://github.com/w3c/csswg-drafts/issues/4441"> | ||
<link rel=help href="https://drafts.csswg.org/css-color-adjust/#color-scheme-prop"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/css/support/interpolation-testcommon.js"></script> | ||
|
||
<body> | ||
<script> | ||
test_no_interpolation({ | ||
property: 'color-scheme', | ||
from: 'initial', | ||
to: 'dark' | ||
}); | ||
</script> |
30 changes: 30 additions & 0 deletions
30
...rm-tests/css/css-color-adjust/animation/forced-color-adjust-no-interpolation-expected.txt
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,30 @@ | ||
|
||
FAIL CSS Transitions: property <forced-color-adjust> from [initial] to [none] at (-0.3) should be [none] assert_true: 'from' value should be supported expected true got false | ||
FAIL CSS Transitions: property <forced-color-adjust> from [initial] to [none] at (0) should be [none] assert_true: 'from' value should be supported expected true got false | ||
FAIL CSS Transitions: property <forced-color-adjust> from [initial] to [none] at (0.3) should be [none] assert_true: 'from' value should be supported expected true got false | ||
FAIL CSS Transitions: property <forced-color-adjust> from [initial] to [none] at (0.5) should be [none] assert_true: 'from' value should be supported expected true got false | ||
FAIL CSS Transitions: property <forced-color-adjust> from [initial] to [none] at (0.6) should be [none] assert_true: 'from' value should be supported expected true got false | ||
FAIL CSS Transitions: property <forced-color-adjust> from [initial] to [none] at (1) should be [none] assert_true: 'from' value should be supported expected true got false | ||
FAIL CSS Transitions: property <forced-color-adjust> from [initial] to [none] at (1.5) should be [none] assert_true: 'from' value should be supported expected true got false | ||
FAIL CSS Transitions with transition: all: property <forced-color-adjust> from [initial] to [none] at (-0.3) should be [none] assert_true: 'from' value should be supported expected true got false | ||
FAIL CSS Transitions with transition: all: property <forced-color-adjust> from [initial] to [none] at (0) should be [none] assert_true: 'from' value should be supported expected true got false | ||
FAIL CSS Transitions with transition: all: property <forced-color-adjust> from [initial] to [none] at (0.3) should be [none] assert_true: 'from' value should be supported expected true got false | ||
FAIL CSS Transitions with transition: all: property <forced-color-adjust> from [initial] to [none] at (0.5) should be [none] assert_true: 'from' value should be supported expected true got false | ||
FAIL CSS Transitions with transition: all: property <forced-color-adjust> from [initial] to [none] at (0.6) should be [none] assert_true: 'from' value should be supported expected true got false | ||
FAIL CSS Transitions with transition: all: property <forced-color-adjust> from [initial] to [none] at (1) should be [none] assert_true: 'from' value should be supported expected true got false | ||
FAIL CSS Transitions with transition: all: property <forced-color-adjust> from [initial] to [none] at (1.5) should be [none] assert_true: 'from' value should be supported expected true got false | ||
FAIL CSS Animations: property <forced-color-adjust> from [initial] to [none] at (-0.3) should be [initial] assert_true: 'from' value should be supported expected true got false | ||
FAIL CSS Animations: property <forced-color-adjust> from [initial] to [none] at (0) should be [initial] assert_true: 'from' value should be supported expected true got false | ||
FAIL CSS Animations: property <forced-color-adjust> from [initial] to [none] at (0.3) should be [initial] assert_true: 'from' value should be supported expected true got false | ||
FAIL CSS Animations: property <forced-color-adjust> from [initial] to [none] at (0.5) should be [none] assert_true: 'from' value should be supported expected true got false | ||
FAIL CSS Animations: property <forced-color-adjust> from [initial] to [none] at (0.6) should be [none] assert_true: 'from' value should be supported expected true got false | ||
FAIL CSS Animations: property <forced-color-adjust> from [initial] to [none] at (1) should be [none] assert_true: 'from' value should be supported expected true got false | ||
FAIL CSS Animations: property <forced-color-adjust> from [initial] to [none] at (1.5) should be [none] assert_true: 'from' value should be supported expected true got false | ||
FAIL Web Animations: property <forced-color-adjust> from [initial] to [none] at (-0.3) should be [initial] assert_true: 'from' value should be supported expected true got false | ||
FAIL Web Animations: property <forced-color-adjust> from [initial] to [none] at (0) should be [initial] assert_true: 'from' value should be supported expected true got false | ||
FAIL Web Animations: property <forced-color-adjust> from [initial] to [none] at (0.3) should be [initial] assert_true: 'from' value should be supported expected true got false | ||
FAIL Web Animations: property <forced-color-adjust> from [initial] to [none] at (0.5) should be [none] assert_true: 'from' value should be supported expected true got false | ||
FAIL Web Animations: property <forced-color-adjust> from [initial] to [none] at (0.6) should be [none] assert_true: 'from' value should be supported expected true got false | ||
FAIL Web Animations: property <forced-color-adjust> from [initial] to [none] at (1) should be [none] assert_true: 'from' value should be supported expected true got false | ||
FAIL Web Animations: property <forced-color-adjust> from [initial] to [none] at (1.5) should be [none] assert_true: 'from' value should be supported expected true got false | ||
|
17 changes: 17 additions & 0 deletions
17
...b-platform-tests/css/css-color-adjust/animation/forced-color-adjust-no-interpolation.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,17 @@ | ||
<!DOCTYPE html> | ||
<link rel=author href="mailto:jarhar@chromium.org"> | ||
<link rel=help href="https://github.com/w3c/csswg-drafts/issues/4441"> | ||
<link rel=help href="https://drafts.csswg.org/css-color-adjust/#forced-color-adjust-prop"> | ||
<link rel=help href="https://drafts.csswg.org/css-transitions-2/#transition-property-property"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/css/support/interpolation-testcommon.js"></script> | ||
|
||
<body> | ||
<script> | ||
test_no_interpolation({ | ||
property: 'forced-color-adjust', | ||
from: 'initial', | ||
to: 'none' | ||
}); | ||
</script> |
18 changes: 18 additions & 0 deletions
18
LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/animation/w3c-import.log
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 @@ | ||
The tests in this directory were imported from the W3C repository. | ||
Do NOT modify these tests directly in WebKit. | ||
Instead, create a pull request on the WPT github: | ||
https://github.com/web-platform-tests/wpt | ||
|
||
Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport | ||
|
||
Do NOT modify or remove this file. | ||
|
||
------------------------------------------------------------------------ | ||
Properties requiring vendor prefixes: | ||
None | ||
Property values requiring vendor prefixes: | ||
None | ||
------------------------------------------------------------------------ | ||
List of files: | ||
/LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/animation/color-scheme-no-interpolation.html | ||
/LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/animation/forced-color-adjust-no-interpolation.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
3 changes: 3 additions & 0 deletions
3
...ng/dark-color-scheme/color-scheme-iframe-background-mismatch-used-preferred-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,3 @@ | ||
<!doctype html> | ||
<title>CSS Test Reference</title> | ||
<div style="background-color: green; height: 150px; width: 300px"></div> |
3 changes: 3 additions & 0 deletions
3
...ndering/dark-color-scheme/color-scheme-iframe-background-mismatch-used-preferred-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,3 @@ | ||
<!doctype html> | ||
<title>CSS Test Reference</title> | ||
<div style="background-color: green; height: 150px; width: 300px"></div> |
9 changes: 9 additions & 0 deletions
9
...t/rendering/dark-color-scheme/color-scheme-iframe-background-mismatch-used-preferred.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,9 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<title>Used (not preferred) color-scheme is used for iframe backplate decisions</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-color-adjust/#color-scheme-effect"> | ||
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1787127"> | ||
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io"> | ||
<link rel="author" title="Mozilla" href="https://mozilla.org"> | ||
<link rel="match" href="color-scheme-iframe-background-mismatch-used-preferred-ref.html"> | ||
<iframe frameborder=0 scrolling=no style="color-scheme: dark" srcdoc="<style>:root { background-color: green }</style><iframe frameborder=0 srcdoc="<font color=green>This text should <em>not</em> be visible</font>"></iframe>"> |
10 changes: 10 additions & 0 deletions
10
.../css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-preferred-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> | ||
<title>CSS Test Reference</title> | ||
<style> | ||
div { | ||
width: 100px; | ||
height: 100px; | ||
} | ||
</style> | ||
<div style="background-color: purple"></div> | ||
<div style="background-color: blue"></div> |
10 changes: 10 additions & 0 deletions
10
...s/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-preferred-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,10 @@ | ||
<!doctype html> | ||
<title>CSS Test Reference</title> | ||
<style> | ||
div { | ||
width: 100px; | ||
height: 100px; | ||
} | ||
</style> | ||
<div style="background-color: purple"></div> | ||
<div style="background-color: blue"></div> |
15 changes: 15 additions & 0 deletions
15
...tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-preferred.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,15 @@ | ||
<!doctype html> | ||
<title>prefers-color-scheme propagation</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-color-adjust/#color-scheme-effect"> | ||
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/4772"> | ||
<link rel="match" href="color-scheme-iframe-preferred-ref.html"> | ||
<style> | ||
iframe { | ||
display: block; | ||
border: none; | ||
width: 100px; | ||
height: 100px; | ||
} | ||
</style> | ||
<iframe style="color-scheme: dark" src="support/prefers-color-scheme-blue-purple.html"></iframe> | ||
<iframe style="color-scheme: light" src="support/prefers-color-scheme-blue-purple.html"></iframe> |
7 changes: 7 additions & 0 deletions
7
...ss-color-adjust/rendering/dark-color-scheme/support/prefers-color-scheme-blue-purple.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,7 @@ | ||
<!doctype html> | ||
<style> | ||
:root { background-color: blue } | ||
@media (prefers-color-scheme: dark) { | ||
:root { background-color: purple } | ||
} | ||
</style> |
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