1 // Check that the targetted element has the expected styles.
2 goto: "file://" + |DOC_PATH| + "/lib2/struct.Foo.html#method.a_method"
5 // Confirming that the method is the target.
6 assert: "#method\.a_method:target"
10 (theme, background, border),
12 ("local-storage", {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}),
14 ("assert-css", ("#method\.a_method:target", {
15 "background-color": |background|,
16 "border-right": "3px solid " + |border|,
21 call-function: ("check-style", {
23 "background": "rgba(255, 236, 164, 0.06)",
24 "border": "rgba(255, 180, 76, 0.85)",
26 call-function: ("check-style", {
28 "background": "rgb(73, 74, 61)",
29 "border": "rgb(187, 116, 16)",
31 call-function: ("check-style", {
33 "background": "rgb(253, 255, 211)",
34 "border": "rgb(173, 124, 55)",