Skip to content

Commit d61c2de

Browse files
frivoalfantasai
authored andcommitted
[css-text-3] treat %age text-indent as 0 for intrinsic size calculations w3c#1597
Closes w3c#1597
1 parent 316eb37 commit d61c2de

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

css-text-3/Overview.bs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2037,7 +2037,14 @@ Cursive Scripts</h4>
20372037
<dd>Gives the amount of the indent as an absolute length.</dd>
20382038
<dt><dfn>&lt;percentage&gt;</dfn>
20392039
<dd>Gives the amount of the indent as a percentage of the containing
2040-
block's logical width.</dd>
2040+
block's logical width.
2041+
2042+
Percentages must be treated as ''0'' for the purpose of calculating [=intrinsic size contributions=],
2043+
but are always resolved normally when performing layout.
2044+
2045+
Note: This can lead to the element overflowing.
2046+
It is not recommended to use percentage indents and intrinsic sizing toghether.
2047+
</dd>
20412048
<dt><dfn>each-line</dfn>
20422049
<dd>Indentation affects the first line of each block container
20432050
and each line after a <a>forced line break</a>

0 commit comments

Comments
 (0)