Skip to content

Commit 4b17bdc

Browse files
committed
Editorial tweak of an example.
1 parent 596cdc0 commit 4b17bdc

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

css-variables/Overview.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,8 @@ <h2 id=defining-variables><span class=secno>2. </span> Defining Variables
337337
<p>The preceding rule is equivalent to writing &lsquo;<code
338338
class=css>background-color: #06c;</code>&rsquo;, except that the variable
339339
name makes the origin of the color clearer, and if &lsquo;<code
340-
class=css>data(header-color)</code>&rsquo; is used elsewhere in the
341-
stylesheet, all of the uses can be updated at once by changing the
340+
class=css>data(header-color)</code>&rsquo; is used on other elements in
341+
the document, all of the uses can be updated at once by changing the
342342
&lsquo;<code class=property>data-header-color</code>&rsquo; property on
343343
the root element.</p>
344344
</div>

css-variables/Overview.src.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ <h2 id="defining-variables">
141141

142142
<pre>h1 { background-color: data(header-color); }</pre>
143143

144-
<p>The preceding rule is equivalent to writing ''background-color: #06c;'', except that the variable name makes the origin of the color clearer, and if ''data(header-color)'' is used elsewhere in the stylesheet, all of the uses can be updated at once by changing the 'data-header-color' property on the root element.</p>
144+
<p>The preceding rule is equivalent to writing ''background-color: #06c;'', except that the variable name makes the origin of the color clearer, and if ''data(header-color)'' is used on other elements in the document, all of the uses can be updated at once by changing the 'data-header-color' property on the root element.</p>
145145
</div>
146146

147147
<p>Data properties are ordinary properties, so they can be declared on any element, are resolved with the normal inheritance and cascade rules, can be made conditional with ''@media'' and other conditional rules, can be used in HTML's <code>style</code> attribute, can be read or set using the CSSOM, etc..</p>

0 commit comments

Comments
 (0)