Skip to content

Commit a0085f2

Browse files
Add test for [src] font-size in headers
1 parent 270d09d commit a0085f2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)