shaping-003.html (1300B)
1 <!DOCTYPE html> 2 <html lang="en" > 3 <head> 4 <meta charset="utf-8"> 5 <title>shaping: font-style</title> 6 <meta name="assert" content="Arabic shaping should not be broken across inline box boundaries for changes in font style."> 7 <link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org"> 8 <link rel="help" href="https://drafts.csswg.org/css-text/#boundary-shaping"> 9 <link rel="match" href="reference/shaping-003-ref.html"> 10 <meta name="flags" content="should"> 11 <style type="text/css"> 12 @font-face { 13 font-family: 'csstest_noto'; 14 src: url('/fonts/noto/NotoNaskhArabic-regular.woff2') format('woff2'); 15 font-style: normal; 16 } 17 .test, .ref { border: 1px solid #02D7F6; margin: 20px; padding: 10px; width: 3em; font-size: 120px; font-family: "csstest_noto"; } 18 /* the CSS above is not part of the test */ 19 .fontstyle { font-style: italic; } 20 </style> 21 </head> 22 <body> 23 <p class="instructions">Test passes if the three Arabic characters in each box join, making the two boxes identical.</p> 24 25 <div class="test" lang="ar" dir="rtl">ع<span class="fontstyle">ع</span>ع</div> 26 <div class="ref" lang="ar" dir="rtl">ع‍<span class="fontstyle">‍ع‍</span>‍ع</div> 27 <!-- Notes: 28 This test uses the Noto Naskh Arabic font to control variables related to font choice. 29 --> 30 </body> 31 </html>