File tree 3 files changed +23
-4
lines changed
src/librustdoc/html/static/css
3 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -971,6 +971,8 @@ so that we can apply CSS-filters to change the arrow color in themes */
971
971
display : flex;
972
972
padding : 3px ;
973
973
margin-bottom : 5px ;
974
+ align-items : center;
975
+ vertical-align : text-bottom;
974
976
}
975
977
.item-name .stab {
976
978
margin-left : 0.3125em ;
@@ -982,11 +984,9 @@ so that we can apply CSS-filters to change the arrow color in themes */
982
984
color : var (--main-color );
983
985
background-color : var (--stab-background-color );
984
986
width : fit-content;
985
- align-items : center;
986
987
white-space : pre-wrap;
987
988
border-radius : 3px ;
988
- display : inline-flex;
989
- vertical-align : text-bottom;
989
+ display : inline;
990
990
}
991
991
992
992
.stab .portability > code {
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ compare-elements-position: (
37
37
("y"),
38
38
)
39
39
40
-
41
40
// Mobile view
42
41
set-window-size: (600, 600)
43
42
// staggered layout with 2em spacing
@@ -64,3 +63,14 @@ compare-elements-position-false: (
64
63
"//*[@class='desc docblock-short'][text()='a thing with a label']",
65
64
("y"),
66
65
)
66
+
67
+ // Ensure it doesn't expand.
68
+ set-window-size: (800, 800)
69
+ go-to: "file://" + |DOC_PATH| + "/test_docs/cfgs/index.html"
70
+ // This part of the tags should not be on the same line as the beginning since the width
71
+ // is too small for that.
72
+ compare-elements-position-false: (
73
+ "//*[@class='stab portability']/code[text()='appservice-api-c']",
74
+ "//*[@class='stab portability']/code[text()='server']",
75
+ ("y"),
76
+ )
Original file line number Diff line number Diff line change @@ -507,3 +507,12 @@ pub mod fields {
507
507
} ,
508
508
}
509
509
}
510
+
511
+ pub mod cfgs {
512
+ #[ doc( cfg( all(
513
+ any( not( feature = "appservice-api-c" ) , not( feature = "appservice-api-s" ) ) ,
514
+ any( not( feature = "client" ) , not( feature = "server" ) ) ,
515
+ ) ) ) ]
516
+ /// Some docs.
517
+ pub mod cfgs { }
518
+ }
You can’t perform that action at this time.
0 commit comments