forked from Floorp-Projects/Floorp
-
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 1260543 - Treat currentcolor as computed value which is not inter…
…polatable with actual color for text-emphasis-color and -webkit-text-fill-color. r=birtles MozReview-Commit-ID: GUXEDHxOdNC
- Loading branch information
Showing
8 changed files
with
143 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<style> | ||
#outer { | ||
font-size: 52px; | ||
color: green; | ||
} | ||
</style> | ||
<p>Test passes if the block below is green.</p> | ||
<div id="outer"><span id="inner">█</span></div> |
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,35 @@ | ||
<!DOCTYPE html> | ||
<html class="reftest-wait"> | ||
<style> | ||
#outer { | ||
font-size: 52px; | ||
transition: all 100s step-start; | ||
color: transparent; | ||
} | ||
#outer.red { | ||
color: red; | ||
} | ||
#outer.red > #inner { | ||
color: green; | ||
} | ||
</style> | ||
<!-- | ||
This is testing that -webkit-text-fill-color should inherit currentcolor | ||
keyword value, rather than the computed value of color (used value of | ||
-webkit-text-fill-color) from the transition. | ||
--> | ||
<p>Test passes if the block below is green.</p> | ||
<div id="outer"><span id="inner">█</span></div> | ||
<script> | ||
window.addEventListener("load", () => { | ||
// Wait for the second frame to ensure that we will | ||
// actually start the transition. | ||
requestAnimationFrame(() => { | ||
requestAnimationFrame(() => { | ||
let outer = document.getElementById("outer"); | ||
outer.className = "red"; | ||
document.documentElement.className = ""; | ||
}); | ||
}); | ||
}); | ||
</script> |
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
Oops, something went wrong.