Skip to content

[RFC] Change spanning media feature  #235

Open
@zouhir

Description

@zouhir

We originally proposed spanning media feature with a set of a string-type values representing the hardware configuration (single-fold-vertical, single-fold-horizontal), and our idea for the future was to create new string values representing the screen topologies of that new hardware.

Frame 31 (1)

We believe the folks on this CSSWG thread w3c/csswg-drafts#4736 have provided great suggestions that we are now strongly considering as alternatives to the currently proposed spanning media feature.

@fantasai has proposed:

display-span-x: <integer[1,inf]>
display-span-y: <integer[1,inf]>

@Crissov sort-of similarly proposed:

segmentation-x or horizontal-segments
segmentation-y or vertical-segments

Why do we like the above proposal?

What @fantasai has specified above makes the media-feature self-explanatory and follows a clear and deterministic convention, this increases the ergonomics of the API and helps developers to easily reason about the configuration they are willing to target, rather than keep having to look up the spec to understand what a dictionary of values actually maps to what hardware.

To discuss

  • any objections on moving forward with @fantasai's suggestion? more specifically, towards 2 separate media feature for horizontal and vertical display regions (logical or physical) and the values are of type integer

  • do you feel the phrase display-span-x and display-span-y naturally covers devices with no separate physical displays such as Samsung's and Motorola's foldable devices?
    Frame 32 (1)

  • other feedback items regarding this topic?

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions