Skip to content

Commit 24913bd

Browse files
committed
rustdoc: remove unneeded position: relative setting CSS
This was added to control percentage sizes, in 79956b9 Now, the only percentage size is [`border-radius`], which is based on the size of the box itself, not its containing block. This leaves the property unused. [`border-radius`]: https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius
1 parent 5570fda commit 24913bd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/librustdoc/html/static/css/settings.css

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.setting-line {
22
margin: 1.2em 0.6em;
3-
position: relative;
43
}
54

65
.setting-radio input, .setting-check input {

tests/rustdoc-gui/settings.goml

+2-2
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ wait-for-css: ("#help-button .popover", {"display": "block"})
301301
// Now we go to the settings page to check that the CSS is loaded as expected.
302302
go-to: "file://" + |DOC_PATH| + "/settings.html"
303303
wait-for: "#settings"
304-
assert-css: (".setting-line", {"position": "relative"})
304+
assert-css: (".setting-radio", {"cursor": "pointer"})
305305

306306
assert-attribute-false: ("#settings", {"class": "popover"}, CONTAINS)
307307
compare-elements-position: (".sub form", "#settings", ("x"))
@@ -322,4 +322,4 @@ reload:
322322
set-window-size: (300, 1000)
323323
click: "#settings-menu"
324324
wait-for: "#settings"
325-
assert-css: (".setting-line", {"position": "relative"})
325+
assert-css: (".setting-radio", {"cursor": "pointer"})

0 commit comments

Comments
 (0)