We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d528c7c commit 36f3ad3Copy full SHA for 36f3ad3
css-values-5/Overview.bs
@@ -1716,9 +1716,11 @@ Attribute Value Substitution: the ''attr()'' notation</h4>
1716
Let |fallback| be the <<declaration-value>>? argument specified in the function,
1717
or the [=guaranteed-invalid value=] if it was omitted.
1718
1719
- 2. If there is no attribute named |attr name| on |el|,
1720
- return the [=guaranteed-invalid value=] and |fallback|.
1721
- Otherwise, let |attr value| be that attribute's value.
+ 2. Let |attr value| be the value of the |attr name| attribute on |el|.
+
+ If such an attribute does not exist,
1722
+ return an empty CSS string if |syntax| is null,
1723
+ or the [=guaranteed-invalid value=] and |fallback| otherwise.
1724
1725
3. If |syntax| is null,
1726
return a CSS <<string>>
0 commit comments