Skip to content

Commit

Permalink
Removed redundant parentheses (#2904)
Browse files Browse the repository at this point in the history
Removed reduntant parentheses  from CSS attr() function reference
  • Loading branch information
VictorWesterlund committed Mar 7, 2021
1 parent fddeceb commit 1ba2b0a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h2 id="JavaScript_access">JavaScript access</h2>

<h2 id="CSS_access">CSS access</h2>

<p>Note that, as data attributes are plain HTML attributes, you can even access them from <a href="/en-US/docs/Web/CSS">CSS</a>. For example to show the parent data on the article you can use <a href="/en-US/docs/Web/CSS/content">generated content</a> in CSS with the {{cssxref("attr()")}} function:</p>
<p>Note that, as data attributes are plain HTML attributes, you can even access them from <a href="/en-US/docs/Web/CSS">CSS</a>. For example to show the parent data on the article you can use <a href="/en-US/docs/Web/CSS/content">generated content</a> in CSS with the <a href="/en-US/docs/Web/CSS/attr()"><code>attr()</code></a> function:</p>

<pre class="brush: css">article::before {
content: attr(data-parent);
Expand Down

0 comments on commit 1ba2b0a

Please sign in to comment.