about summary refs log tree commit diff
path: root/tests/rustdoc-gui/list-margins.goml
blob: c83f5898e8e467d8529fa7a25631c72bf6c6945a (plain)
1
2
3
4
5
6
7
8
9
10
11
// This test ensures that the documentation list markers are correctly placed.
// It also serves as a regression test for <https://github.com/rust-lang/rust/issues/130622>.

go-to: "file://" + |DOC_PATH| + "/test_docs/long_list/index.html"
show-text: true

// 0.3em
assert-css: (".docblock li p:not(last-child)", {"margin-bottom": "4.8px"})
assert-css: (".docblock li p + p:last-child", {"margin-bottom": "0px"})
// 0.4em
assert-css: (".docblock li", {"margin-bottom": "6.4px"})