Page MenuHomePhabricator

Support comma-separated media queries
Closed, DeclinedPublic

Description

Currently, comma separated media query lists (https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries#comma-separated_lists) are not supported by OutputPage::transformCssMedia .

They should behave as expected given the request parameters. For example, for:

print, screen and (max-width: 700px)

on a printable=yes request, it should be transformed to an empty media string (since it satisfies the print rule). Similarly, for:

handheld, screen and (max-width: 700px)

it should become an empty string on a handheld=yes request.

Stylesheets that are screen-only should not be included for printable=yes views, even if it's comma-separated.


Version: 1.22.0
Severity: normal

Details

Reference
bz49851

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:09 AM
bzimport set Reference to bz49851.
bzimport added a subscriber: Unknown Object (MLST).

Declining for now lacking a use case or demand for it in seven years. Happy to reconsider and patches welcome if without significant complexity.