Skip to content

Commit 0d8b8c1

Browse files
committed
Add results for cursive section
1 parent b41ef80 commit 0d8b8c1

File tree

6 files changed

+40
-14
lines changed

6 files changed

+40
-14
lines changed

gap-analysis/images/shaping-1.png

1.76 KB
Loading

gap-analysis/images/shaping-2.png

2.9 KB
Loading
2.13 KB
Loading
6.54 KB
Loading
3.44 KB
Loading

gap-analysis/index.html

Lines changed: 40 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
</div>
8585
</div>
8686

87-
<section id="h_introduction">
87+
<section id="h_introduction">
8888
<h2>Introduction</h2>
8989
<p>The W3C needs to make sure that the text layout and typographic needs of scripts and languages around the world are built in to technologies such as HTML, CSS, SVG, etc. so that Web pages and eBooks can look and behave as people expect around the world.</p>
9090

@@ -113,7 +113,7 @@ <h3>Prioritization</h3>
113113
<li class="basic"></li>
114114
<li class="broken"></li>
115115
<li class="tbd"></li>
116-
</ul>
116+
</ul>
117117

118118
<p>It is important to note that these colours do not indicate to what extent a particular features is broken. They indicate the impact of a broken or missing feature on the content author or end user.</p>
119119
<p>Basic styling is the level that would be generally accepted as sufficient for most Web pages. Advanced level support would include additional features one might expect to include in ebooks or other advanced typographic formats. There may be features of a script or language that are not supported on the Web, but that are not generally regarded as necessary (usually archaic or obscure features). In this case, the feature can be described here, but the status should be marked as OK.</p>
@@ -182,8 +182,34 @@ <h3>Cursive text</h3>
182182
</figcaption>
183183
</figure>
184184

185-
<p><a href="https://www.w3.org/TR/alreq/#h_letterhighlights">Arabic Layout Requirement</a> document includes a section dedicated to this topic.</p>
186-
185+
<p><a href="https://www.w3.org/TR/alreq/#h_letterhighlights">Arabic Layout Requirement</a> document includes a section dedicated to this topic.</p>
186+
187+
<section id="cursive_shadow">
188+
<h4>Text shadow works as expected</h4>
189+
<p>The <code class="kw" translate="no">text-shadow</code> property in CSS doesn't disrupt the flow of cursive text in <span class="pass">any major browser</span>. See a <a href="https://w3c.github.io/i18n-tests/results/cursive#text_shadow"> test</a>.</p>
190+
<p><img src="images/text-shadow.png" alt=""></p>
191+
</section>
192+
193+
<section id="cursive_stroke">
194+
<h4>Text stroke cuts joining glyphs apart</h4>
195+
<p>The property <code class="kw" translate="no">text-stroke</code> is not yet in CSS, but has been implemented in major browsers under the name <code class="kw" translate="no">-webkit-text-stroke</code>. In <span class="fail">all major browsers</span>, the stroke around the text interrupts the cursive flow. See a <a href="https://w3c.github.io/i18n-tests/results/cursive#text_stroke">test</a>.</p>
196+
<p><img src="images/text-stroke.png" alt=""></p>
197+
</section>
198+
199+
<section id="cursive_opacity">
200+
<h4>Text opacity shows glyph overlap</h4>
201+
<p>When opacity is applied to text, <span class="fail">Firefox</span> and <span class="fail">Chrome</span> produce dark patches where the cursive glyphs overlap, but <span class="pass">Safari</span> and <span class="pass">Edge</span> don't. See the <a href="https://w3c.github.io/i18n-tests/results/cursive#text_opacity">test</a>.</p>
202+
<p><img src="images/text-opacity.png" alt=""></p>
203+
</section>
204+
205+
<section id="cursive_style">
206+
<h4>Inline elements break cursive shaping</h4><p>When elements surround part of a cursive run of text, and apply styling, the results often break the cursive joins.</p>
207+
<p><img src="images/shaping-1.png" alt=""> <img src="images/shaping-2.png" alt=""></p>
208+
<p>The expected behaviour is <a href="https://github.com/w3c/csswg-drafts/issues/698">not yet fully confirmed</a> by the CSS spec, and will probably depend on the type of styling that is applied, but there is a level of agreement that something like just colouring a letter shouldn't break the shaping. <span class="pass">Firefox</span> and <span class="pass">Edge</span> allow you to put a <code class="kw" translate="no">span</code> around a medial letter to colour it without breaking the cursive joins. <span class="fail">Chrome</span> and <span class="fail">Safari</span>, however, break the shaping sequence. (See the results just above – successful on the left, unsuccessful on the right.) See the <a href="https://w3c.github.io/i18n-tests/results/css-text-shaping">tests and results</a> for a range of different styling effects.</p>
209+
</section>
210+
211+
212+
187213
</section>
188214

