File tree 2 files changed +8
-7
lines changed
src/librustdoc/html/static/css
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ h4.code-header {
230
230
padding : 0 ;
231
231
white-space : pre-wrap;
232
232
}
233
- .structfield {
233
+ .structfield , . sub-variant-field {
234
234
margin : 0.6em 0 ;
235
235
}
236
236
Original file line number Diff line number Diff line change 1
1
// This test checks that fields are displayed as expected (one by line) and they are surrounded
2
2
// by margins.
3
3
4
+ store-value: (margin, "9.6px")
4
5
define-function: (
5
6
"check-fields",
6
7
[path, selector_1, selector_2],
@@ -12,8 +13,8 @@ define-function: (
12
13
13
14
// Check the margins.
14
15
assert-css: (".structfield.section-header", {
15
- "margin-top": "9.6px" ,
16
- "margin-bottom": "9.6px" ,
16
+ "margin-top": |margin| ,
17
+ "margin-bottom": |margin| ,
17
18
"margin-left": "0px",
18
19
"margin-right": "0px",
19
20
}, ALL)
@@ -41,9 +42,9 @@ store-position: ("#variant\.B\.field\.b", {"y": b_y})
41
42
assert: |a_y| < |b_y|
42
43
43
44
// Check the margins.
44
- assert-css: (".sub-variant-field .section-header ", {
45
- "margin-top": "0px" ,
46
- "margin-bottom": "0px" ,
47
- "margin-left": "0px ",
45
+ assert-css: (".sub-variant-field", {
46
+ "margin-top": |margin| ,
47
+ "margin-bottom": |margin| ,
48
+ "margin-left": "24px ",
48
49
"margin-right": "0px",
49
50
}, ALL)
You can’t perform that action at this time.
0 commit comments