Closed Bug 625966 Opened 13 years ago Closed 13 years ago

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

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: fryn, Unassigned)

References

()

Details

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
Closed: 13 years ago
Resolution: --- → WORKSFORME
(And it's been supported since media queries were implemented.)
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.