W3C home > Mailing lists > Public > www-style@w3.org > June 2015

[mediaqueries] Custom media definition with brackets

From: Bang Seongbeom <bangseongbeom@hotmail.com>
Date: Sat, 6 Jun 2015 18:24:05 +0900
Message-ID: <BLU436-SMTP121F05FC3CDD7D12582BA8CB0B10@phx.gbl>
To: www-style@w3.org
Look at this:
@custom-media --narrow-window (max-width: 30em);
@media (--narrow-window) {
}

At-rule name is just @custom-media. we can not infer whether media type 
or media feature.

Defining with brackets is more intuitive:
@custom-media (--narrow-window) (max-width: 30em);
@media (--narrow-window) {
}
Received on Saturday, 6 June 2015 09:25:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:54 UTC