@@ -1300,7 +1300,7 @@ Half-Leading Control: the 'leading-trim' property</h3>
1300
1300
On [=block containers=] ,
1301
1301
specifies whether to trim [=half-leading=]
1302
1302
at the start/end of its content
1303
- to the corresponding 'text-edge' metric of its [=root inline box=]
1303
+ to the corresponding 'text-edge' metric
1304
1304
to better match the box’s [=content edge=] to its text content.
1305
1305
1306
1306
This property has no effect when 'text-edge' is ''text-edge/leading'' .
@@ -1324,7 +1324,9 @@ Half-Leading Control: the 'leading-trim' property</h3>
1324
1324
For [=block containers=] :
1325
1325
trim the [=block-start=] side of the <a>first formatted line</a>
1326
1326
to the corresponding 'text-edge' metric of its [=root inline box=] .
1327
- (If there is no such line, there is no effect.)
1327
+ If there is no such line,
1328
+ or if there is intervening non-zero padding or borders,
1329
+ there is no effect.
1328
1330
1329
1331
For [=inline boxes=] :
1330
1332
trims the [=block-end=] side of the box
@@ -1336,7 +1338,9 @@ Half-Leading Control: the 'leading-trim' property</h3>
1336
1338
For [=block containers=] :
1337
1339
trim the [=block-end=] side of the last formatted line
1338
1340
to the corresponding 'text-edge' metric of its [=root inline box=] .
1339
- (If there is no such line, there is no effect.)
1341
+ If there is no such line,
1342
+ or if there is intervening non-zero padding or borders,
1343
+ there is no effect.
1340
1344
1341
1345
For [=inline boxes=] :
1342
1346
trims the [=block-end=] side of the box
@@ -2916,6 +2920,9 @@ Changes</h2>
2916
2920
to handle common practices for certain Indic scripts.
2917
2921
See <a href="https://www.w3.org/TR/ilreq/#h_scripts_without_hanging_baseline">Indic Layout Requirements</a> .
2918
2922
(<a href="https://github.com/w3c/csswg-drafts/issues/864">Issue 864</a> )
2923
+
2924
+ <li> Make non-zero padding and border block effects of 'leading-trim' from ancestors.
2925
+ (<a href="https://github.com/w3c/csswg-drafts/issues/5237">Issue 5237</a> )
2919
2926
</ul>
2920
2927
2921
2928
Changes since the
0 commit comments