@@ -1163,19 +1163,24 @@ Precedence of Non-CSS Presentational Hints</h3>
1163
1163
The UA may choose to honor presentational hints in a source document's markup,
1164
1164
for example the <code> bgcolor</code> attribute or <{s}> element in [[HTML]] .
1165
1165
All document language-based styling must be translated to corresponding CSS rules
1166
- and either enter the cascade as [=UA-origin=] rules or
1167
- be treated as [=author-origin=] rules with a specificity of zero
1168
- placed at the start of the [=author style sheet=] .
1166
+ and enter the cascade as rules in either
1167
+ the [=UA-origin=] or a special-purpose <dfn>author presentational hint origin</dfn>
1168
+ between the regular [=user origin=] and the [=author origin=] .
1169
+ For the purpose of [=cascading=]
1170
+ this [=author presentational hint origin=] is treated as an independent [=origin=] ,
1171
+ but for the purpose of the ''revert'' keyword
1172
+ it is considered part of the [=author origin=] .
1173
+
1169
1174
A document language may define whether such a presentational hint
1170
1175
enters the [=cascade=] as [=UA-origin=] or [=author-origin=] ;
1171
1176
if so, the UA must behave accordingly.
1172
- For example, [[SVG11]] maps its presentation attributes into the author level .
1177
+ For example, [[SVG11]] maps its presentation attributes into the [= author origin=] .
1173
1178
1174
1179
Note: Presentational hints entering the [=cascade=] as [=UA-origin=] rules
1175
1180
can be overridden by [=author-origin=] or [=user-origin=] styles.
1176
- Presentational hints entering the cascade as [=author- origin=] rules
1181
+ Presentational hints entering the cascade as [=author presentational hint origin=] rules
1177
1182
can be overridden by [=author-origin=] styles,
1178
- but not by non-important [=user-origin=] styles.
1183
+ but not by non-[= important=] [=user-origin=] styles.
1179
1184
Host languages should choose the appropriate origin for presentational hints
1180
1185
with these considerations in mind.
1181
1186
@@ -1311,6 +1316,17 @@ Changes</h2>
1311
1316
<h3 id="changes-2018">
1312
1317
Changes Since the 28 August 2018 Candidate Recommendation</h3>
1313
1318
1319
+ Non-trivial changes since the <a href="https://www.w3.org/TR/2021/WD-css-cascade-4-20210319/">19 March 2021 Working Draft</a> include:
1320
+
1321
+ <ul class=non-normative>
1322
+ <li id="change-2021-preshint-origin">
1323
+ Defined [=author presentational hint origin=] to handle author-origin presentational hints,
1324
+ instead of relying on zero-specificity and source order,
1325
+ to correctly define their interaction with the [=encapsulation context=]
1326
+ aspect of the cascade.
1327
+ (<a href="https://github.com/w3c/csswg-drafts/issues/6659">Issue 66749</a> )
1328
+ </ul>
1329
+
1314
1330
Non-trivial changes since the <a href="https://www.w3.org/TR/2020/WD-css-cascade-4-20200818/">18 August 2020 Working Draft</a> include:
1315
1331
1316
1332
<ul class=non-normative>
0 commit comments