]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-gui/check_info_sign_position.goml
Auto merge of #100035 - workingjubilee:merge-functions, r=nikic
[rust.git] / src / test / rustdoc-gui / check_info_sign_position.goml
1 // This test checks the position of the information on the code blocks (like
2 // `compile_fail` or `ignore`).
3 goto: file://|DOC_PATH|/test_docs/index.html
4 goto: ./fn.check_list_code_block.html
5 // If the codeblock is the first element of the docblock, the information tooltip must have
6 // have some top margin to avoid going over the toggle (the "[+]").
7 assert-css: (".docblock > .information > .compile_fail", { "margin-top": "16px" })
8 // Checks that the other codeblocks don't have this top margin.
9 assert-css: ("ol > li > .information > .compile_fail", { "margin-top": "0px" })
10 assert-css: ("ol > li > .information > .ignore", { "margin-top": "0px" })
11 assert-css: (".docblock > .information > .ignore", { "margin-top": "0px" })