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
<li>For <adata-link-type=dfnhref=#soft-wrap-opportunitytitle="soft wrap opportunities">soft wrap opportunities</a> before the first or after the last character of a box,
1039
1039
the break occurs immediately before/after the box (at its margin edge)
1040
1040
rather than breaking the box between its content edge and the content.
1041
-
<li>Line breaking in/around Ruby is defined in Ruby box and line breaking<adata-biblio-type=normativedata-link-type=bibliohref=#biblio-css3rubytitle=biblio-css3ruby>[CSS3RUBY]</a>.
1041
+
<li>Line breaking in/around Ruby is defined in <ahref=http://www.w3.org/TR/css-ruby-1/#line-breaks>CSS Ruby</a><adata-biblio-type=normativedata-link-type=bibliohref=#biblio-css3rubytitle=biblio-css3ruby>[CSS3RUBY]</a>.
left-to-right text with no floats present, then first line of text
2366
2367
will start 5em into the block:</p>
2367
2368
2368
-
<pre> Since CSS1 it has been possible
2369
-
to indent the first line of a block
2370
-
element using the 'text-indent'
2371
-
property.</pre>
2369
+
<preclass=output> Since CSS1 it has been possible to
2370
+
indent the first line of a block element
2371
+
5em by setting the 'text-indent' property
2372
+
to '5em'.
2373
+
</pre>
2374
+
<p>If we add the <aclass=cssdata-link-for=text-indentdata-link-type=maybehref=#valdef-text-indent.hangingtitle=hanging>hanging</a> keyword,
2375
+
then the first line will start flush,
2376
+
but other lines will be indented 5em:
2377
+
<preclass=output>In CSS3 we can instead indent all other
2378
+
lines of the block element by 5em
2379
+
by setting the 'text-indent' property
2380
+
to 'hanging 5em'.
2381
+
</pre>
2382
+
</div>
2383
+
2384
+
<divclass=example>
2385
+
<p>Since the <aclass=propertydata-link-type=propdeschref=#propdef-text-indenttitle=text-indent>text-indent</a> property only affects the “first formatted line”,
2386
+
a line after a forced break will not be indented.
2387
+
<preclass=output> For example, in the middle of
2388
+
this paragraph is an equation,
2389
+
which is centered:
2390
+
x + y = z
2391
+
The first line after the equation
2392
+
is flush (else it would look like
2393
+
we started a new paragraph).
2394
+
</pre>
2395
+
<p>However, sometimes (as in poetry or code),
2396
+
it is appropriate to indent each line
2397
+
that happens to be long enough to wrap.
2398
+
In the following example, <aclass=propertydata-link-type=propdeschref=#propdef-text-indenttitle=text-indent>text-indent</a>
2399
+
is given a value of <spanclass=cssdata-link-type=maybetitle="3em hanging each-line">3em hanging each-line</span>,
2400
+
giving the third line of the poem a hanging indent
2401
+
where it soft-wraps at the block’s right boundary:
2402
+
<preclass=output>In a short line of text
2403
+
There need be no wrapping,
2404
+
But when we go on and on and on
2405
+
and on,
2406
+
Sometimes a soft break
2407
+
Can help us stay on the page.
2408
+
</pre>
2372
2409
</div>
2373
2410
2374
2411
<pclass=note>Note that since the <aclass=propertydata-link-type=propdeschref=#propdef-text-indenttitle=text-indent>text-indent</a> property inherits,
0 commit comments