Skip to content

Commit 3a19a92

Browse files
committed
[css-content] Tighten up a11y wording, clean up link targets
1 parent d77c8d5 commit 3a19a92

File tree

1 file changed

+40
-38
lines changed

1 file changed

+40
-38
lines changed

css-content/Overview.bs

Lines changed: 40 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<h1>CSS Generated Content Module Level 3</h1>
22
<pre class='metadata'>
33
Status: WD
4-
Date: 2016-05-31
4+
Date: 2016-06-02
55
Work Status: Exploring
66
Shortname: css-content
77
Level: 3
@@ -16,7 +16,7 @@ Former Editor: Ian Hickson, Google, ian@hixie.ch
1616
Ignored Terms: <datetime>, leader(), string(), target-counter(), target-counters(), target-text()
1717
Abstract: This CSS3 Module describes how to insert content in a document.
1818
Link Defaults: css21 (type) <uri>, css-display-3 (value) inline
19-
Warning: Not Ready
19+
Status Text: This is a very rough draft, and is not ready for implementation.
2020
</pre>
2121

2222

@@ -34,7 +34,7 @@ Warning: Not Ready
3434
!
3535
!-->
3636

37-
<h2 class="no-num" id="introduction">
37+
<h2 class="no-num" id="intro">
3838
Introduction
3939
</h2>
4040

@@ -77,7 +77,7 @@ figure:not([alt]) { content: attr(href, url), contents; }
7777

7878

7979

80-
<h2 id="inserting-replacing-content">Inserting and replacing content with the 'content' property</h2>
80+
<h2 id="content-property">Inserting and replacing content with the 'content' property</h2>
8181

8282
<pre class='propdef'>
8383
Name: content
@@ -120,30 +120,36 @@ See sections below for details on each of these.
120120

121121
</dl>
122122

123-
Issue: should the contents keyword be replaced with ''content()''
123+
Issue: Should the contents keyword be replaced with ''content()''?
124124

125125

126126

127127

128128

129-
<p id="replacedContent">If the computed value of the part of the 'content' property that ends up being used is a single URI, then the element or pseudo-element is a replaced element. The box model defines different rules for the layout of replaced elements than normal elements. Replaced elements do not have '::before' and '::after' pseudo-elements; the 'content' property in the case of replaced content replaces the entire contents of the element's box.
129+
<p id="replaced">If the computed value of the part of the 'content' property that ends up being used is a single URI, then the element or pseudo-element is a replaced element. The box model defines different rules for the layout of replaced elements than normal elements. Replaced elements do not have '::before' and '::after' pseudo-elements; the 'content' property in the case of replaced content replaces the entire contents of the element's box.
130130

131-
<h3 id="accessibility-of-generated-content">
131+
<h3 id="accessibility">
132132
Accessibility of Generated Content</h3>
133133

134-
Generated content should be searchable, selectable, and available to assistive technologies.
134+
Generated content should be searchable, selectable, and available to assistive technologies.
135+
The 'content' property applies to speech
136+
and generated content must be rendered for speech output. [[!CSS3-SPEECH]]
135137

136138
Issue: Start work on an AAM for CSS.
137139

138-
Generated content often needs alternative text.
139-
If the value of the content property is a string,
140-
this string should be used by assistive technology
141-
unless an alternative is provided. This allows
142-
purely decorative text to be ignored by providing
143-
the empty string as alternative text.
144-
Appropriate alternative text must be provided for
145-
images inserted via the content property as well.
140+
<h3 id="alt">
141+
Alternative Text for Speech</h3>
146142

143+
Content intended for visual media sometimes needs alternative text for speech output.
144+
The 'content' property thus accepts alternative text
145+
to be specified after a slash (''/'') after the last <<content-list>>.
146+
If such alternative text is provided,
147+
it must be used for speech output instead.
148+
149+
This allows, for example, purely decorative text to be elided in speech output
150+
(by providing the empty string as alternative text),
151+
and allows authors to provide more readable alternatives
152+
to images, icons, or text-encoded symbols.
147153

