Skip to content

Commit 5fcba5d

Browse files
committed
[css-inline-3] Add leading value to initial-letter-align to handle Tamil et al. per ILREQ. w3c#864
1 parent 6b1e2a2 commit 5fcba5d

1 file changed

Lines changed: 24 additions & 7 deletions

File tree

css-inline-3/Overview.bs

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,7 +1781,7 @@ Alignment of Initial Letters: the 'initial-letter-align' property</h3>
17811781

17821782
<pre class="propdef" id="initial-letter-align">
17831783
Name: <dfn id="propdef-initial-letter-align">initial-letter-align</dfn>
1784-
Value: [ border-box? [ alphabetic | ideographic | hanging ]? ]!
1784+
Value: [ border-box? [ alphabetic | ideographic | hanging | leading ]? ]!
17851785
Initial: alphabetic
17861786
Applies to: certain inline-level boxes and <css>::first-letter</css> and inside <css>::marker</css> boxes (<a href="#first-most-inline-level">see prose</a>)
17871787
Inherited: yes
@@ -1794,7 +1794,8 @@ Alignment of Initial Letters: the 'initial-letter-align' property</h3>
17941794
used to size and position an <a>initial letter</a>.
17951795
Two sets of alignment points are necessary:
17961796
the <a>over</a> and <a>under</a> alignment points of the <a>initial letter</a>
1797-
are matched to corresponding <a>over</a> and <a>under</a> points of the surrounding text.
1797+
are matched to corresponding <a>over</a> and <a>under</a> points
1798+
of the [=root inline box=].
17981799

17991800
Values have the following meanings:
18001801

@@ -1817,6 +1818,16 @@ Alignment of Initial Letters: the 'initial-letter-align' property</h3>
18171818
of the surrounding text
18181819
to align the <a>initial letter</a>.
18191820

1821+
<dt><dfn>leading</dfn>
1822+
<dd>
1823+
Use the over/under half-leading edges
1824+
(i.e. [=ascent=]/[=descent=] + [=half-leading=])
1825+
of the surrounding text
1826+
to align the <a>initial letter</a>.
1827+
1828+
Note: This will essentially match the edges of the [=initial letter=]
1829+
to middle of the line gap above/below the first/last impacted lines.
1830+
18201831
<dt><dfn>border-box</dfn>
18211832
<dd>
18221833
Use the [=initial letter box=]’s [=line-under=] and [=line-over=] [=border edges=]
@@ -1866,10 +1877,6 @@ Alignment of Initial Letters: the 'initial-letter-align' property</h3>
18661877
</figure>
18671878
</div>
18681879

1869-
Issue: What is the proper alignment for South Asian scripts
1870-
that do not have the explicit hanging baseline, such as Tamil or Telugu?
1871-
See GitHub issue <a href="https://github.com/w3c/csswg-drafts/issues/864">864</a>
1872-
18731880
Note: The ordering of keywords in this property is fixed in case ''border-box''
18741881
is expanded to ''[ border-box | alphabetic | ideographic | hanging ]''
18751882
to allow explicitly specifying the <a>initial letter</a>’s alignment points.
@@ -2171,7 +2178,7 @@ Block-axis Positioning</h4>
21712178

21722179
* If its [=initial letter size|size=] is greater than or equal to
21732180
its [=initial letter sink|sink=],
2174-
[=the initial letter=] is positioned
2181+
the [=initial letter=] is positioned
21752182
to satisfy its <a>under</a> alignment,
21762183
and then shifted by
21772184
([=initial letter sink|sink=] - 1) &times; 'line-height' of [=containing block=]
@@ -2901,6 +2908,16 @@ A.3: Synthesizing Baselines for Atomic Inlines</h3>
29012908
<h2 class="no-num" id="changes">
29022909
Changes</h2>
29032910

2911+
Changes since the
2912+
<a href="https://www.w3.org/TR/2020/WD-css-inline-3-20200618/">18 June 2020 Working Draft</a>
2913+
include:
2914+
<ul>
2915+
<li>Added ''initial-letter-align/leading'' value to 'initial-letter-align'
2916+
to handle common practices for certain Indic scripts.
2917+
See <a href="https://www.w3.org/TR/ilreq/#h_scripts_without_hanging_baseline">Indic Layout Requirements</a>.
2918+
(<a href="https://github.com/w3c/csswg-drafts/issues/864">Issue 864</a>)
2919+
</ul>
2920+
29042921
Changes since the
29052922
<a href="https://www.w3.org/TR/2020/WD-css-inline-3-20200604/">4 June 2020 Working Draft</a>
29062923
include:

0 commit comments

Comments
 (0)