Skip to content

Commit 032ab28

Browse files
committed
Add note about accessibility as requested by WAI-PF. Improve wording on existing note about a11y and 'order'.
--HG-- extra : rebase_source : 975cedfe5c0825d167568373a4cca2a48322bc21
1 parent a6d97eb commit 032ab28

2 files changed

Lines changed: 86 additions & 40 deletions

File tree

css3-flexbox/Overview.html

Lines changed: 64 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,11 @@
206206

207207
<h1 id=head-box-flexible>CSS Flexible Box Layout Module</h1>
208208

209-
<h2 class="no-num no-toc" id=w3c-working>Editor's Draft, 7 August 2012</h2>
209+
<h2 class="no-num no-toc" id=w3c-working>Editor's Draft, 8 August 2012</h2>
210210

211211
<dl>
212212
<dt>This version:
213-
<!--<dd><a href="http://www.w3.org/TR/2012/ED-css3-flexbox-20120807/">http://www.w3.org/TR/2012/WD-css3-flexbox-20120807/</a>-->
213+
<!--<dd><a href="http://www.w3.org/TR/2012/ED-css3-flexbox-20120808/">http://www.w3.org/TR/2012/WD-css3-flexbox-20120808/</a>-->
214214

215215

216216
<dd><a
@@ -1301,6 +1301,19 @@ <h2 id=ordering-and-orientation><span class=secno>5. </span> Ordering and
13011301
class=property>flex-wrap</code></a>’, and ‘<a href="#order"><code
13021302
class=property>order</code></a>’ properties.
13031303

1304+
<p class=note> The reordering capabilities of flex layout intentionally
1305+
affect <em>only the visual rendering</em>, leaving speech order and
1306+
navigation based on the source order. This allows authors to manipulate
1307+
the visual presentation while leaving the source order intact for non-CSS
1308+
UAs and for linear models such as speech and sequential navigation. See <a
1309+
href="#order-accessibility">Reordering and Accessibility</a> and the <a
1310+
href="#overview">Flex Layout Overview</a> for examples that use this
1311+
dichotomy to improve accessibility.
1312+
1313+
<p> Authors <em>must not</em> use these techniques as a substitute for
1314+
correct source ordering, as that can ruin the accessibility of the
1315+
document.
1316+
13041317
<h3 id=flex-direction-property><span class=secno>5.1. </span> Flex Flow
13051318
Direction: the ‘<a href="#flex-direction"><code
13061319
class=property>flex-direction</code></a>’ property</h3>
@@ -1723,8 +1736,8 @@ <h4 id=order-accessibility><span class=secno>5.4.1. </span>Reordering and
17231736
Accessibility</h4>
17241737

