Skip to content

Commit a94e447

Browse files
committed
[cssom-view-1] Per WG resolution, include fragments from block splitters unless they're zero-sized. #6588
1 parent 690c14b commit a94e447

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

cssom-view-1/Overview.bs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,6 +1404,11 @@ The <dfn attribute for=HTMLElement>offsetWidth</dfn> attribute must return the r
14041404
of all fragments generated by the element's [=principal box=],
14051405
ignoring any <a>transforms</a> that apply to the element and its ancestors.
14061406

1407+
If the element's [=principal box=] is an [=inline-level box=]
1408+
which was "split" by a [=block-level=] descendant,
1409+
also include fragments generated by the [=block-level=] descendants,
1410+
unless they are zero width or height.
1411+
14071412
The <dfn attribute for=HTMLElement>offsetHeight</dfn> attribute must return the result of running these steps:
14081413

14091414
1. If the element does not have any associated <a>CSS layout box</a> return zero and terminate this algorithm.
@@ -1412,6 +1417,11 @@ The <dfn attribute for=HTMLElement>offsetHeight</dfn> attribute must return the
14121417
of all fragments generated by the element's [=principal box=],
14131418
ignoring any <a>transforms</a> that apply to the element and its ancestors.
14141419

1420+
If the element's [=principal box=] is an [=inline-level box=]
1421+
which was "split" by a [=block-level=] descendant,
1422+
also include fragments generated by the [=block-level=] descendants,
1423+
unless they are zero width or height.
1424+
14151425

14161426
<h2 id=extensions-to-the-htmlimageelement-interface>Extensions to the {{HTMLImageElement}} Interface</h2>
14171427

0 commit comments

Comments
 (0)