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
<dd>A length L aligns the top left corner of the image a distance L
293
+
to the right of (for horizontal) or below (for vertical) the top
294
+
left corner of the element's padding box. For example, with a value
295
+
pair of '2cm 1cm', the upper left corner of the image is placed 2cm
296
+
to the right and 1cm below the upper left corner of the padding
297
+
box. a value pair of '2cm 1cm' ... padding box.
298
+
299
+
<dt><strong>top</strong>
300
+
301
+
<dd>Equivalent to '0%' for the vertical position.
302
+
303
+
<dt><strong>right</strong>
304
+
305
+
<dd>Equivalent to '100%' for the horizontal position.
306
+
307
+
<dt><strong>bottom</strong>
308
+
309
+
<dd>Equivalent to '100%' for the vertical position.
310
+
311
+
<dt><strong>left</strong>
312
+
313
+
<dd>Equivalent to '0%' for the horizontal position.
314
+
315
+
<dt><strong>center</strong>
316
+
317
+
<dd>Equivalent to '50%' for the horizontal position if it is not
318
+
otherwise given, or '50%' for the vertical position if it is.
317
319
</dl>
318
320
319
-
<p>If only one percentage or length value is given, it sets the
320
-
horizontal position only, and the vertical position will be 50%. If two
321
-
values are given, the horizontal position comes first. Combinations of
322
-
keyword, length and percentage values are allowed, (e.g., '50% 2cm' or 'center 2cm' or 'center 10%'). For combinations of keyword and non-keyword values, 'left' and 'right' may only be used as the first value, and 'top' and 'bottom' may only be used as the second value. Negative positions are allowed.
323
-
</p>
324
321
<div class="example">
325
322
<pre>
326
323
body { background: url("banner.jpeg") right top } /* 100% 0% */
@@ -340,7 +337,7 @@ background-image on inline elements.
@@ -400,6 +400,13 @@ and as necessary to fill line boxes.</dd>
400
400
<dt>pre-line</dt>
401
401
<dd>This value directs user agents to collapse sequences of whitespace. Lines are broken at newlines in the source, at occurrences of "\A" in generated content, and as necessary to fill line boxes.</dd>
402
402
</dl>
403
+
<p>
404
+
Newlines in the source can be represented by a carriage return
405
+
(U+000D), a linefeed (U+000A) or both (U+000D U+000A) or by some other
406
+
mechanism that identifies the beginning and end of document segments,
407
+
such as the SGML RECORD-START and RECORD-END tokens. The CSS
408
+
'white-space' processing model assumes all newlines have been
409
+
normalized to line feeds.
403
410
404
411
<div class="example"><p> The following examples show what <a
405
412
href="syndata.html#whitespace">whitespace</a> behavior is expected
0 commit comments