189215

@@ -345,7 +371,7 @@ <h3>Justification</h3>
345371
<p>A basic implementation must provide at least one of these strategies for adequate justification results. Advanced implementations should provide users with the necessary means to control the selection of strategies, adjustment of their attributes, and the priority with which they are being applied. </p>
346372
<p>Currently, CSS specifications do not provide these advanced features, but recommend that the implementations select the justification strategy appropriate to the text. </p>
347373
<p><a href="https://w3c.github.io/alreq/#h_justification">Arabic Layout Requirement</a> document includes a section dedicated to this topic.</p>
348-
</section>
374+
</section>
349375

350376

351377

@@ -365,7 +391,7 @@ <h3>Initial letter styling</h3>
365391

366392

367393
<p>Although initial letter styling is not an innate feature of the Arabic script, there have been occurences of its usage noted. However, the specifications and guidelines for composition of these decorative elements are undefined or insubstantial; for example, which of the joining forms of letters is to be used or how the joining behaviour is treated accross the boundary between the styled initial letter and rest of the paragraph.</p>
368-
</section>
394+
</section>
369395

370396

371397

@@ -404,7 +430,7 @@ <h3>Bidirectional layout</h3>
404430

405431

406432
<p>There needs to be wider adoption of logical keywords such as start and end, rather than left and right.</p>
407-
</section>
433+
</section>
408434

409435

410436

@@ -415,7 +441,7 @@ <h3>Vertical text</h3>
415441

416442

417443
<p>We need to clarify whether there is a particular requirement for handling arabic text specially in vertical lines, such as upright glyphs. We are also waiting on implementation of sideways values of writing-modes in order to be able to effectively use arabic text in vertical arrangements (such as book spines, table headings, etc), but that is not a problem specific to arabic.</p>
418-
</section>
444+
</section>
419445

420446

421447

@@ -425,7 +451,7 @@ <h3>Notes, footnotes, etc.</h3>
425451

426452

427453
<p></p>
428-
</section>
454+
</section>
429455

430456

431457

@@ -435,7 +461,7 @@ <h3>Page numbering, running headers, etc.</h3>
435461

436462

437463
<p></p>
438-
</section>
464+
</section>
439465

440466

441467

@@ -445,7 +471,7 @@ <h3>Other page layout &amp; pagination features</h3>
445471

446472

447473
<p></p>
448-
</section>
474+
</section>
449475
</section>
450476

451477

@@ -463,7 +489,7 @@ <h3>Culture-specific features</h3>
463489

464490

465491
<p></p>
466-
</section>
492+
</section>
467493

468494

469495

@@ -473,7 +499,7 @@ <h3>What else?</h3>
473499

474500

475501
<p></p>
476-
</section>
502+
</section>
477503

478504
</section>
479505

@@ -545,6 +571,6 @@ <h2>Acknowledgements</h2>
545571
<p class="acknowledgement">This Person, That Person, etc</p>
546572

547573
<p data-lang="en">Please find the latest info of the contributors at the <a href="https://github.com/w3c/hlreq/graphs/contributors">GitHub contributors list</a>.</p>
548-
</section>
574+
</section>
549575
</body>
550576
</html>

0 commit comments

Comments
 (0)