]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-gui/anchor-navigable.goml
Rollup merge of #107777 - compiler-errors:derive_const-actually-derive-const, r=fee1...
[rust.git] / tests / rustdoc-gui / anchor-navigable.goml
1 // The `impl Foo` heading underneath `Implementations` has a ยง
2 // anchor to its left (used for linking to that heading). The anchor only shows
3 // up when hovering the `impl Foo`. This test ensures there's no gap between the
4 // anchor and the `impl Foo`. If there were a gap, this would cause an annoying
5 // problem: you hover `impl Foo` to see the anchor, then when you move your
6 // mouse to the left, the anchor disappears before you reach it.
7 goto: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
8 // We check that ".item-info" is bigger than its content.
9 move-cursor-to: ".impl"
10 assert-property: (".impl > a.anchor", {"offsetWidth": "8"})
11 assert-css: (".impl > a.anchor", {"left": "-8px"})