Skip to content

Commit 6850bc0

Browse files
committed
[css-inline] add example of Hebrew alignment
1 parent f9a82f7 commit 6850bc0

3 files changed

Lines changed: 27 additions & 1 deletion

File tree

css-inline/Overview.bs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,21 @@ span.initial {
510510
</pre>
511511
</div>
512512

513+
514+
515+
<div class="example">
516+
Initial letter in Hebrew
517+
<pre>
518+
span.initial {
519+
initial-letter: 2;
520+
initial-letter-alignment: hebrew;
521+
}
522+
523+
<img src="images/hebrew-initial-letter.png" alt="optical kerning in the presence or absence of a space after the initial letter" width="480"/>
524+
</pre>
525+
</div>
526+
527+
513528
Except when ''border-box'' is specified,
514529
the alignment points of the <a>initial letter</a>
515530
are automatically determined from its contents:

css-inline/Overview.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<div class="head">
5959
<p data-fill-with="logo"><a class="logo" href="http://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/Icons/w3c_home" width="72"> </a> </p>
6060
<h1 class="p-name no-ref" id="title">CSS Inline Layout Module Level 3</h1>
61-
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2015-09-15">15 September 2015</time></span></h2>
61+
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2015-09-23">23 September 2015</time></span></h2>
6262
<div data-fill-with="spec-metadata">
6363
<dl>
6464
<dt>This version:
@@ -558,6 +558,7 @@ <h4 class="heading settled" data-level="2.3.1" id="initial-letter-properties"><s
558558
<li>all text decoration properties (see <a data-link-type="biblio" href="#biblio-css3-text-decor">[CSS3-TEXT-DECOR]</a>)
559559
<li>all margin, border and padding properties (see <a data-link-type="biblio" href="#biblio-css21">[CSS21]</a> and <a data-link-type="biblio" href="#biblio-css3bg">[CSS3BG]</a>)
560560
</ul>
561+
<p class="note" role="note">Note: Which properties apply to <a data-link-type="dfn" href="#initial-letter">initial letter</a> depend on whether it is an inline box or an <a data-link-type="dfn" href="#initial-letter">initial letter</a> box, as <a data-link-type="dfn" href="#initial-letter">initial letter</a> is a display type.</p>
561562
<p class="issue" id="issue-939d845d"><a class="self-link" href="#issue-939d845d"></a> Add <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-width">width</a>/<a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-height">height</a> as requested by Tantek... need to integrate with model.</p>
562563
<h4 class="heading settled" data-level="2.3.2" id="initial-letter-model"><span class="secno">2.3.2. </span><span class="content"> Layout Model</span><a class="self-link" href="#initial-letter-model"></a></h4>
563564
<p>An <a data-link-type="dfn" href="#initial-letter">initial letter</a> is laid out following the steps outlined below:</p>
@@ -643,6 +644,16 @@ <h3 class="heading settled" data-level="2.4" id="aligning-initial-letter"><span
643644
initial-letter: 2;
644645
initial-letter-alignment: ideographic;
645646
}
647+
</pre>
648+
</div>
649+
<div class="example" id="example-98bec6c2">
650+
<a class="self-link" href="#example-98bec6c2"></a> Initial letter in Hebrew
651+
<pre>span.initial {
652+
initial-letter: 2;
653+
initial-letter-alignment: hebrew;
654+
}
655+
656+
<img alt="optical kerning in the presence or absence of a space after the initial letter" src="images/hebrew-initial-letter.png" width="480">
646657
</pre>
647658
</div>
648659
<p>Except when <a class="css" data-link-type="maybe" href="#valdef-initial-letter-align-border-box">border-box</a> is specified,
64 KB
Loading

0 commit comments

Comments
 (0)