Skip to content

Commit 7f135be

Browse files
committed
[css-inline-3] Define auto height calculations for atomic inlines to follow usual rules unless 'auto', in which case it follows initial-letter 'border-box' rules. #3231
1 parent 8eed341 commit 7f135be

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

css-inline-3/Overview.bs

+11-1
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,7 @@ Initial Letter Layout</h3>
953953
which is either a <a>replaced element</a>
954954
or which establishes an <a>independent formatting context</a> for its contents,
955955
the sizing of the box
956+
(aside from its <a>automatic size</a> in the <a>block axis</a>)
956957
and layout of the contents within the box
957958
follows the usual rules:
958959
it is primarily the positioning of the box
@@ -1072,7 +1073,8 @@ Shaping and Glyph Selection</h4>
10721073
<h3 id="initial-letter-box-size">
10731074
Sizing the Initial Letter Box</h3>
10741075

1075-
If the <a>initial letter</a>’s <a>specified width</a>/<a>specified height</a>
1076+
For an <a>inline initial letter</a>,
1077+
if the <a>initial letter</a>’s <a>specified width</a>/<a>specified height</a>
10761078
is <a>definite</a>,
10771079
use that value
10781080
(clamped as required by the <a>min size</a> and <a>max size</a> properties,
@@ -1095,6 +1097,14 @@ Sizing the Initial Letter Box</h3>
10951097
with the hanging punctuation properly hanging)?
10961098
See <a href="https://github.com/w3c/csswg-drafts/issues/310">discussion</a>.
10971099

1100+
For <a>atomic initial letters</a>,
1101+
sizing follows the usual rules for that type of <a>atomic inline</a>.
1102+
However, if the box has an [=automatic size|automatic=] [=block size=] (''height/auto''),
1103+
then its <a>block size</a> is determined
1104+
as for an <a>inline initial letter</a>
1105+
with ''initial-letter-align/border-box'' alignment,
1106+
and is <a>definite</a>.
1107+
10981108
<h4 id="initial-letter-content-align">
10991109
Alignment Within an Initial Letter Box</h4>
11001110

0 commit comments

Comments
 (0)