Skip to content

Commit 7a66d53

Browse files
committed
[css-align-3] Correct handling of baselines of scroll containers. w3c#3611
1 parent 96d405d commit 7a66d53

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

css-align-3/Overview.bs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2118,12 +2118,10 @@ Determining the Baselines of a Box</h2>
21182118
If there is no such line box or child,
21192119
then the block container has no [=baseline set=].
21202120

2121-
However, for legacy reasons,
2122-
if an ''inline-block''
2123-
is a [=scroll container=]
2124-
or contains no in-flow [=line boxes=],
2125-
its first and last [=baseline sets=]
2126-
are [=synthesized=] from its [=margin box=].
2121+
However, for legacy reasons
2122+
a [=block-level=] or [=inline-level=] [=scroll container=]
2123+
always has a [=last baseline set=],
2124+
whose baselines all correspond to its bottom [=margin edge=].
21272125

21282126
<dt>multi-column containers
21292127
<dd>

css-align-3/baseline-align-test.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<!DOCTYPE html>
2+
<html>
23
<style>
34
h2 { font: bold 100%/1 sans-serif; }
45
div { border: solid 1em; }

0 commit comments

Comments
 (0)