diff options
| author | Michael Howell <michael@notriddle.com> | 2022-12-13 16:55:45 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2022-12-13 17:03:41 -0700 |
| commit | 79bb6ec9ef9490ba74bce0c481d693c1d88db4b4 (patch) | |
| tree | 751b2d0fbdefec9068fc4501846f394af9b926a0 /src/test/rustdoc-gui/impl-doc.goml | |
| parent | 0f529f0f49f4dd404b78e605398531c96f220fc5 (diff) | |
rustdoc: add CSS margin between `impl` docblock and its items
Diffstat (limited to 'src/test/rustdoc-gui/impl-doc.goml')
| -rw-r--r-- | src/test/rustdoc-gui/impl-doc.goml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/rustdoc-gui/impl-doc.goml b/src/test/rustdoc-gui/impl-doc.goml new file mode 100644 index 00000000000..7322032b3f5 --- /dev/null +++ b/src/test/rustdoc-gui/impl-doc.goml @@ -0,0 +1,9 @@ +// A docblock on an impl must have a margin to separate it from the contents. +goto: "file://" + |DOC_PATH| + "/test_docs/struct.TypeWithImplDoc.html" + +// The text is about 24px tall, so if there's a margin, then their position will be >24px apart +compare-elements-position-near-false: ( + "#implementations-list > .implementors-toggle > .docblock > p", + "#implementations-list > .implementors-toggle > .impl-items", + {"y": 24} +) |
