summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc-gui/check-code-blocks-margin.goml
blob: f6266eba75de7703932366e0e27d0f64b6bb623d (plain)
1
2
3
4
5
6
// This test ensures that the docblock elements have the appropriate left margin.
goto: file://|DOC_PATH|/test_docs/fn.foo.html
// The top docblock elements shouldn't have left margin...
assert-css: ("#main-content .docblock.item-decl", {"margin-left": "0px"})
// ... but all the others should!
assert-css: ("#main-content .docblock:not(.item-decl)", {"margin-left": "24px"})