]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-gui/src-font-size.goml
Rollup merge of #95475 - Jules-Bertholet:rustdoc-hide-assoc-consts-from-trait-impls...
[rust.git] / src / test / rustdoc-gui / src-font-size.goml
1 // This test ensures that the "[src]" have the same font size as their headers
2 // to avoid having some weird height difference in the background when the element
3 // is selected.
4 goto: file://|DOC_PATH|/test_docs/struct.Foo.html
5 show-text: true
6 // Check the impl headers.
7 assert-css: (".impl.has-srclink .srclink", {"font-size": "16px"}, ALL)
8 assert-css: (".impl.has-srclink .code-header.in-band", {"font-size": "18px"}, ALL)
9 // Check the impl items.
10 assert-css: (".impl-items .has-srclink .srclink", {"font-size": "16px"}, ALL)
11 assert-css: (".impl-items .has-srclink .code-header", {"font-size": "16px"}, ALL)