-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1866738 - Make initial about:blank docs always transparent, even …
…in content docshells. r=jwatt This implements the proposed fix to w3c/csswg-drafts#9624, and adds a tentative test for it. Differential Revision: https://phabricator.services.mozilla.com/D194751
- Loading branch information
Showing
5 changed files
with
59 additions
and
7 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
5 changes: 5 additions & 0 deletions
5
...or-adjust/rendering/dark-color-scheme/color-scheme-iframe-background-about-blank-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,5 @@ | ||
<!doctype html> | ||
<title>CSS Test Reference</title> | ||
<style>:root { color-scheme: dark }</style> | ||
<p>Should not see a white frame below</p> | ||
<iframe width="600" height="400" src="support/dark-frame-blank.html"></iframe> |
13 changes: 13 additions & 0 deletions
13
...ust/rendering/dark-color-scheme/color-scheme-iframe-background-about-blank.tentative.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,13 @@ | ||
<!doctype html> | ||
<title>CSS Color Adjustment Test: about:blank doesn't cause a white backdrop in dark mode even though technically its color-scheme is mismatched</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/9624"> | ||
<link rel="match" href="color-scheme-iframe-background-ref.html"> | ||
<style> | ||
:root { color-scheme: dark } | ||
</style> | ||
<p>Should not see a white frame below</p> | ||
<iframe width="600" height="400"></iframe> | ||
<script> | ||
document.querySelector("iframe").contentWindow.stop(); | ||
</script> |
4 changes: 4 additions & 0 deletions
4
...form/tests/css/css-color-adjust/rendering/dark-color-scheme/support/dark-frame-blank.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,4 @@ | ||
<!doctype html> | ||
<style> | ||
:root { color-scheme: dark } | ||
</style> |