Skip to content

Commit d3d67e4

Browse files
committed
[css-align] Resolve some scrolling mechanism conflicts in favor of latest CSS2.1 errata; mark as issue.
1 parent ece9c98 commit d3d67e4

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

css-align/Overview.bs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,9 +1465,6 @@ Determining the Baselines of a Box</h2>
14651465
whichever comes first (last).
14661466
If there is no such line box or child,
14671467
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.
14711468

14721469
A block container has no block-axis baselines.
14731470

@@ -1540,9 +1537,12 @@ Determining the Baselines of a Box</h2>
15401537
Maybe these things are wrong?
15411538
CSS 2.1 is really weird about baseline alignment.
15421539

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,
15461546
its position is clamped to that margin edge.
15471547
That is, when assuming the initial scroll position,
15481548
if a box's first baseline is past its end margin edge
@@ -1551,6 +1551,8 @@ Determining the Baselines of a Box</h2>
15511551
so that such a box's baseline
15521552
is never outside its margin edges.
15531553

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.
1555+
15541556
<h3 id='baseline-terms'>
15551557
Baseline Alignment Terminology</h3>
15561558

0 commit comments

Comments
 (0)