Skip to content

Commit 5a75c2c

Browse files
author
Florian Rivoal
committed
[mediaqueries] Add the 'updates' media feature
1 parent c955f68 commit 5a75c2c

2 files changed

Lines changed: 78 additions & 13 deletions

File tree

mediaqueries/Overview.html

Lines changed: 45 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
</p>
5555
<h1 class="p-name no-ref" id=title>Media Queries Level 4</h1>
5656
<h2 class="no-num no-toc no-ref heading settled heading" id=subtitle><span class=content>Editor’s Draft,
57-
<span class=dt-updated><span class=value-title title=20140104>4 January 2014</span></span></span></h2>
57+
<span class=dt-updated><span class=value-title title=20140126>26 January 2014</span></span></span></h2>
5858
<div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://dev.w3.org/csswg/mediaqueries4/>http://dev.w3.org/csswg/mediaqueries4/</a><dt>Editor’s Draft:<dd><a href=http://dev.w3.org/csswg/mediaqueries4/>http://dev.w3.org/csswg/mediaqueries4/</a>
5959
<dt>Feedback:</dt>
6060
<dd><a href="mailto:www-style@w3.org?subject=%5Bmediaqueries%5D%20feedback">www-style@w3.org</a>
@@ -135,7 +135,7 @@ <h2 class="no-num no-toc no-ref heading settled heading" id=contents><span class
135135
Display Quality Media Features</a><ul class=toc><li><a href=#resolution><span class=secno>5.1</span>
136136
resolution</a><li><a href=#scan><span class=secno>5.2</span>
137137
scan</a><li><a href=#grid><span class=secno>5.3</span>
138-
grid</a></ul><li><a href=#mf-colors><span class=secno>6</span>
138+
grid</a><li><a href=#updates><span class=secno>5.4</span>Updates</a></ul><li><a href=#mf-colors><span class=secno>6</span>
139139
Color Media Features</a><ul class=toc><li><a href=#color><span class=secno>6.1</span>
140140
color</a><li><a href=#color-index><span class=secno>6.2</span>
141141
color-index</a><li><a href=#monochrome><span class=secno>6.3</span>
@@ -742,7 +742,7 @@ <h4 class="heading settled heading" data-level=2.4.1 id=mq-ranges><span class=se
742742
take their values from a set.
743743
The values may be keywords
744744
or boolean numbers (0 and 1),
745-
but the common factor is that there’s no intrinsic “order” to them—<wbr></wbr>none of the values are “less than” or “greater than” each other.
745+
but the common factor is that there’s no intrinsic “order” to them—<wbr>none of the values are “less than” or “greater than” each other.
746746

747747
<p> “Range” media features like <a class=property data-link-type=propdesc href=#descdef-width title=width>width</a>, on the other hand,
748748
take their values from a range.
@@ -751,7 +751,7 @@ <h4 class="heading settled heading" data-level=2.4.1 id=mq-ranges><span class=se
751751
<p> The only significant difference between the two types is that “range” <a data-link-type=dfn href=#media-feature title="media features">media features</a>
752752
can be evaluated in a <a data-link-type=dfn href=#range-context title="range context">range context</a>
753753
and accept “min-” and “max-” prefixes on their name.
754-
Doing either of these changes the meaning of the feature—<wbr></wbr>rather than the <a data-link-type=dfn href=#media-feature title="media feature">media feature</a> being true when the feature exactly matches the given value,
754+
Doing either of these changes the meaning of the feature—<wbr>rather than the <a data-link-type=dfn href=#media-feature title="media feature">media feature</a> being true when the feature exactly matches the given value,
755755
it matches when the feature is greater than/less than/equal to the given value.
756756

757757
<div class=example>
@@ -806,7 +806,7 @@ <h4 class="heading settled heading" data-level=2.4.2 id=mq-boolean-context><span
806806
Only some of the <a data-link-type=dfn href=#media-feature title="media features">media features</a> that accept keywords are meaningful in a <a data-link-type=dfn href=#boolean-context title="boolean context">boolean context</a>.
807807

