You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css-align/Overview.bs
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1465,9 +1465,6 @@ Determining the Baselines of a Box</h2>
1465
1465
whichever comes first (last).
1466
1466
If there is no such line box or child,
1467
1467
then the block container has no baselines.
1468
-
For the purposes of finding the baselines,
1469
-
in-flow boxes with a scrolling mechanisms (see the 'overflow' property)
1470
-
must be considered as if scrolled to their origin (final) position.
1471
1468
1472
1469
A block container has no block-axis baselines.
1473
1470
@@ -1540,9 +1537,12 @@ Determining the Baselines of a Box</h2>
1540
1537
Maybe these things are wrong?
1541
1538
CSS 2.1 is really weird about baseline alignment.
1542
1539
1543
-
For boxes with non-''visible'''overflow',
1544
-
if a baseline is past the box's margin edge on the opposite side
1545
-
when the box is scrolled to its initial position,
1540
+
For the purposes of finding the baselines of a box,
1541
+
it and all its in-flow descendants with a scrolling mechanism (see the 'overflow' property)
1542
+
must be considered as if scrolled to their origin.
1543
+
Furthermore, if, in the case of a box with non-''visible'' overflow,
1544
+
the resulting position of a first (last) baseline
1545
+
is past a box's end (start) margin edge,
1546
1546
its position is clamped to that margin edge.
1547
1547
That is, when assuming the initial scroll position,
1548
1548
if a box's first baseline is past its end margin edge
@@ -1551,6 +1551,8 @@ Determining the Baselines of a Box</h2>
1551
1551
so that such a box's baseline
1552
1552
is never outside its margin edges.
1553
1553
1554
+
ISSUE: This reflects the latest CSS2.1 errata, however see also discussion of an <a href="https://github.com/w3c/csswg-drafts/issues/766">alternate solution</a> that was previously drafted here.
0 commit comments