148154
<!--examples from CSS-PSEUDO, redone with our new syntax-->
149155

@@ -173,19 +179,15 @@ Accessibility of Generated Content</h3>
173179

174180
<!--end copy from CSS-PSEUDO-->
175181

176-
177-
178-
179-
180-
<h2 id="content-functions">
182+
<h2 id="content-values">
181183
Content Values and Functions</h2>
182184

183185
The 'content' property can be used to add many different types of content to a document,
184186
including images, strings, the values of counters, and the text value of elements.
185187
In this section we enumerate the possibilities.
186188

187189

188-
<h3 id="content-string">
190+
<h3 id="strings">
189191
String</h3>
190192

191193
<dl dfn-for="content, <content-list>" dfn-type=value>
@@ -229,15 +231,15 @@ URI</h3>
229231

230232
<p class="issue">There appears to be some change from [[CSS21]] which says, "If the user agent cannot display the resource it must either leave it out as if it were not specified or display some indication that the resource cannot be displayed." Are we now saying that a user agent cannot display a missing image graphic in this situation?
231233

232-
When a URI is used as replaced content, it <a href="#replacedContent">affects the generation</a> of ''::before'' and ''::after'' pseudo-elements.
234+
When a URI is used as replaced content, it <a href="#replaced">affects the generation</a> of ''::before'' and ''::after'' pseudo-elements.
233235

234236

235237

236238

237239

238240

239241

240-
<h3 id="content-contents">
242+
<h3 id="contents">
241243
contents</h3>
242244

243245
<dl dfn-for="content, <content-list>" dfn-type=value>
@@ -297,7 +299,7 @@ Quotes</h3>
297299
HTML has long had the <code>q</code> element, used to delimit quotations. The ''quotes'' property, in conjunction with the various *-quote values of the 'content' property, can be used to properly style such quotations.
298300

299301

300-
<h4 id="specifying-quotes">
302+
<h4 id="quotes-property">
301303
Specifying quotes with the 'quotes' property</h4>
302304

303305

@@ -331,7 +333,7 @@ This property specifies quotation marks for any number of embedded quotations. V
331333
</dl>
332334

333335

334-
<h4 id="inserting-quotes">
336+
<h4 id="quote-values">
335337
The *-quote values of the content property
336338
</h4>
337339

@@ -347,10 +349,10 @@ The *-quote values of the content property
347349

