Skip to content

Commit d4a0972

Browse files
committed
Make the paragraph about the return type of attr() changing into a note.
1 parent 4dde5d6 commit d4a0972

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

css3-values/Overview.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1611,20 +1611,20 @@ <h3 id=attr-notation><span class=secno>8.3. </span> Attribute References:
16111611
returns the value of the attribute on the pseudo-element's originating
16121612
element.
16131613

1614-
<p>In CSS2.1 <a href="#CSS21" rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a>,
1615-
the &lsquo;<a href="#attr"><code class=css>attr()</code></a>&rsquo;
1616-
expression always returns a string. In CSS3, the &lsquo;<a
1617-
href="#attr"><code class=css>attr()</code></a>&rsquo; expression can
1618-
return many different types. The &lsquo;<a href="#attr"><code
1619-
class=css>attr()</code></a>&rsquo; expression cannot return everything,
1620-
for example it cannot do counters, named strings, quotes, or keyword
1621-
values such as &lsquo;<code class=css>auto</code>&rsquo;, &lsquo;<code
1622-
class=css>nowrap</code>&rsquo;, or &lsquo;<code
1623-
class=css>baseline</code>&rsquo;. This is intentional, as the intent of
1624-
the &lsquo;<a href="#attr"><code class=css>attr()</code></a>&rsquo;
1625-
expression is not to make it possible to describe a presentational
1626-
language's formatting using CSS, but to enable CSS to take semantic data
1627-
into account.
1614+
<p class=note>In CSS2.1 <a href="#CSS21"
1615+
rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a>, the &lsquo;<a
1616+
href="#attr"><code class=css>attr()</code></a>&rsquo; expression always
1617+
returns a string. In CSS3, the &lsquo;<a href="#attr"><code
1618+
class=css>attr()</code></a>&rsquo; expression can return many different
1619+
types. The &lsquo;<a href="#attr"><code class=css>attr()</code></a>&rsquo;
1620+
expression cannot return everything, for example it cannot do counters,
1621+
named strings, quotes, or keyword values such as &lsquo;<code
1622+
class=css>auto</code>&rsquo;, &lsquo;<code class=css>nowrap</code>&rsquo;,
1623+
or &lsquo;<code class=css>baseline</code>&rsquo;. This is intentional, as
1624+
the intent of the &lsquo;<a href="#attr"><code
1625+
class=css>attr()</code></a>&rsquo; expression is not to make it possible
1626+
to describe a presentational language's formatting using CSS, but to
1627+
enable CSS to take semantic data into account.
16281628

16291629
<p>The new syntax for the &lsquo;<a href="#attr"><code
16301630
class=css>attr()</code></a>&rsquo; expression is:

css3-values/Overview.src.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ <h3 id="attr-notation">
11251125
It returns the value of an attribute on the element.
11261126
If used on a pseudo-element, it returns the value of the attribute on the pseudo-element's originating element.
11271127

1128-
<p>In CSS2.1 [[!CSS21]], the ''attr()'' expression always returns a string.
1128+
<p class='note'>In CSS2.1 [[!CSS21]], the ''attr()'' expression always returns a string.
11291129
In CSS3, the ''attr()'' expression can return many different types. The
11301130
''attr()'' expression cannot return everything, for example it cannot
11311131
do counters, named strings, quotes, or keyword values such as ''auto'',

0 commit comments

Comments
 (0)