segment-break-transformation-removable-4

CSS Text 4.1.2. Segment Break Transformation Rules

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
Test checks that a sequence which consists of multiple collapsible segment breaks mixed with multiple white spaces should be removed correctly, if the character immediately before/after the sequence is the zero-width space character (U+200B), or both the character before/after the sequence is F, W, or H (not A), and neither side is Hangul.

Source

 1 <!DOCTYPE html>
 2 <html><head>
 3 <meta charset="utf-8">
 4 <title>CSS Text 4.1.2. Segment Break Transformation Rules</title>
 5 <link href="mailto:jeremychen@mozilla.com" rel="author" title="Chun-Min (Jeremy) Chen">
 6 <link href="https://www.mozilla.org" rel="author" title="Mozilla">
 7 <link href="https://drafts.csswg.org/css-text-3/#line-break-transform" rel="help">
 8 <link href="support/ahem.css" type="text/css" rel="stylesheet">
 9 <link href="reference/segment-break-transformation-removable-ref.htm" rel="match">
10 <meta content="Test checks that a sequence which consists of multiple collapsible
11 segment breaks mixed with multiple white spaces should be removed correctly,
12 if the character immediately before/after the sequence is the zero-width space character (U+200B),
13 or both the character before/after the sequence is F, W, or H (not A), and neither side is Hangul." name="assert">
14 <style> p { line-height: 1; font-family: ahem; } </style>
15 </head>
16 <body>
17 <div>Test passes if there is <b>no</b> white space between 2nd and 3rd CJK character.
18 <!--Some[WS][LF][WS][LF][WS][LF][WS]Chinese-->
19 <p>一些 
20  
21  
22  中文</p>
23 <!--Some[ZWSP][WS][LF][WS][LF][WS][LF][WS]Chinese-->
24 <p>一些&#x200B; 
25  
26  
27  中文</p>
28 <!--Some[WS][LF][WS][LF][WS][LF][WS][ZWSP]Chinese-->
29 <p>一些 
30  
31  
32  &#x200B;中文</p>
33 <!--Some[ZWSP][WS][LF][WS][LF][WS][LF][WS]Hangul-->
34 <p>一些&#x200B; 
35  
36  
37  언문</p>
38 </div>
39 
40 
41 </body></html>