summary refs log tree commit diff
path: root/src/test/rustdoc-gui/sidebar-mobile-scroll.goml
AgeCommit message (Collapse)AuthorLines
2022-10-17rustdoc: change mobile breakpoint to match CSSMichael Howell-4/+4
Since it's possible to have a 700.5px viewport width, the JS needs to not switch to mobile mode in such a setup.
2022-10-07Update rustdoc-gui test to new browser-ui-test versionGuillaume Gomez-1/+1
2022-09-30rustdoc: update test cases for `<section>` tags in traitsMichael Howell-3/+3
2022-09-27Update src/test/rustdoc-gui/sidebar-mobile-scroll.gomlJacob Hoffman-Andrews-3/+3
Co-authored-by: Michael Howell <michael@notriddle.com>
2022-09-27rustdoc: use CSS containment to speed up renderJacob Hoffman-Andrews-3/+3
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Containment This affected layout a little and required adjustments to the CSS to keep spacing the same. In particular, the margins of adjacent items usually overlap with each other. However, when an item has contain: layout, any margins of child nodes push out the size of the item itself. This was making spacing between items a little too big. To solve that, I removed margins in some places: in particular for certain classes that often occur at the end of a `details.rustdoc-toggle` block, I removed their bottom margin. Generally, the margins provided by the next item down are sufficient. Also remove an unnecessary margin-top on .code-header.
2022-09-11Update tests for new browser-ui-test versionGuillaume Gomez-4/+4
2022-07-05rustdoc: improve scroll locking in the rustdoc mobile sidebarsMichael Howell-0/+31
This commit ports the scroll locking behavior from the source sidebar to the regular sidebar, and also fixes some bad behavior where opening a "mobile" sidebar, and growing the viewport so that the "desktop" mode without scroll locking is activated, could potentially leave the page stuck. This does not affect the behavior on larger screens. Only small ones, where the sidebar covers up the main content.