Skip to content

Commit 32dab47

Browse files
committed
[css-inline-3] Rename invisible line boxes to phantom line boxes
This lines up closer to CSS2 terminology. Related to #11021
1 parent 3935c33 commit 32dab47

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

css-inline-3/Overview.bs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,15 +246,15 @@ Layout Within Line Boxes</h3>
246246
and thus influence these calculations just like boxes with content.
247247

248248
<h3 id="invisible-line-boxes">
249-
“Invisible” Line Boxes</h3>
249+
Phantom Line Boxes</h3>
250250

251251
[=Line boxes=] that contain no text,
252252
no [=preserved white space=],
253253
no [=inline boxes=] with non-zero inline-axis [=margins=], [=padding=], or [=borders=],
254254
and no other [=in-flow=] content
255255
(such as [=atomic inlines=] or [=ruby annotations=]),
256256
and do not end with a [=forced line break=]
257-
are <dfn lt="invisible line box">invisible line boxes</dfn>.
257+
are <dfn lt="phantom line box">phantom line boxes</dfn>.
258258
Such boxes must be treated as zero-[=logical height|height=] [=line boxes=]
259259
for the purposes of determining the positions of any descendant content
260260
(such as [=absolutely positioned boxes=]),
@@ -264,16 +264,17 @@ Layout Within Line Boxes</h3>
264264
<details class=note>
265265
<summary>What’s invisible?</summary>
266266

267-
Such [=invisible line boxes=], which can still contain
267+
Such [=phantom line boxes=], which can still contain
268268
unstyled empty [=inline boxes=], [=out-of-flow=] boxes, and/or collapsed [=document white space=],
269269
are ignored, for example, for:
270270
* <a href="https://www.w3.org/TR/CSS2/box.html#collapsing-margins">margin collapsing</a>
271271
* finding the [=first formatted line=]
272272
* applying 'text-box-trim'
273273
* [[css-break-4#break-propagation|fragmentation break propagation]]
274+
* etc.
274275
</details>
275276

276-
ISSUE: Firefox allows the inline boxes within an [=invisible line box=]
277+
ISSUE: Firefox allows the inline boxes within a [=phantom line box=]
277278
to accept 'outline',which allows it to make focus rings visible.
278279
As in other browsers, all other properties that could make the element visible
279280
(e.g. 'box-shadow')
@@ -3076,7 +3077,7 @@ Changes</h2>
30763077
when calculating their [=layout bounds=]
30773078
so that they can actually have the specified effect.
30783079
(<a href="https://github.com/w3c/csswg-drafts/issues/8182">Issue 8182</a>)
3079-
<li>Corrected [=invisible line boxes=] to only account for [=inline-axis=] box decorations.
3080+
<li>Corrected [=phantom line boxes=] to only account for [=inline-axis=] box decorations.
30803081
(<a href="https://github.com/w3c/csswg-drafts/issues/9344">Issue 9344</a>)
30813082
</ul>
30823083

0 commit comments

Comments
 (0)