File tree 2 files changed +10
-3
lines changed
librustdoc/html/static/css
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -578,11 +578,13 @@ ul.block, .block li {
578
578
.src-line-numbers a {
579
579
color : var (--src-line-numbers-span-color );
580
580
}
581
- .src-line-numbers .line-highlighted {
582
- background-color : var (--src-line-number-highlighted-background-color );
583
- }
584
581
.src-line-numbers : target {
585
582
background-color : transparent;
583
+ border-right : none;
584
+ padding-right : 0 ;
585
+ }
586
+ .src-line-numbers .line-highlighted {
587
+ background-color : var (--src-line-number-highlighted-background-color );
586
588
}
587
589
588
590
.search-loading {
Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ click: ".src-line-numbers > a:nth-child(4)" // This is the anchor for line 4.
6
6
// Ensure that the page URL was updated.
7
7
assert-document-property: ({"URL": "lib.rs.html#4"}, ENDS_WITH)
8
8
assert-attribute: ("//*[@id='4']", {"class": "line-highlighted"})
9
+ // Ensure that the default style, with the right border, isn't used.
10
+ assert-css: ("//*[@id='4']", {"border-right-width": "0px"})
11
+ reload:
12
+ assert-attribute: ("//*[@id='4']", {"class": "line-highlighted"})
13
+ assert-css: ("//*[@id='4']", {"border-right-width": "0px"})
9
14
// We now check that the good anchors are highlighted
10
15
goto: "file://" + |DOC_PATH| + "/src/test_docs/lib.rs.html#4-6"
11
16
assert-attribute-false: (".src-line-numbers > a:nth-child(3)", {"class": "line-highlighted"})
You can’t perform that action at this time.
0 commit comments