File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -1190,7 +1190,9 @@ Order of Operations</h4>
1190
1190
1191
1191
<p>
1192
1192
Control characters (<a>Unicode category</a> <code> Cc</code> )--
1193
- other than tabs (U+0009), line feeds (U+000A),
1193
+ other than tabs (U+0009),
1194
+ line feeds (U+000A),
1195
+ carriage returns (U+000D)
1194
1196
and sequences that form a <a>segment break</a> --
1195
1197
must be rendered as a visible glyph
1196
1198
which the UA must synthethize if the glyphs found in the font are not visible,
@@ -1270,6 +1272,16 @@ Order of Operations</h4>
1270
1272
white-space/control-chars-09F.html
1271
1273
</wpt>
1272
1274
1275
+ Carriage returns (U+000D) are treated identically to spaces (U+0020) in all respects.
1276
+
1277
+ Note: For HTML documents,
1278
+ carriage returns present in the source code
1279
+ are converted to line feeds at the parsing stage
1280
+ and therefore do no appear as U+000D to CSS.
1281
+ However, the character <em> is</em> preserved--
1282
+ and the above rule observable--
1283
+ when encoded using an escape sequence (<code class=lang-html> &#x0d;</code> ).
1284
+
1273
1285
<h3 id="white-space-rules">
1274
1286
The White Space Processing Rules</h3>
1275
1287
Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ <h2 id="white-space-processing-details">4 <a href="https://drafts.csswg.org/css-
133
133
134
134
< ul >
135
135
< li > As required by [UNICODE], unsupported Default_ignorable characters must be ignored for rendering.
136
+ < li > Carriage returns (U+000D) are treated identically to spaces (U+0020) in all respects.
136
137
</ ul >
137
138
138
139
< h3 id ="the-white-space-processing-rules "> 4.1 < a href ="https://drafts.csswg.org/css-text-3/#white-space-rules "> The White Space Processing Rules</ a > </ h3 >
You can’t perform that action at this time.
0 commit comments