@media {} should be invalid (i.e., @media rules don't allow empty media lists)

RESOLVED INVALID

Status

()

Core
CSS Parsing and Computation
P3
normal
RESOLVED INVALID
7 years ago
7 years ago

People

(Reporter: dbaron, Assigned: dbaron)

Tracking

({css3})

Trunk
mozilla1.9.3a5
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

7 years ago
In http://lists.w3.org/Archives/Public/www-style/2009Aug/0128.html the CSS working group resolved that @media rules should not allow empty media lists.  I wrote a patch for it immediately, but never got around to filing a bug.

(The minutes aren't all that clear, but the discussion was clear that the change was specific to @media and not a general media queries change.)

(I'll attach the patch once it passes try server; it requires at least one unit test adjustment and maybe more.)
(Assignee)

Comment 1

7 years ago
Created attachment 441318 [details] [diff] [review]
patch

Passes all unit tests on try on Linux and Mac.  Still waiting for Windows results, but no reason to think they'll be different.
Attachment #441318 - Flags: review?(bzbarsky)
Comment on attachment 441318 [details] [diff] [review]
patch

r=bzbarsky
Attachment #441318 - Flags: review?(bzbarsky) → review+
(Assignee)

Comment 3

7 years ago
The CSS working group decided at yesterday's telecon that it should be valid after all.  So this is now invalid.
Status: ASSIGNED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.