Skip to content

Commit 36cfab2

Browse files
committed
[css-text] Clarify computation of 'match-parent'.
1 parent 1329d5a commit 36cfab2

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

css-text/Overview.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1707,7 +1707,7 @@ <h3 id=text-align><span class=secno>7.1. </span> Text Alignment: the ‘<a
17071707
<th>Computed value:
17081708

17091709
<td>specified value, except for ‘<code
1710-
class=property>match-parent</code>(see prose)
1710+
class=property>match-parent</code>which computes as defined below
17111711
</table>
17121712

17131713
<p>This property describes how inline contents of a block are aligned along
@@ -1770,12 +1770,12 @@ <h3 id=text-align><span class=secno>7.1. </span> Text Alignment: the ‘<a
17701770
class=css>match-parent</code></dfn>
17711771

17721772
<dd>This value behaves the same as ‘<code
1773-
class=property>inherit</code>except that an inherited ‘<code
1774-
class=property>start</code>’ or ‘<code class=property>end</code>
1775-
keyword is calculated against its parent's<code
1776-
class=property>direction</code>’ value and results in a computed value
1777-
of either ‘<code class=property>left</code>’ or<code
1778-
class=property>right</code>’.
1773+
class=property>inherit</code>(computes to its parent's computed
1774+
value) except that a ‘<code class=property>start</code>’ or ‘<code
1775+
class=property>end</code>keyword is interpreted against its parent's
1776+
<code class=property>direction</code>’ value and results in a
1777+
computed value of either ‘<code class=property>left</code>’ or
1778+
<code class=property>right</code>’.
17791779

17801780
<dt><dfn id=start-end title="text-align:start end"><code
17811781
class=css>start end</code></dfn>

css-text/Overview.src.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ <h3 id="text-align">
12421242
</tr>
12431243
<tr>
12441244
<th>Computed&#160;value:</th>
1245-
<td>specified value, except for 'match-parent' (see prose)</td>
1245+
<td>specified value, except for 'match-parent' which computes as defined below</td>
12461246
</tr>
12471247
</table>
12481248

@@ -1283,9 +1283,10 @@ <h3 id="text-align">
12831283
</dd>
12841284
-->
12851285
<dt><dfn title="text-align:match-parent">''match-parent''</dfn></dt>
1286-
<dd>This value behaves the same as 'inherit' except that an inherited
1287-
'start' or 'end' keyword is calculated against its parent's 'direction'
1288-
value and results in a computed value of either 'left' or 'right'.
1286+
<dd>This value behaves the same as 'inherit'
1287+
(computes to its parent's computed value)
1288+
except that a 'start' or 'end' keyword is interpreted against its parent's 'direction' value
1289+
and results in a computed value of either 'left' or 'right'.
12891290
<dt><dfn title="text-align:start end">''start end''</dfn>
12901291
<dd>Specifies ''start'' alignment of the first line and any line
12911292
immediately after a <i>forced line break</i>; and ''end'' alignment of

0 commit comments

Comments
 (0)