We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 270d09d commit a0085f2Copy full SHA for a0085f2
src/test/rustdoc-gui/src-font-size.goml
@@ -0,0 +1,12 @@
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)
0 commit comments