17251738
<p> The ‘<a href="#order"><code class=property>order</code></a>
1726-
property <em>must not</em> affect ordering in non-visual media (such as <a
1727-
href="http://www.w3.org/TR/css3-speech/">speech</a>). Similarly, ‘<a
1739+
property <em>does not</em> affect ordering in non-visual media (such as <a
1740+
href="http://www.w3.org/TR/css3-speech/">speech</a>). Likewise, ‘<a
17281741
href="#order"><code class=property>order</code></a>’ does not affect the
17291742
default traversal order of sequential navigation modes (such as cycling
17301743
through links, see e.g. ‘<code class=property>nav-index</code><a
@@ -1737,10 +1750,11 @@ <h4 id=order-accessibility><span class=secno>5.4.1. </span>Reordering and
17371750
class=property>order</code></a>’ to perform logical reordering are
17381751
non-conforming.
17391752

1740-
<p class=note> This is so non-visual media and non-CSS UAs, which typically
1741-
present content linearly, can be catered to with a logical source order,
1753+
<p class=note> This is so that non-visual media and non-CSS UAs, which
1754+
typically present content linearly, can rely on a logical source order,
17421755
while ‘<a href="#order"><code class=property>order</code></a>’ is used
1743-
to rearrange the visual order.
1756+
to tailor the visual order. (Since visual perception is two-dimensional
1757+
and non-linear, the desired visual order is not always logical.)
17441758

17451759
<div class=example>
17461760
<p> Many web pages have a similar shape in the markup, with a header on
@@ -4000,7 +4014,7 @@ <h2 class=no-num id=property>Property index</h2>
40004014

40014015
<td>no
40024016

4003-
<td>specified value
4017+
<td>
40044018

40054019
<td>visual
40064020

@@ -4015,7 +4029,7 @@ <h2 class=no-num id=property>Property index</h2>
40154029

40164030
<td>no
40174031

4018-
<td>specified value
4032+
<td>
40194033

40204034
<td>visual
40214035

@@ -4030,31 +4044,24 @@ <h2 class=no-num id=property>Property index</h2>
40304044

40314045
<td>no
40324046

4033-
<td>‘auto’ computes to parent's ‘align-items’; otherwise as
4034-
specified
4047+
<td>
40354048

40364049
<td>visual
40374050

40384051
<tr>
40394052
<th><span class=property>display</span>
40404053

4041-
<td>flex | inline-flex
4042-
4043-
<tr>
4044-
<th><a class=property href="#flex">flex</a>
4045-
4046-
<td>none | [ &lt;&apos;flex-grow&apos;> &lt;&apos;flex-shrink&apos;>? ||
4047-
&lt;&apos;flex-basis&apos;> ]
4054+
<td>
40484055

4049-
<td>see individual properties
4056+
<td>
40504057

4051-
<td>flex items
4058+
<td>
40524059

4053-
<td>see individual properties
4060+
<td>
40544061

4055-
<td>see individual properties
4062+
<td>
40564063

4057-
<td>visual
4064+
<td>
40584065

40594066
<tr>
40604067
<th><a class=property href="#flex-basis-propdef">flex-basis</a>
@@ -4067,10 +4074,10 @@ <h2 class=no-num id=property>Property index</h2>
40674074

40684075
<td>no
40694076

4070-
<td>as specified, with lengths made absolute
4071-
40724077
<td>relative to the flex container's inner main size
40734078

4079+
<td>visual
4080+
40744081
<tr>
40754082
<th><a class=property href="#flex-direction">flex-direction</a>
40764083

@@ -4082,7 +4089,7 @@ <h2 class=no-num id=property>Property index</h2>
40824089

40834090
<td>no
40844091

4085-
<td>specified value
4092+
<td>
40864093

40874094
<td>visual
40884095

@@ -4097,7 +4104,7 @@ <h2 class=no-num id=property>Property index</h2>
40974104

40984105
<td>see individual properties
40994106

4100-
<td>see individual properties
4107+
<td>
41014108

41024109
<td>visual
41034110

@@ -4112,7 +4119,7 @@ <h2 class=no-num id=property>Property index</h2>
41124119

41134120
<td>no
41144121

4115-
<td>specified value
4122+
<td>
41164123

41174124
<td>visual
41184125

@@ -4127,7 +4134,23 @@ <h2 class=no-num id=property>Property index</h2>
41274134

41284135
<td>no
41294136

4130-
<td>specified value
4137+
<td>
4138+
4139+
<td>visual
4140+
4141+
<tr>
4142+
<th><a class=property href="#flex">flex</a>
4143+
4144+
<td>none | [ &lt;&apos;flex-grow&apos;> &lt;&apos;flex-shrink&apos;>? ||
4145+
&lt;&apos;flex-basis&apos;> ]
4146+
4147+
<td>see individual properties
4148+
4149+
<td>flex items
4150+
4151+
<td>see individual properties
4152+
4153+
<td>
41314154

41324155
<td>visual
41334156

@@ -4142,7 +4165,7 @@ <h2 class=no-num id=property>Property index</h2>
41424165

41434166
<td>no
41444167

4145-
<td>specified value
4168+
<td>
41464169

41474170
<td>visual
41484171

@@ -4157,19 +4180,25 @@ <h2 class=no-num id=property>Property index</h2>
41574180

41584181
<td>no
41594182

4160-
<td>specified value
4183+
<td>
41614184

41624185
<td>visual
41634186

41644187
<tr>
41654188
<th><span class=property>min-width</span>, <span
41664189
class=property>min-height</span>
41674190

4168-
<td>auto
4191+
<td>
41694192

4170-
<td>auto
4193+
<td>
41714194

4172-
<td>the percentage as specified or the absolute length or a keyword
4195+
<td>
4196+
4197+
<td>
4198+
4199+
<td>
4200+
4201+
<td>
41734202

41744203
<tr>
41754204
<th><a class=property href="#order">order</a>
@@ -4182,7 +4211,7 @@ <h2 class=no-num id=property>Property index</h2>
41824211

41834212
<td>no
41844213

4185-
<td>specified value
4214+
<td>
41864215

41874216
<td>visual
41884217
</table>

css3-flexbox/Overview.src.html

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,21 @@ <h2>
940940
such as hacks using the 'float' and 'clear' properties.
941941
This functionality is exposed through the 'flex-direction', 'flex-wrap', and 'order' properties.
942942

943+
<p class="note">
944+
The reordering capabilities of flex layout intentionally affect
945+
<em>only the visual rendering</em>,
946+
leaving speech order and navigation based on the source order.
947+
This allows authors to manipulate the visual presentation
948+
while leaving the source order intact for non-CSS UAs and for
949+
linear models such as speech and sequential navigation.
950+
See <a href="#order-accessibility">Reordering and Accessibility</a>
951+
and the <a href="#overview">Flex Layout Overview</a> for examples
952+
that use this dichotomy to improve accessibility.
953+
954+
<p>
955+
Authors <em>must not</em> use these techniques as a substitute for correct source ordering,
956+
as that can ruin the accessibility of the document.
957+
943958
<h3 id='flex-direction-property'>
944959
Flex Flow Direction: the 'flex-direction' property</h3>
945960

@@ -1235,18 +1250,20 @@ <h3 id='order-property'>
12351250
<h4 id="order-accessibility">Reordering and Accessibility</h4>
12361251

12371252
<p>
1238-
The 'order' property <em>must not</em> affect ordering in non-visual media
1253+
The 'order' property <em>does not</em> affect ordering in non-visual media
12391254
(such as <a href="http://www.w3.org/TR/css3-speech/">speech</a>).
1240-
Similarly, 'order' does not affect
1255+
Likewise, 'order' does not affect
12411256
the default traversal order of sequential navigation modes
12421257
(such as cycling through links, see e.g. 'nav-index' [[CSS3UI]] or <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html#sequential-focus-navigation-and-the-tabindex-attribute"><code>tabindex</code></a> [[HTML40]]).
12431258
Authors <em>must</em> use 'order' only for visual, not logical, reordering of content;
12441259
style sheets that use 'order' to perform logical reordering are non-conforming.
12451260
<p class='note'>
1246-
This is so non-visual media and non-CSS UAs,
1261+
This is so that non-visual media and non-CSS UAs,
12471262
which typically present content linearly,
1248-
can be catered to with a logical source order,
1249-
while 'order' is used to rearrange the visual order.
1263+
can rely on a logical source order,
1264+
while 'order' is used to tailor the visual order.
1265+
(Since visual perception is two-dimensional and non-linear,
1266+
the desired visual order is not always logical.)
12501267

12511268
<div class='example'>
12521269
<p>

0 commit comments

Comments
 (0)