diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-11-23 20:32:37 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-23 20:32:37 +0530 |
| commit | a39ed5c3f6629a227dee608bfa65e2d909eb7017 (patch) | |
| tree | 09b9a5f043c2999f54dc5f335b4e9d4869032104 /src/test/rustdoc-gui/struct-fields.goml | |
| parent | c03026a7c61832d8ed3349800dfd4fb446e51dc2 (diff) | |
| parent | 1c80a5655f645dbd0996fa2b05d8443e84576c38 (diff) | |
| download | rust-a39ed5c3f6629a227dee608bfa65e2d909eb7017.tar.gz rust-a39ed5c3f6629a227dee608bfa65e2d909eb7017.zip | |
Rollup merge of #104744 - notriddle:notriddle/struct-fields-display-block, r=GuillaumeGomez
rustdoc: give struct fields CSS `display: block` Fixes #104737
Diffstat (limited to 'src/test/rustdoc-gui/struct-fields.goml')
| -rw-r--r-- | src/test/rustdoc-gui/struct-fields.goml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/rustdoc-gui/struct-fields.goml b/src/test/rustdoc-gui/struct-fields.goml new file mode 100644 index 00000000000..3ec60b58cfd --- /dev/null +++ b/src/test/rustdoc-gui/struct-fields.goml @@ -0,0 +1,5 @@ +goto: "file://" + |DOC_PATH| + "/test_docs/struct.StructWithPublicUndocumentedFields.html" + +// Both fields must be on their own line. In other words, they have display: block. +store-property: (first_top, "//*[@id='structfield.first']", "offsetTop") +assert-property-false: ("//*[@id='structfield.second']", { "offsetTop": |first_top| }) |
