This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed
ci/docker/host-x86_64/x86_64-gnu-tools
librustdoc/html/static/css Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ ENV PATH="/node-v14.4.0-linux-x64/bin:${PATH}"
72
72
# https://github.com/puppeteer/puppeteer/issues/375
73
73
#
74
74
# We also specify the version in case we need to update it to go around cache limitations.
75
- RUN npm install -g browser-ui-test@0.5.1 --unsafe-perm=true
75
+ RUN npm install -g browser-ui-test@0.5.3 --unsafe-perm=true
76
76
77
77
ENV RUST_CONFIGURE_ARGS \
78
78
--build=x86_64-unknown-linux-gnu \
Original file line number Diff line number Diff line change @@ -2007,6 +2007,16 @@ details.rustdoc-toggle[open] > summary.hideme::after {
2007
2007
max-width : 100vw ;
2008
2008
width : 100vw ;
2009
2009
}
2010
+
2011
+ /* Position of the "[-]" element. */
2012
+ details .rustdoc-toggle : not (.top-doc ) > summary {
2013
+ margin-left : 10px ;
2014
+ }
2015
+ .impl-items > details .rustdoc-toggle > summary : not (.hideme )::before ,
2016
+ # main-content > details .rustdoc-toggle : not (.top-doc ) > summary ::before ,
2017
+ # main-content > div > details .rustdoc-toggle > summary ::before {
2018
+ left : -11px ;
2019
+ }
2010
2020
}
2011
2021
2012
2022
@media print {
Original file line number Diff line number Diff line change @@ -9,6 +9,16 @@ assert-attribute: (".top-doc", {"open": ""})
9
9
click: (3, 280)
10
10
assert-attribute: (".top-doc", {"open": ""})
11
11
12
+ // Assert the position of the toggle on the top doc block.
13
+ assert-position: (".top-doc summary::before", {"x": 4})
14
+ // Assert the position of the toggle on the impl block.
15
+ assert-position: ("#implementations + details > summary::before", {"x": 4})
16
+ // Assert the position of the toggle on a method.
17
+ assert-position: (
18
+ "#trait-implementations-list .impl-items .method-toggle > summary::before",
19
+ {"x": 4},
20
+ )
21
+
12
22
// Now we do the same but with a little bigger width
13
23
size: (600, 600)
14
24
assert-attribute: (".top-doc", {"open": ""})
You can’t perform that action at this time.
0 commit comments