-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #91179 - GuillaumeGomez:a-color, r=jsha
Fix more <a> color Fixes #91175. Another bug I saw is: ![Screenshot from 2021-11-24 11-41-27](https://user-images.githubusercontent.com/3050060/143239845-f173cfeb-8f5c-4215-a5af-b71d4e1bcd84.png) I fixed it as well. r? ``@jsha``
- Loading branch information
Showing
5 changed files
with
35 additions
and
8 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,29 @@ | ||
// This test is to ensure that the anchors (`§`) have the expected color. | ||
goto: file://|DOC_PATH|/test_docs/struct.HeavilyDocumentedStruct.html | ||
|
||
// This is needed to ensure that the text color is computed. | ||
show-text: true | ||
|
||
// Set the theme to light. | ||
local-storage: {"rustdoc-theme": "light", "rustdoc-use-system-theme": "false"} | ||
// We reload the page so the local storage settings are being used. | ||
reload: | ||
|
||
assert-css: ("#toggle-all-docs", {"color": "rgba(0, 0, 0, 0)"}) | ||
assert-css: (".fqn .in-band a:nth-of-type(1)", {"color": "rgba(0, 0, 0, 0)"}) | ||
assert-css: (".fqn .in-band a:nth-of-type(2)", {"color": "rgba(0, 0, 0, 0)"}) | ||
assert-css: (".srclink", {"color": "rgba(0, 0, 0, 0)"}) | ||
assert-css: (".srclink", {"color": "rgba(0, 0, 0, 0)"}) | ||
assert-css: ("#toggle-all-docs", {"color": "rgb(0, 0, 0)"}) | ||
assert-css: (".fqn .in-band a:nth-of-type(1)", {"color": "rgb(0, 0, 0)"}) | ||
assert-css: (".fqn .in-band a:nth-of-type(2)", {"color": "rgb(173, 68, 142)"}) | ||
assert-css: (".srclink", {"color": "rgb(0, 0, 0)"}) | ||
assert-css: (".srclink", {"color": "rgb(0, 0, 0)"}) | ||
|
||
assert-css: ("#top-doc-prose-title", {"color": "rgb(0, 0, 0)"}) | ||
|
||
assert-css: (".sidebar a", {"color": "rgb(0, 0, 0)"}) | ||
assert-css: (".in-band a", {"color": "rgb(0, 0, 0)"}) | ||
|
||
assert-css: ("#top-doc-prose-title", {"color": "rgba(0, 0, 0, 0)"}) | ||
// We move the cursor over the "Implementations" title so the anchor is displayed. | ||
move-cursor-to: "h2#implementations" | ||
assert-css: ("h2#implementations a.anchor", {"color": "rgb(0, 0, 0)"}) | ||
|
||
assert-css: (".sidebar a", {"color": "rgba(0, 0, 0, 0)"}) | ||
assert-css: (".in-band a", {"color": "rgba(0, 0, 0, 0)"}) | ||
// Same thing with the impl block title. | ||
move-cursor-to: "#impl" | ||
assert-css: ("#impl a.anchor", {"color": "rgb(0, 0, 0)"}) |
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