-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 #92404 - GuillaumeGomez:src-font-size, r=jsha
Fix font size for [src] links in headers Fixes #90384. cc `@jsha` r? `@camelid`
- Loading branch information
Showing
5 changed files
with
19 additions
and
13 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
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,12 @@ | ||
// This test ensures that the "[src]" have the same font size as their headers | ||
// to avoid having some weird height difference in the background when the element | ||
// is selected. | ||
goto: file://|DOC_PATH|/test_docs/struct.Foo.html | ||
show-text: true | ||
// Check the impl headers. | ||
assert-css: (".impl.has-srclink .srclink", {"font-size": "17px"}, ALL) | ||
// The ".6" part is because the font-size is actually "1.1em". | ||
assert-css: (".impl.has-srclink .code-header.in-band", {"font-size": "17.6px"}, ALL) | ||
// Check the impl items. | ||
assert-css: (".impl-items .has-srclink .srclink", {"font-size": "16px"}, ALL) | ||
assert-css: (".impl-items .has-srclink .code-header", {"font-size": "16px"}, ALL) |