Skip to content

Commit c68c955

Browse files
committed
[css-content] expand intro to section 2
1 parent 15fe025 commit c68c955

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

css-content/Overview.bs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ Issue: should the contents keyword be replaced with ''content()''
135135
<h2 id="content-functions">
136136
Content Values and Functions</h2>
137137

138-
There are many ways of adding content to a document via the ''content'' property. This section describes them.
138+
The ''content'' property can be used to add many different types of content to a document,
139+
including images, strings, the values of counters, and the text value of elements.
140+
In this section we enumerate the possibilities.
139141

140142
Issue: write better introduction to this section
141143

@@ -722,7 +724,7 @@ a::after { content: ", in the chapter entitled " target-text(attr(href url)) }
722724
<h3 id="named-strings-heading">
723725
Named strings</h3>
724726

725-
CSS3 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.
727+
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.
726728

727729
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:
728730

0 commit comments

Comments
 (0)