Skip to content

librustdoc: fix CSS border issue to support Firefox high contrast mode #157378

@robbycbennett

Description

@robbycbennett

Because of the thick borders in the Rust documentation result in an unreadable and unpleasant sidebar in Firefox high contrast mode.

Steps to replicate the issue:

  1. Open Firefox
  2. Enable high contrast mode Settings > General > Website contrast > Custom
  3. Go to https://doc.rust-lang.org/std/index.html

This can be fixed by using margin or padding instead of a thick transparent border in src/librustdoc/html/static/css/rustdoc.css

Screenshot:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-uiArea: Rustdoc UI (generated HTML)C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.T-rustdoc-frontendRelevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions