about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-09-10 07:09:21 +0200
committerGitHub <noreply@github.com>2022-09-10 07:09:21 +0200
commit227e25a8d8175f19fa797bcd4e162d0ab8f9e0f9 (patch)
tree3ee28d3495cac9eb9ac1ea1c83986f895fa1ac65 /src/test
parent27afe5586054f079c4fc7005b05b6ce93f549766 (diff)
parent0698ffbdb590d76cdeec0a1f06331fe82ff9aada (diff)
downloadrust-227e25a8d8175f19fa797bcd4e162d0ab8f9e0f9.tar.gz
rust-227e25a8d8175f19fa797bcd4e162d0ab8f9e0f9.zip
Rollup merge of #101624 - notriddle:notriddle/search, r=GuillaumeGomez
rustdoc: remove unused CSS `#search { position: relative }`

This was added in 611d0e6ccef8b60fa86ff5aa8fe3571cd36c444a, to allow its child `#results` element to be absolutely positioned inside it. The child stopped being absolute in 8c0469552e879f6319f8f96db660bab9eae1de5c.

To keep the layout looking the same, the links need to not have `width: 100%` any more, relying instead on the box naturally growing to fit because it has `display: block`.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/rustdoc-gui/search-result-display.goml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/rustdoc-gui/search-result-display.goml b/src/test/rustdoc-gui/search-result-display.goml
index db4907924fa..54482005fa6 100644
--- a/src/test/rustdoc-gui/search-result-display.goml
+++ b/src/test/rustdoc-gui/search-result-display.goml
@@ -7,11 +7,11 @@ press-key: 'Enter'
 wait-for: "#crate-search"
 // The width is returned by "getComputedStyle" which returns the exact number instead of the
 // CSS rule which is "50%"...
-assert-css: (".search-results div.desc", {"width": "295px"})
+assert-css: (".search-results div.desc", {"width": "293px"})
 size: (600, 100)
 // As counter-intuitive as it may seem, in this width, the width is "100%", which is why
 // when computed it's larger.
-assert-css: (".search-results div.desc", {"width": "570px"})
+assert-css: (".search-results div.desc", {"width": "566px"})
 
 // Check that the crate filter `<select>` is correctly handled when it goes to next line.
 // To do so we need to update the length of one of its `<option>`.