Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add:root { color-scheme: light dark; } to http.server directory list and error pages #123430

Closed
Labels
stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement
@YorikHansen

Description

@YorikHansen

Feature or enhancement

Proposal:

Allow browsers to apply light or dark themes to the http.server directory list according to the users prefered color scheme.

This can be done by adding the CSScolor-scheme property to:root with the valuelight dark.

:root {color-scheme: light dark;}

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

Something similar was discussed previously in#95812. There it wasrejected, as "[t]he listing [should] not contain any hardcoded colors".

I agree with this statement, but I think the page should allow browsers to select their own color scheme and don't see it as a "a problem either with [the] configuration or with the browser", as long as thecolor-scheme property is not set properly.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2026 Movatter.jp