Skip to content

Commit c90677e

Browse files
committed
[css-pseudo-4] Clarify that all properties apply to ::before and ::after the same way they would to a normal element. #1861
1 parent 228ec4f commit c90677e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

css-pseudo-4/Overview.bs

+6-1
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ Generated Content Pseudo-elements: ''::before'' and ''::after''</h3>
766766
When their computed 'content' value is not ''content/none'',
767767
these pseudo-elements generate boxes
768768
as if they were immediate children of their <a>originating element</a>,
769-
and can be styled exactly like any normal document-sourced element in the document tree.
769+
with content as specified by 'content'.
770770

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

781+
These pseudo-elements can be styled
782+
exactly like any normal document-sourced element in the document tree;
783+
all properties that apply to a normal element
784+
likewise apply to ''::before'' and ''::after''.
785+
781786
<div class="example">
782787
For example, the following rule inserts the string “Note: ”
783788
before the content of every <code>&lt;p></code> element

0 commit comments

Comments
 (0)