File tree 3 files changed +12
-1
lines changed
librustdoc/html/static/css
3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -1117,6 +1117,7 @@ pre.rust .question-mark {
1117
1117
1118
1118
a .test-arrow {
1119
1119
display : inline-block;
1120
+ visibility : hidden;
1120
1121
position : absolute;
1121
1122
padding : 5px 10px 5px 10px ;
1122
1123
border-radius : 5px ;
@@ -1125,10 +1126,12 @@ a.test-arrow {
1125
1126
right : 5px ;
1126
1127
z-index : 1 ;
1127
1128
}
1129
+ .example-wrap : hover .test-arrow {
1130
+ visibility : visible;
1131
+ }
1128
1132
a .test-arrow : hover {
1129
1133
text-decoration : none;
1130
1134
}
1131
-
1132
1135
.section-header : hover a : before {
1133
1136
position : absolute;
1134
1137
left : -25px ;
Original file line number Diff line number Diff line change
1
+ // Example code blocks sometimes have a "Run" button to run them on the
2
+ // Playground. That button is hidden until the user hovers over the code block.
3
+ // This test checks that it is hidden, and that it shows on hover.
4
+ goto: file://|DOC_PATH|/test_docs/fn.foo.html
5
+ assert-css: (".test-arrow", {"visibility": "hidden"})
6
+ move-cursor-to: ".example-wrap"
7
+ assert-css: (".test-arrow", {"visibility": "visible"})
Original file line number Diff line number Diff line change 1
1
//! The point of this crate is to be able to have enough different "kinds" of
2
2
//! documentation generated so we can test each different features.
3
+ #![ doc( html_playground_url="https://play.rust-lang.org/" ) ]
3
4
4
5
#![ crate_name = "test_docs" ]
5
6
#![ feature( rustdoc_internals) ]
You can’t perform that action at this time.
0 commit comments