808808
<p> For example, <span class=css data-link-type=maybe title=(pointer)>(pointer)</span> is useful,
809-
as <a class=property data-link-type=propdesc href=#descdef-pointer title=pointer>pointer</a> has a <a class=css data-link-for=pointer data-link-type=maybe href=#valuedef-none0 title=none>none</a> value to indicate there’s no pointing device at all on the device.
809+
as <a class=property data-link-type=propdesc href=#descdef-pointer title=pointer>pointer</a> has a <a class=css data-link-for=pointer data-link-type=maybe href=#valuedef-none1 title=none>none</a> value to indicate there’s no pointing device at all on the device.
810810
On the other hand, <span class=css data-link-type=maybe title=(scan)>(scan)</span> is just always true or always false
811811
(depending on whether it applies at all to the device),
812812
as there’s no value that means “false”.
@@ -1422,6 +1422,33 @@ <h3 class="heading settled heading" data-level=5.3 id=grid><span class=secno>5.3
14221422
<pre>@media handheld and (grid) and (max-width: 15em) { … }
14231423
</pre> </div>
14241424

1425+
<h3 class="heading settled heading" data-level=5.4 id=updates><span class=secno>5.4 </span><span class=content>Updates</span><a class=self-link href=#updates></a></h3>
1426+
<table class="definition descdef mq" data-dfn-for=@media><tr><th>Name:<td><dfn class=css-code data-dfn-for=@media data-dfn-type=descriptor data-export="" id=descdef-updates>updates<a class=self-link href=#descdef-updates></a></dfn><tr><th>For:<td><a class=css-code data-link-type=at-rule href=http://dev.w3.org/csswg/css-conditional-3/#at-ruledef-media title=@media>@media</a><tr><th>Value:<td>none | slow | normal<tr><th>Type:<td>discrete</table>
1427+
<p> The <a class=property data-link-type=propdesc href=#descdef-updates title=updates>updates</a> media feature is used to query the ability of the output device to modify the apearance of content once it has been rendered. It accepts the following values:
1428+
1429+
<dl data-dfn-for=@media/updates data-dfn-type=value>
1430+
<dt><dfn class=css-code data-dfn-for=@media/updates data-dfn-type=value data-export="" id=valuedef-none0>none<a class=self-link href=#valuedef-none0></a></dfn>
1431+
<dd>
1432+
Once it has been rendered, the layout can no longer be updated.
1433+
Example: documents printed on paper.
1434+
1435+
<dt><dfn class=css-code data-dfn-for=@media/updates data-dfn-type=value data-export="" id=valuedef-slow>slow<a class=self-link href=#valuedef-slow></a></dfn>
1436+
<dd>
1437+
The layout may change dynamically according to the usual rules
1438+
of CSS, but the output device is not able to render or display
1439+
changes quickly enough for them to be percieved as a smooth
1440+
animation. Example: E-ink screens or severely under-powered
1441+
devices.
1442+
1443+
<dt><dfn class=css-code data-dfn-for=@media/updates data-dfn-type=value data-export="" id=valuedef-normal0>normal<a class=self-link href=#valuedef-normal0></a></dfn>
1444+
<dd>
1445+
The layout may change dynamically according to the usual rules
1446+
of CSS, and the output device is not unusually constrained in
1447+
speed. Example: computer screens.
1448+
</dl>
1449+
1450+
1451+
14251452

14261453
<h2 class="heading settled heading" data-level=6 id=mf-colors><span class=secno>6 </span><span class=content>
14271454
Color Media Features</span><a class=self-link href=#mf-colors></a></h2>
@@ -1544,7 +1571,7 @@ <h3 class="heading settled heading" data-level=7.1 id=pointer><span class=secno>
15441571
This media query takes the following values:
15451572

15461573
<dl data-dfn-for=@media/pointer data-dfn-type=value>
1547-
<dt><dfn class=css-code data-dfn-for=@media/pointer data-dfn-type=value data-export="" id=valuedef-none0>none<a class=self-link href=#valuedef-none0></a></dfn>
1574+
<dt><dfn class=css-code data-dfn-for=@media/pointer data-dfn-type=value data-export="" id=valuedef-none1>none<a class=self-link href=#valuedef-none1></a></dfn>
15481575
<dd>The input mechanism of the device does not include a pointing device.
15491576

