Support shorthand syntax for CSS3 media queries (leaving out media type)

RESOLVED WORKSFORME

Status

()

Core
CSS Parsing and Computation
RESOLVED WORKSFORME
7 years ago
7 years ago

People

(Reporter: fryn, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

7 years ago
According to the candidate recommendation:
A shorthand syntax is offered for media queries that apply to all media types; the keyword ‘all’ can be left out (along with the trailing ‘and’).
Source: http://www.w3.org/TR/css3-mediaqueries/#media0

Our documentation currently describes the media type as required:
https://developer.mozilla.org/En/CSS/Media_queries
But we have plenty of tests testing that it works, such as:

http://mxr.mozilla.org/mozilla-central/source/layout/reftests/css-mediaqueries/mq_print_height.xhtml
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → WORKSFORME
Keywords: dev-doc-needed
(And it's been supported since media queries were implemented.)
(Reporter)

Comment 3

7 years ago
Thanks. I just added a line to the documentation regarding this, which should be sufficient for now.
Keywords: dev-doc-needed
You need to log in before you can comment on or make changes to this bug.