| <!DOCTYPE html> |
| <meta charset="utf-8"> |
| <title>CSS Basic User Interface Test: text-overflow - string</title> |
| <link rel="author" title="Minseong Kim" href="mailto:jja08111@gmail.com"> |
| <link rel="help" href="https://drafts.csswg.org/css-overflow-4"> |
| <link rel="match" href="reference/text-overflow-string-012-ref.html"> |
| <meta name="assert" content="Test checks that a line feed in text-overflow string |
| is converted to a space when one side is Hangul."> |
| <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> |
| <style> |
| @font-face { |
| font-family: "cjk-kr-test"; |
| src: url("/fonts/noto/cjk-kr/NotoSansCJKkr-Regular-subset.otf"); |
| } |
| @font-face { |
| font-family: "emoji-test"; |
| src: url("/fonts/noto/color-emoji/NotoColorEmoji-subset.ttf"); |
| } |
| div { |
| font-family: "cjk-kr-test", "emoji-test", monospace; |
| font-size: 10px; |
| overflow: hidden; |
| text-overflow: "안녕\0A🟢"; |
| /* 120px for four Ahem glyphs + (32px + 1ch) for the ellipsis string "안녕 🟢" |
| + 1px margin. */ |
| width: calc(120px + 32px + 1ch + 1px); |
| } |
| span { |
| font-family: Ahem; |
| font-size: 30px; |
| } |
| </style> |
| <body> |
| <p>Test passes if there is an <strong>안녕 🟢</strong> after a black rectangle below.</p> |
| <div> |
| <span>TestChecksThatTheBrokenContentRepalcedByTextOverflow</span> |
| </div> |
| </body> |