-
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.
Apply patch. rdar://problem/104872702
Identifier: 259548.722@safari-7615-branch
- Loading branch information
Showing
18 changed files
with
228 additions
and
18 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...web-platform-tests/css/css-backgrounds/color-mix-currentcolor-border-repaint-expected.xht
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,19 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title>CSS Reftest Reference</title> | ||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> | ||
<style type="text/css"><![CDATA[ | ||
div | ||
{ | ||
background-color: green; | ||
height: 100px; | ||
width: 100px; | ||
} | ||
]]></style> | ||
</head> | ||
<body> | ||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> | ||
<div></div> | ||
</body> | ||
</html> |
19 changes: 19 additions & 0 deletions
19
...tform-tests/css/css-backgrounds/color-mix-currentcolor-border-repaint-parent-expected.xht
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,19 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title>CSS Reftest Reference</title> | ||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> | ||
<style type="text/css"><![CDATA[ | ||
div | ||
{ | ||
background-color: green; | ||
height: 100px; | ||
width: 100px; | ||
} | ||
]]></style> | ||
</head> | ||
<body> | ||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> | ||
<div></div> | ||
</body> | ||
</html> |
38 changes: 38 additions & 0 deletions
38
.../web-platform-tests/css/css-backgrounds/color-mix-currentcolor-border-repaint-parent.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,38 @@ | ||
<!DOCTYPE html> | ||
<html class="reftest-wait"> | ||
<title>currentColor in color-mix() used in border repaints properly when parent color changes</title> | ||
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m"> | ||
<link rel="help" href="https://drafts.csswg.org/css-color/#currentcolor-color"> | ||
<link rel="match" href="../reference/ref-filled-green-100px-square.xht"> | ||
<style> | ||
#container { | ||
color: red; | ||
} | ||
|
||
#container.green { | ||
color: green; | ||
} | ||
|
||
#target { | ||
border: 50px solid color-mix(in hsl, transparent 0%, currentColor 100%); | ||
width: 0; | ||
} | ||
</style> | ||
|
||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> | ||
|
||
<div id="container"> | ||
<div id="target"></div> | ||
</div> | ||
|
||
<script> | ||
addEventListener("load", () => { | ||
setTimeout(() => { | ||
requestAnimationFrame(() => { | ||
container.classList.add("green"); | ||
document.documentElement.classList.remove("reftest-wait"); | ||
}); | ||
}, 0); | ||
}); | ||
</script> | ||
</html> |
33 changes: 33 additions & 0 deletions
33
...ted/w3c/web-platform-tests/css/css-backgrounds/color-mix-currentcolor-border-repaint.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,33 @@ | ||
<!DOCTYPE html> | ||
<html class="reftest-wait"> | ||
<title>currentColor in color-mix() used in border repaints properly when color changes</title> | ||
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m"> | ||
<link rel="help" href="https://drafts.csswg.org/css-color/#currentcolor-color"> | ||
<link rel="match" href="../reference/ref-filled-green-100px-square.xht"> | ||
<style> | ||
#target { | ||
color: red; | ||
border: 50px solid color-mix(in hsl, transparent 0%, currentColor 100%); | ||
width: 0; | ||
} | ||
|
||
#target.green { | ||
color: green; | ||
} | ||
</style> | ||
|
||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> | ||
|
||
<div id="target"></div> | ||
|
||
<script> | ||
addEventListener("load", () => { | ||
setTimeout(() => { | ||
requestAnimationFrame(() => { | ||
target.classList.add("green"); | ||
document.documentElement.classList.remove("reftest-wait"); | ||
}); | ||
}, 0); | ||
}); | ||
</script> | ||
</html> |
19 changes: 19 additions & 0 deletions
19
...3c/web-platform-tests/css/css-backgrounds/currentcolor-border-repaint-parent-expected.xht
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,19 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title>CSS Reftest Reference</title> | ||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> | ||
<style type="text/css"><![CDATA[ | ||
div | ||
{ | ||
background-color: green; | ||
height: 100px; | ||
width: 100px; | ||
} | ||
]]></style> | ||
</head> | ||
<body> | ||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> | ||
<div></div> | ||
</body> | ||
</html> |
38 changes: 38 additions & 0 deletions
38
...ported/w3c/web-platform-tests/css/css-backgrounds/currentcolor-border-repaint-parent.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,38 @@ | ||
<!DOCTYPE html> | ||
<html class="reftest-wait"> | ||
<title>currentColor used in border repaints properly when parent color changes</title> | ||
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m"> | ||
<link rel="help" href="https://drafts.csswg.org/css-color/#currentcolor-color"> | ||
<link rel="match" href="../reference/ref-filled-green-100px-square.xht"> | ||
<style> | ||
#container { | ||
color: red; | ||
} | ||
|
||
#container.green { | ||
color: green; | ||
} | ||
|
||
#target { | ||
border: 50px solid currentColor; | ||
width: 0; | ||
} | ||
</style> | ||
|
||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> | ||
|
||
<div id="container"> | ||
<div id="target"></div> | ||
</div> | ||
|
||
<script> | ||
addEventListener("load", () => { | ||
setTimeout(() => { | ||
requestAnimationFrame(() => { | ||
container.classList.add("green"); | ||
document.documentElement.classList.remove("reftest-wait"); | ||
}); | ||
}, 0); | ||
}); | ||
</script> | ||
</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
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
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
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
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
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
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