]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-gui/src-font-size.goml
Rollup merge of #92559 - durin42:llvm-14-attributemask, r=nikic
[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": "17px"}, ALL)
8 // The ".6" part is because the font-size is actually "1.1em".
9 assert-css: (".impl.has-srclink .code-header.in-band", {"font-size": "17.6px"}, ALL)
10 // Check the impl items.
11 assert-css: (".impl-items .has-srclink .srclink", {"font-size": "16px"}, ALL)
12 assert-css: (".impl-items .has-srclink .code-header", {"font-size": "16px"}, ALL)