W3C home > Mailing lists > Public > www-style@w3.org > December 2013

[indie-ui-context] boolean media queries should probably use 1/0 values, not on/off

From: L. David Baron <dbaron@dbaron.org>
Date: Tue, 10 Dec 2013 17:36:43 -0800
To: public-indie-ui-comments@w3.org, www-style@w3.org
Message-ID: <20131211013643.GA4073@crum.dbaron.org>
sections 2.3 (User Media Settings) and 2.4 (Screen Reader Settings)
define a number of media features with on | off values.

I tend to think these should probably have 1 | 0 values instead,
to match the other boolean-like media features in
http://www.w3.org/TR/css3-mediaqueries/ such as color, monochrome,
and grid.  Using <integer> values 1 or 0 allows authors to use more
boolean-like syntax:
rather than having to write:
  (screenreader: on)
since the media queries spec treats zero values as a special case in
http://www.w3.org/TR/css3-mediaqueries/#media1 .


𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla                          https://www.mozilla.org/   𝄂
             Before I built a wall I'd ask to know
             What I was walling in or walling out,
             And to whom I was like to give offense.
               - Robert Frost, Mending Wall (1914)

Received on Wednesday, 11 December 2013 01:37:09 UTC

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