Skip to content

Commit

Permalink
[css-pseudo-4] Clarify that all properties apply to ::before and ::af…
Browse files Browse the repository at this point in the history
…ter the same way they would to a normal element. #1861
  • Loading branch information
fantasai committed Sep 11, 2020
1 parent 228ec4f commit c90677e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion css-pseudo-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ Generated Content Pseudo-elements: ''::before'' and ''::after''</h3>
When their computed 'content' value is not ''content/none'',
these pseudo-elements generate boxes
as if they were immediate children of their <a>originating element</a>,
and can be styled exactly like any normal document-sourced element in the document tree.
with content as specified by 'content'.

<dl>
<dt><dfn>::before</dfn>
Expand All @@ -778,6 +778,11 @@ Generated Content Pseudo-elements: ''::before'' and ''::after''</h3>
immediately after the <a>originating element</a>'s actual content.
</dl>

These pseudo-elements can be styled
exactly like any normal document-sourced element in the document tree;
all properties that apply to a normal element
likewise apply to ''::before'' and ''::after''.

<div class="example">
For example, the following rule inserts the string “Note: ”
before the content of every <code>&lt;p></code> element
Expand Down

0 comments on commit c90677e

Please sign in to comment.