Skip to content

[css-mediaqueries] prefers-color-scheme and printing #3522

@quasicomputational

Description

@quasicomputational

Spec: https://drafts.csswg.org/mediaqueries-5/#prefers-color-scheme (drive-by note: the section title is a copy-pasto)

What should the interaction of prefers-color-scheme and printing be? I'm specifically worried that 'prefers-color-scheme: dark' might naively cause printer ink worth more than the GDP of Hampshire to be used.

Some options off the top of my head, but I'm sure there are others:

  • When printing, recommend (require?) that 'prefers-color-scheme: light' matches, because paper has a 'light' colour scheme. Is there such a thing as light-on-dark printing where this would be inappropriate?
  • Have no preferred colour scheme when printing (a no-list of inappropriate media), or perhaps for all media except screens (a yes-list of appropriate media); queries involving prefers-color-scheme should always be false in those cases. This has a good forwards compatibility story if something else gets decided later.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions