Skip to content

Commit 6bf84c5

Browse files
committed
1 parent f6260f1 commit 6bf84c5

1 file changed

Lines changed: 24 additions & 10 deletions

File tree

css3-text/Overview.src.html

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2344,7 +2344,7 @@ <h3 id="text-indent"><span class="secno">9.1</span>
23442344
<th>Value:</th>
23452345
<td>[ <span class="value-inst-length"><a href="http://www.w3.org/TR/CSS21/syndata.html#value-def-length">&lt;length&gt;</a></span>
23462346
| <span class="value-inst-percentage"><a href="http://www.w3.org/TR/CSS21/syndata.html#value-def-percentage">&lt;percentage&gt;</a></span>
2347-
] hanging?
2347+
] && [ hanging || each-line ]?
23482348
</td>
23492349
</tr>
23502350
<tr>
@@ -2375,15 +2375,29 @@ <h3 id="text-indent"><span class="secno">9.1</span>
23752375
</table>
23762376

23772377
<p>This property specifies the indentation applied to lines of inline
2378-
content in a block. The indentation only affects the first line of
2379-
inline content in the block unless the 'hanging' keyword is specified,
2380-
in which case it affects all lines except the first.</p>
2381-
2382-
<p>The indent is treated as a margin applied to the start edge of the
2383-
line box. The amount of indentation is given by the length or percentage
2384-
value. Percentages are relative to the containing block, even in the
2385-
presence of floats. They are inherited as percentages, not as absolute
2386-
lengths.</p>
2378+
content in a block. The indent is treated as a margin applied to
2379+
the start edge of the line box. Unless otherwise specified via the
2380+
''each-line'' and/or ''hanging'' keywords, only lines that are the
2381+
<a href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo">first
2382+
formatted line</a> of an element. For example, the first line of
2383+
an anonymous block box is only affected if it is the first child
2384+
of its parent element.
2385+
2386+
<p>Values have the following meanings:</p>
2387+
2388+
<dl>
2389+
<dt>&lt;length&gt;</dt>
2390+
<dd>Gives the amount of the indent as an absolute length.</dd>
2391+
<dt>&lt;percentage&gt;</dt>
2392+
<dd>Gives the amount of the indent as a percentage of the containg
2393+
block's logical width.</dd>
2394+
<dt><dfn><code>each-line</code></dfn>
2395+
<dd>Indentation affects the first line of the block container as
2396+
well as each line after a forced line break, but does not affect
2397+
lines after a text wrap break.
2398+
<dt><dfn><code>hanging</code></dfn>
2399+
<dd>Inverts which lines are affected.</dd>
2400+
</dl>
23872401

23882402
<div class="example">
23892403
<p>If 'text-align' is 'start' and 'text-indent' is '5em' in

0 commit comments

Comments
 (0)