348350
<dt><dfn>open-quote</dfn>
349351
<dt><dfn>close-quote</dfn>
350-
<dd>These values are replaced by the appropriate string from the 'quotes' property, and increments (decrements) the level of nesting for quotes. See [[#specifying-quotes]] for more information.
352+
<dd>These values are replaced by the appropriate string from the 'quotes' property, and increments (decrements) the level of nesting for quotes. See [[#quotes-property]] for more information.
351353
<dt><dfn>no-open-quote</dfn>
352354
<dt><dfn>no-close-quote</dfn>
353-
<dd>Inserts nothing (as in ''content/none''), but increments (decrements) the level of nesting for quotes. See [[#specifying-quotes]] for more information.
355+
<dd>Inserts nothing (as in ''content/none''), but increments (decrements) the level of nesting for quotes. See [[#quotes-property]] for more information.
354356

355357
</dl>
356358

@@ -477,7 +479,7 @@ Leaders</h3>
477479

478480
A leader, sometimes known as a tab leader or a dot leader, is a repeating pattern used to visually connect content across horizontal spaces. They are most commonly used in tables of contents, between titles and page numbers. The ''leader()'' function, as a value for the content property, is used to create leaders in CSS. This function takes a string (the leader string), which describes the repeating pattern for the leader.
479481

480-
<h4 id="content-leader-function">
482+
<h4 id="leader-function">
481483
The ''leader()'' function
482484
</h4>
483485

@@ -533,7 +535,7 @@ The ''leader()'' function
533535
<p class="issue">
534536
Do leaders depend on the assumption that the content after the leader is right-aligned (end-aligned)?
535537

536-
<h4 id="rendering-leaders">
538+
<h4 id="leader-rules">
537539
Rendering leaders
538540
</h4>
539541

@@ -548,7 +550,7 @@ Rendering leaders
548550
<li>A leader only appears on a single line, even if the before content and after content are on different lines.
549551
<li>A leader can’t be the only thing on a line.
550552
</ol>
551-
<h4 id="procedure-leader">
553+
<h4 id="leader-alignment">
552554
Procedure for rendering leaders
553555
</h4>
554556
<ol>
@@ -736,10 +738,10 @@ a::after { content: ", in the chapter entitled " target-text(attr(href url)) }
736738

737739

738740

739-
<h3 id="named-strings-heading">
741+
<h3 id="named-strings">
740742
Named strings</h3>
741743

742-
This section introduces <dfn>named strings</dfn>, which are the textual equivalent of counters and which have a distinct namespace from counters. Named strings follow the same nesting rules as counters. The 'string-set' property accepts values similar to the 'content' property, including the extraction of the current value of counters.
744+
This section introduces <dfn lt="named string">named strings</dfn>, which are the textual equivalent of counters and which have a distinct namespace from counters. Named strings follow the same nesting rules as counters. The 'string-set' property accepts values similar to the 'content' property, including the extraction of the current value of counters.
743745

744746
Named strings are a convenient way to pull metadata out of the document for insertion into headers and footers. In HTML, for example, META elements contained in the document HEAD can set the value of named strings. In conjunction with attribute selectors, this can be a powerful mechanism:
745747

@@ -770,7 +772,7 @@ head &gt; title { string-set: title contents; }
770772

771773

772774

773-
<h4 id="setting-named-strings-the-string-set-pro">
775+
<h4 id="string-set">
774776
The string-set property
775777
</h4>
776778

@@ -819,7 +821,7 @@ The 'string-set' property copies the text content of an element into a ''named s
819821
</div>
820822

821823

822-
<h4 id="using-named-strings">The ''string()'' function</h4>
824+
<h4 id="string-function">The ''string()'' function</h4>
823825

824826
<pre class="prod">
825827
<dfn>string()</dfn> = string( <<custom-ident>> , [ first | start | last | first-except ]? )
@@ -899,7 +901,7 @@ The content values of named strings are assigned at the point when the content b
899901

900902

901903

902-
<h4 id="content-function-header">The ''content()'' function</h4>
904+
<h4 id="content-function">The ''content()'' function</h4>
903905

904906
<pre class="prod">
905907
<dfn>content()</dfn> = content( [text | before | after | first-letter | marker ]? )
@@ -983,7 +985,7 @@ Automatic counters and numbering: the 'counter-increment' and 'counter-reset' pr
983985

984986

985987

986-
<h2 id="css-bookmarks">
988+
<h2 id="bookmark-generation">
987989
Bookmarks
988990
</h2>
989991
Some document formats, most notably PDF, allow the use of <dfn>bookmarks</dfn> as an aid to navigation. Bookmarks provide a hierarchy of links to document elements, as well as text to label the links. A bookmark has three properties: 'bookmark-level', 'bookmark-label', and 'bookmark-state'.
@@ -1120,7 +1122,7 @@ Issue: is the initial bookmark state, or the bookmark state updated by the UA as
11201122

11211123
* Dave Cramer added as co-editor. Ian Hickson and Håkon Wium Lie are now former editors.
11221124

1123-
<h2 class="no-num" id="acknowledgments">Acknowledgments</h2>
1125+
<h2 class="no-num" id="acknowledgements">Acknowledgements</h2>
11241126

11251127
Stuart Ballard, David Baron, Bert Bos, and <span lang="tr">Tantek Çelik</span> provided invaluable suggestions used in this
11261128
specification.

0 commit comments

Comments
 (0)