Skip to content

Commit 2a015a6

Browse files
committed
[css-inline] Remove 'hanging' keyword from 'initial-letter-align', since people argue that that it is not used (and Indic fonts seem to match up their hanging and cap-height baselines anyway?)
1 parent d6b10ac commit 2a015a6

2 files changed

Lines changed: 5 additions & 13 deletions

File tree

css-inline/Overview.bs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ An <a>initial letter</a> is laid out following the steps outlined below:
413413
Content-box Size, Margins, Borders, and Padding</h4>
414414

415415
Initial letters can be styled with margins, padding, and borders just like any other box.
416-
Unless 'initial-letter-align' is ''initial-letter-align/pborder-box'',
416+
Unless 'initial-letter-align' is ''initial-letter-align/border-box'',
417417
its vertical alignment and sizing are not affected;
418418
however the effective exclusion area is (and corresponds to the margin area).
419419

@@ -426,7 +426,7 @@ As mentioned earlier, the alignment of initial letters depends on the script use
426426

427427
<pre class="propdef" id="initial-letter-align">
428428
Name: <dfn id="propdef-initial-letter-align">initial-letter-align</dfn>
429-
Value: auto | alphabetic | hanging | ideographic | margin-box | content-box
429+
Value: auto | alphabetic | ideographic | margin-box | content-box
430430
Initial: auto
431431
Applies to: <code>::first-letter</code> pseudo elements and inline level first child of a block container
432432
Inherited: no
@@ -443,9 +443,6 @@ Computed value: specified value
443443
<dt>alphabetic</dt>
444444
<dd>As described above, the cap height of the initial letter aligns with the cap height of the first line of text. The baseline of the initial letter aligns with the baseline of the Nth text baseline.</dd>
445445

446-
<dt>hanging</dt>
447-
<dd>The hanging baseline of the initial letter aligns with the hanging baseline of the first line of text. </dd>
448-
449446
<dt>ideographic</dt>
450447
<dd>The initial letter is centered in the N-line area.
451448

css-inline/Overview.html

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ <h4 class="heading settled" data-level="2.3.2" id="initial-letter-box"><span cla
908908

909909

910910
<p>Initial letters can be styled with margins, padding, and borders just like any other box.
911-
Unless <a class="property" data-link-type="propdesc" href="#propdef-initial-letter-align">initial-letter-align</a> is <span class="css">pborder-box</span>,
911+
Unless <a class="property" data-link-type="propdesc" href="#propdef-initial-letter-align">initial-letter-align</a> is <span class="css">border-box</span>,
912912
its vertical alignment and sizing are not affected;
913913
however the effective exclusion area is (and corresponds to the margin area).</p>
914914

@@ -930,7 +930,7 @@ <h3 class="heading settled" data-level="2.4" id="aligning-initial-letter"><span
930930
<td><dfn class="css" data-dfn-type="property" data-export="" id="propdef-initial-letter-align">initial-letter-align<a class="self-link" href="#propdef-initial-letter-align"></a></dfn>
931931
<tr class="value">
932932
<th>Value:
933-
<td class="prod">auto <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> alphabetic <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> hanging <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> ideographic <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> margin-box <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> content-box
933+
<td class="prod">auto <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> alphabetic <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> ideographic <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> margin-box <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> content-box
934934
<tr>
935935
<th>Initial:
936936
<td>auto
@@ -967,11 +967,6 @@ <h3 class="heading settled" data-level="2.4" id="aligning-initial-letter"><span
967967
<dd>As described above, the cap height of the initial letter aligns with the cap height of the first line of text. The baseline of the initial letter aligns with the baseline of the Nth text baseline.
968968

969969

970-
<dt>hanging
971-
972-
<dd>The hanging baseline of the initial letter aligns with the hanging baseline of the first line of text.
973-
974-
975970
<dt>ideographic
976971

977972
<dd>The initial letter is centered in the N-line area.
@@ -1790,7 +1785,7 @@ <h2 class="no-num heading settled" id="property-index"><span class="content">Pro
17901785
<td>as specified
17911786
<tr>
17921787
<th scope="row"><a class="css" data-link-type="property" href="#propdef-initial-letter-align">initial-letter-align</a>
1793-
<td>auto | alphabetic | hanging | ideographic | margin-box | content-box
1788+
<td>auto | alphabetic | ideographic | margin-box | content-box
17941789
<td>auto
17951790
<td>::first-letter pseudo elements and inline level first child of a block container
17961791
<td>no

0 commit comments

Comments
 (0)