15501577
<dt><dfn class=css-code data-dfn-for=@media/pointer data-dfn-type=value data-export="" id=valuedef-coarse>coarse<a class=self-link href=#valuedef-coarse></a></dfn>
@@ -1600,7 +1627,7 @@ <h3 class="heading settled heading" data-level=7.1 id=pointer><span class=secno>
16001627
</div>
16011628

16021629
<p> For accessibility reasons, even on devices whose pointing device can be
1603-
described as <a class=css data-link-type=maybe href=#valuedef-fine title=fine>fine</a>, the UA may give a value of <a class=css data-link-type=maybe href=#valuedef-coarse title=coarse>coarse</a> or <a class=css data-link-for=pointer data-link-type=maybe href=#valuedef-none0 title=none>none</a> to
1630+
described as <a class=css data-link-type=maybe href=#valuedef-fine title=fine>fine</a>, the UA may give a value of <a class=css data-link-type=maybe href=#valuedef-coarse title=coarse>coarse</a> or <a class=css data-link-for=pointer data-link-type=maybe href=#valuedef-none1 title=none>none</a> to
16041631
this media query, to indicate that the user has difficulties
16051632
manipulating the input device accurately or at all.
16061633

@@ -1623,7 +1650,7 @@ <h3 class="heading settled heading" data-level=7.2 id=hover><span class=secno>7.
16231650
used on the output device can hover or not.
16241651

16251652
<dl data-dfn-for=@media/hover data-dfn-type=value>
1626-
<dt><dfn class=css-code data-dfn-for=@media/hover data-dfn-type=value data-export="" id=valuedef-none1>none<a class=self-link href=#valuedef-none1></a></dfn>
1653+
<dt><dfn class=css-code data-dfn-for=@media/hover data-dfn-type=value data-export="" id=valuedef-none2>none<a class=self-link href=#valuedef-none2></a></dfn>
16271654
<dd>
16281655
Indicates that the primary pointing system can’t hover,
16291656
or there is no pointing system.
@@ -1646,7 +1673,7 @@ <h3 class="heading settled heading" data-level=7.2 id=hover><span class=secno>7.
16461673

16471674
<div class=example>
16481675
For example, on a touch screen device that can also be controlled by an optional mouse,
1649-
the <a class=property data-link-type=propdesc href=#descdef-hover title=hover>hover</a> <a data-link-type=dfn href=#media-feature title="media feature">media feature</a> should match <a class=css data-link-for=hover data-link-type=maybe href=#valuedef-none1 title=none>none</a>,
1676+
the <a class=property data-link-type=propdesc href=#descdef-hover title=hover>hover</a> <a data-link-type=dfn href=#media-feature title="media feature">media feature</a> should match <a class=css data-link-for=hover data-link-type=maybe href=#valuedef-none2 title=none>none</a>,
16501677
as the primary interaction mode (touching the screen) can’t hover.
16511678

