Skip to content

Commit 9d3d5f6

Browse files
committed
Fix an example that changed.
1 parent 8b05a6a commit 9d3d5f6

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

css-variables/Overview.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,10 @@ <h2 id=defining-variables><span class=secno>2. </span> Defining Variables</h2>
336336
class=css>$foo</code>&rsquo;, respectively, as <a
337337
href="#invalid-variable"><i>invalid variables</i></a> instead of as the
338338
values in the declarations. If the last rule were removed, however, there
339-
would be no problem: both &lsquo;<code class=css>$foo</code>&rsquo; and
340-
&lsquo;<code class=css>$bar</code>&rsquo; would then be defined as the
341-
value &lsquo;<code class=css>red</code>&rsquo;.</p>
339+
would be no problem - &lsquo;<code class=css>$foo</code>&rsquo; would be
340+
defined as &lsquo;<code class=css>red</code>&rsquo;, while &lsquo;<code
341+
class=css>$bar</code>&rsquo; would be defined as &lsquo;<code
342+
class=css>linear-gradient(transparent, red)</code>&rsquo;.</p>
342343
</div>
343344

344345
<p>Before they are defined, all variables are <a

css-variables/Overview.src.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ <h2 id="defining-variables">
145145
@var $bar linear-gradient(transparent, $foo);
146146
@var $foo $bar;</pre>
147147

148-
<p>The last two declarations create the cycle, and so they define ''$bar'' and ''$foo'', respectively, as <i>invalid variables</i> instead of as the values in the declarations. If the last rule were removed, however, there would be no problem: both ''$foo'' and ''$bar'' would then be defined as the value ''red''.</p>
148+
<p>The last two declarations create the cycle, and so they define ''$bar'' and ''$foo'', respectively, as <i>invalid variables</i> instead of as the values in the declarations. If the last rule were removed, however, there would be no problem - ''$foo'' would be defined as ''red'', while ''$bar'' would be defined as ''linear-gradient(transparent, red)''.</p>
149149
</div>
150150

151151
<p>Before they are defined, all variables are <i>invalid variables</i>.</p>

0 commit comments

Comments
 (0)