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
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>)
1787
1787
Inherited: yes
@@ -1794,7 +1794,8 @@ Alignment of Initial Letters: the 'initial-letter-align' property</h3>
1794
1794
used to size and position an <a>initial letter</a>.
1795
1795
Two sets of alignment points are necessary:
1796
1796
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=].
1798
1799
1799
1800
Values have the following meanings:
1800
1801
@@ -1817,6 +1818,16 @@ Alignment of Initial Letters: the 'initial-letter-align' property</h3>
1817
1818
of the surrounding text
1818
1819
to align the <a>initial letter</a>.
1819
1820
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
+
1820
1831
<dt><dfn>border-box</dfn>
1821
1832
<dd>
1822
1833
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>
1866
1877
</figure>
1867
1878
</div>
1868
1879
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
-
1873
1880
Note: The ordering of keywords in this property is fixed in case ''border-box''
1874
1881
is expanded to ''[ border-box | alphabetic | ideographic | hanging ]''
1875
1882
to allow explicitly specifying the <a>initial letter</a>’s alignment points.
@@ -2171,7 +2178,7 @@ Block-axis Positioning</h4>
2171
2178
2172
2179
* If its [=initial letter size|size=] is greater than or equal to
2173
2180
its [=initial letter sink|sink=],
2174
-
[=the initial letter=] is positioned
2181
+
the [=initial letter=] is positioned
2175
2182
to satisfy its <a>under</a> alignment,
2176
2183
and then shifted by
2177
2184
([=initial letter sink|sink=] - 1) × 'line-height' of [=containing block=]
@@ -2901,6 +2908,16 @@ A.3: Synthesizing Baselines for Atomic Inlines</h3>
2901
2908
<h2 class="no-num" id="changes">
2902
2909
Changes</h2>
2903
2910
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>.
0 commit comments