diff options
| author | Michael Howell <michael@notriddle.com> | 2022-12-15 12:05:27 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2022-12-15 12:05:27 -0700 |
| commit | f28a8ca1dce6b8e8ce7d89bdb2030d74d06039c4 (patch) | |
| tree | f2b2bdf1579f3dcaf1a2bef365b07e58b83a441e /src/test/rustdoc-gui/codeblock-tooltip.goml | |
| parent | 984eab57f708e62c09b3d708033fe620130b5f39 (diff) | |
| download | rust-f28a8ca1dce6b8e8ce7d89bdb2030d74d06039c4.tar.gz rust-f28a8ca1dce6b8e8ce7d89bdb2030d74d06039c4.zip | |
rustdoc: simplify CSS for codeblock tooltips
Instead of making its parts `display: none` and then changing it on hover, just make the pseudo-element itself on hover.
Diffstat (limited to 'src/test/rustdoc-gui/codeblock-tooltip.goml')
| -rw-r--r-- | src/test/rustdoc-gui/codeblock-tooltip.goml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/rustdoc-gui/codeblock-tooltip.goml b/src/test/rustdoc-gui/codeblock-tooltip.goml index 4d923be3e78..aab27394eb1 100644 --- a/src/test/rustdoc-gui/codeblock-tooltip.goml +++ b/src/test/rustdoc-gui/codeblock-tooltip.goml @@ -20,7 +20,7 @@ define-function: ( {"border-left": "2px solid rgba(255, 0, 0, 0.5)"}, )), - ("move-cursor-to", ".docblock .example-wrap.compile_fail"), + ("move-cursor-to", ".docblock .example-wrap.compile_fail .tooltip"), ("assert-css", ( ".docblock .example-wrap.compile_fail .tooltip", @@ -60,7 +60,7 @@ define-function: ( {"border-left": "2px solid rgba(255, 0, 0, 0.5)"}, )), - ("move-cursor-to", ".docblock .example-wrap.should_panic"), + ("move-cursor-to", ".docblock .example-wrap.should_panic .tooltip"), ("assert-css", ( ".docblock .example-wrap.should_panic .tooltip", @@ -100,7 +100,7 @@ define-function: ( {"border-left": "2px solid rgba(255, 142, 0, 0.6)"}, )), - ("move-cursor-to", ".docblock .example-wrap.ignore"), + ("move-cursor-to", ".docblock .example-wrap.ignore .tooltip"), ("assert-css", ( ".docblock .example-wrap.ignore .tooltip", |
