Skip to content

Commit 2f24fc0

Browse files
committed
[css-inline-3][css-text-3][css-text-4] Shaping is broken by changes to vertical-align longhands #13277
The spec previously checked 'vertical-align' against 'baseline'; but actually it should have checked against the [=initial value=], whatever that happens to be. (CSS Inline L3 expands vertical-align, so its initial value is now more complicated to describe.) Also clarify that baseline-source only applies to boxes that establish an independent formatting context.
1 parent 863a036 commit 2f24fc0

3 files changed

Lines changed: 14 additions & 4 deletions

File tree

css-inline-3/Overview.bs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ Alignment Baseline Source: the 'baseline-source' longhand</h4>
763763
Name: baseline-source
764764
Value: auto | first | last
765765
Initial: auto
766-
Applies to: inline-level boxes
766+
Applies to: [=inline-level boxes=] that establish an [=independent formatting context=]
767767
Inherited: no
768768
Percentages: N/A
769769
Computed value: specified keyword
@@ -3052,6 +3052,12 @@ A.3: Synthesizing Baselines for Atomic Inlines</h3>
30523052
<h2 class="no-num" id="changes">
30533053
Changes</h2>
30543054

3055+
Changes since the <a href="https://www.w3.org/TR/2024/WD-css-inline-3-20241218/">18 December 2024 Working Draft</a>:
3056+
<ul>
3057+
<li>Clarify that 'baseline-source' does not apply to [=inline boxes=].
3058+
(<a href="https://github.com/w3c/csswg-drafts/issues/13277">Issue 13277</a>)
3059+
</ul>
3060+
30553061
Changes since the <a href="https://www.w3.org/TR/2024/WD-css-inline-3-20240812/">12 August 2024 Working Draft</a>:
30563062
<ul>
30573063
<li>Made both values of <<text-edge>> required.

css-text-3/Overview.bs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6598,7 +6598,7 @@ Shaping Across Element Boundaries</h3>
65986598
</wpt>
65996599

66006600
<li>
6601-
'vertical-align' is not ''vertical-align/baseline''.
6601+
'vertical-align' is not its [=initial value=].
66026602

66036603
<wpt>
66046604
boundary-shaping/boundary-shaping-002.html
@@ -8407,7 +8407,10 @@ Recent Changes</h3>
84078407

84088408
The following changes have been made since
84098409
the <a href="https://www.w3.org/TR/2026/CRD-css-text-3-20260608/">June 2026 Candidate Recommendation Draft</a>:
8410-
* None yet
8410+
* Clarify that shaping breaks when 'vertical-align' is not its [=initial value=],
8411+
rather than mentioning ''vertical-align/baseline'' specifically,
8412+
to avoid confusion given further developments to 'vertical-align'.
8413+
(<a href="https://github.com/w3c/csswg-drafts/issues/13277">Issue 13277</a>)
84118414

84128415
The following changes have been made since
84138416
the <a href="https://www.w3.org/TR/2024/CRD-css-text-3-20240930/">September 2024 Candidate Recommendation Draft</a>:

css-text-4/Overview.bs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11311,7 +11311,8 @@ Shaping Across Element Boundaries</h3>
1131111311
</wpt>
1131211312

1131311313
<li>
11314-
'vertical-align' is not ''vertical-align/baseline''.
11314+
'vertical-align' is not its [=initial value=];
11315+
i.e. at least one of its [=longhands=] is not its [=initial value=].
1131511316

1131611317
<wpt>
1131711318
boundary-shaping/boundary-shaping-002.html

0 commit comments

Comments
 (0)