You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
non-inheritable properties take their <a>initial values</a> as usual.
1148
1148
[[CSS-CASCADE-4]]
1149
1149
1150
+
<h3 id=partlike>
1151
+
Part-Like Pseudo-Elements</h3>
1152
+
1153
+
A subset of [=tree-abiding pseudo-elements=],
1154
+
the <dfn>part-like pseudo-elements</dfn>,
1155
+
have slightly stronger requirements:
1156
+
they act as if they have a well-defined location in the document tree.
1157
+
This enables them to interact with some other platform features
1158
+
as if they were real elements.
1159
+
1160
+
Unless otherwise specified,
1161
+
any CSS property that applies to elements
1162
+
applies to [=part-like pseudo-elements=].
1163
+
1150
1164
<h3 id="generated-content">
1151
1165
Generated Content Pseudo-elements: ''::before'' and ''::after''</h3>
1152
1166
@@ -1165,10 +1179,9 @@ Generated Content Pseudo-elements: ''::before'' and ''::after''</h3>
1165
1179
immediately after the <a>originating element</a>'s actual content.
1166
1180
</dl>
1167
1181
1168
-
These pseudo-elements can be styled
1169
-
exactly like any normal document-sourced element in the document tree;
1170
-
all properties that apply to a normal element
1171
-
likewise apply to ''::before'' and ''::after''.
1182
+
Both ''::before'' and ''::after''
1183
+
are [=part-like pseudo-elements=];
1184
+
there is no restriction on what properties apply to them.
1172
1185
1173
1186
<div class="example">
1174
1187
For example, the following rule inserts the string “Note: ”
@@ -1206,7 +1219,9 @@ List Markers: the ''::marker'' pseudo-element</h3>
1206
1219
1207
1220
ISSUE: Interaction of ''::marker'' and ''::first-line'' is currently under discussion in <a href='https://github.com/w3c/csswg-drafts/issues/4506'>Issue 4506</a>.
1208
1221
1209
-
Only a limited set of properties can be used on the ''::marker'' pseudo-element.
1222
+
''::marker'' is a [=tree-abiding pseudo-element=],
1223
+
but not [=part-like pseudo-element|part-like=];
1224
+
only a limited set of properties can be used on the ''::marker'' pseudo-element.
1210
1225
This list is defined in [[css-lists-3#marker-properties]].
1211
1226
1212
1227
The ''::before::marker'' or ''::after::marker'' selectors
@@ -1229,6 +1244,7 @@ Placeholder Input: the ''::placeholder'' pseudo-element</h3>
1229
1244
For example, a date-input field
1230
1245
might have the placeholder text “YYYY/MM/DD”
1231
1246
to clarify that numeric dates are to be entered in year-month-day order.
1247
+
It is a [=tree-abiding pseudo-element=].
1232
1248
1233
1249
<div class="example">
1234
1250
For example, according to the semantics of [[HTML]]
@@ -1266,9 +1282,11 @@ Placeholder Input: the ''::placeholder'' pseudo-element</h3>
1266
1282
<h3 id="file-selector-button-pseudo">
1267
1283
File Selector Button: the ''::file-selector-button'' pseudo-element</h3>
1268
1284
1269
-
The <dfn>::file-selector-button</dfn> pseudo-element targets the ''<button>''
1270
-
inside an ''<input>'' element with <code>type=file</code>, if the UA
1271
-
renders such a button.
1285
+
The <dfn>::file-selector-button</dfn> pseudo-element
1286
+
targets the ''<button>''
1287
+
inside an ''<input>'' element with <code>type=file</code>,
1288
+
if the UA renders such a button.
1289
+
It is a [=part-like pseudo-element=].
1272
1290
1273
1291
There is no restriction on which properties apply to the
0 commit comments