16521679
<p> Authors should therefore be careful not to assume that the ':hover' pseudo class
@@ -2074,11 +2101,13 @@ <h2 class="no-num no-ref heading settled heading" id=index><span class=content>
20742101
<li>&lt;mf-value&gt;, <a href=#typedef-mf-value title="section 3">3</a>
20752102
<li>monochrome, <a href=#descdef-monochrome title="section 6.3">6.3</a>
20762103
<li>&lt;mq-boolean&gt;, <a href=#typedef-mq-boolean title="section 1.2">1.2</a>
2077-
<li>none<ul><li>value for @media/pointer, <a href=#valuedef-none0 title="section 7.1">7.1</a>
2078-
<li>value for @media/hover, <a href=#valuedef-none1 title="section 7.2">7.2</a>
2104+
<li>none<ul><li>value for @media/updates, <a href=#valuedef-none0 title="section 5.4">5.4</a>
2105+
<li>value for @media/pointer, <a href=#valuedef-none1 title="section 7.1">7.1</a>
2106+
<li>value for @media/hover, <a href=#valuedef-none2 title="section 7.2">7.2</a>
20792107
<li>value for @media/script, <a href=#valuedef-none title="section 9.1">9.1</a>
2080-
</ul><li>normal, <a href=#valuedef-normal title="section 8.1">8.1</a>
2081-
<li>not, <a href=#valuedef-not title="section 2.2.1">2.2.1</a>
2108+
</ul><li>normal<ul><li>value for @media/updates, <a href=#valuedef-normal0 title="section 5.4">5.4</a>
2109+
<li>value for @media/luminosity, <a href=#valuedef-normal title="section 8.1">8.1</a>
2110+
</ul><li>not, <a href=#valuedef-not title="section 2.2.1">2.2.1</a>
20822111
<li>on-demand, <a href=#valuedef-on-demand title="section 7.2">7.2</a>
20832112
<li>only, <a href=#valuedef-only title="section 2.2.2">2.2.2</a>
20842113
<li>orientation, <a href=#descdef-orientation title="section 4.4">4.4</a>
@@ -2092,9 +2121,11 @@ <h2 class="no-num no-ref heading settled heading" id=index><span class=content>
20922121
<li>scan, <a href=#descdef-scan title="section 5.2">5.2</a>
20932122
<li>screen, <a href=#valuedef-screen title="section 2.3">2.3</a>
20942123
<li>script, <a href=#descdef-script title="section 9.1">9.1</a>
2124+
<li>slow, <a href=#valuedef-slow title="section 5.4">5.4</a>
20952125
<li>speech, <a href=#valuedef-speech title="section 2.3">2.3</a>
20962126
<li>tty, <a href=#valuedef-tty title="section 2.3">2.3</a>
20972127
<li>tv, <a href=#valuedef-tv title="section 2.3">2.3</a>
2128+
<li>updates, <a href=#descdef-updates title="section 5.4">5.4</a>
20982129
<li>washed, <a href=#valuedef-washed title="section 8.1">8.1</a>
20992130
<li>width, <a href=#descdef-width title="section 4.1">4.1</a>
21002131
</ul></div>
@@ -2112,6 +2143,7 @@ <h2 class="no-num no-ref heading settled heading" id=property-index><span class=
21122143
<tr><th scope-row=""><a data-property="">resolution</a><td>&lt;resolution&gt;<td><td>range
21132144
<tr><th scope-row=""><a data-property="">scan</a><td>interlace | progressive<td><td>discrete
21142145
<tr><th scope-row=""><a data-property="">grid</a><td>&lt;mq-boolean&gt;<td><td>discrete
2146+
<tr><th scope-row=""><a data-property="">updates</a><td>none | slow | normal<td><td>discrete
21152147
<tr><th scope-row=""><a data-property="">color</a><td>&lt;integer&gt;<td><td>range
21162148
<tr><th scope-row=""><a data-property="">color-index</a><td>&lt;integer&gt;<td><td>range
21172149
<tr><th scope-row=""><a data-property="">monochrome</a><td>&lt;integer&gt;<td><td>range

mediaqueries/Overview.src.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,6 +1046,39 @@ <h3 id="grid">
10461046
</pre>
10471047
</div>
10481048

1049+
<h3 id="updates">Updates</h3>
1050+
<pre class='descdef mq'>
1051+
Name: updates
1052+
Value: none | slow | normal
1053+
For: @media
1054+
Type: discrete
1055+
</pre>
1056+
1057+
The 'updates' media feature is used to query the ability of the output device to modify the apearance of content once it has been rendered. It accepts the following values:
1058+
1059+
<dl dfn-type=value dfn-for="@media/updates">
1060+
<dt><dfn>none</dfn>
1061+
<dd>
1062+
Once it has been rendered, the layout can no longer be updated.
1063+
Example: documents printed on paper.
1064+
1065+
<dt><dfn>slow</dfn>
1066+
<dd>
1067+
The layout may change dynamically according to the usual rules
1068+
of CSS, but the output device is not able to render or display
1069+
changes quickly enough for them to be percieved as a smooth
1070+
animation. Example: E-ink screens or severely under-powered
1071+
devices.
1072+
1073+
<dt><dfn>normal</dfn>
1074+
<dd>
1075+
The layout may change dynamically according to the usual rules
1076+
of CSS, and the output device is not unusually constrained in
1077+
speed. Example: computer screens.
1078+
</dl>
1079+
1080+
1081+
10491082

10501083
<h2 id='mf-colors'>
10511084
Color Media Features</h2>

0 commit comments

Comments
 (0)