wpt / css / css-text / white-space / white-space-intrinsic-size-023.html

Status: FAIL | Duration: 12ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-text/white-space/white-space-intrinsic-size-023.html

<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSS Text Test: intrinsic sizing and 'white-space: normal' with Chinese characters</title>
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-breaking">
<link rel="match" href="reference/white-space-intrinsic-size-022-ref.html">
<meta name="assert" content="
  The max-content size puts all ideographs on the same line.
  The min-content size puts every ideograph on a different line.
">

<div style="width: max-content; border: solid">
  中文<span>中文</span>
</div>
<div style="width: min-content; border: solid">
  中文<span>中文</span>
</div>

/css/css-text/white-space/reference/white-space-intrinsic-size-022-ref.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>Test reference</title>
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">

<div style="width: 4ic; border: solid">
  中文中文
</div>
<div style="width: 1ic; border: solid">
  中<br>文<br>中<br>文
</div>