wpt / css / css-ui / text-overflow-string-002.html

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

/css/css-ui/text-overflow-string-002.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Basic User Interface Test: text-overflow - string - clip ellipsis when space is insufficient</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-002-ref.html">
<meta name="assert" content="Test checks when there is insufficient space for the ellipsis">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
  div {
    font-family: Ahem;
    font-size: 10px;
  }
  span {
    font-family: Ahem;
    font-size: 30px;
  }
  .test {
    overflow: hidden;
    text-overflow: "123456789";
    width: 50px;
  }
</style>
<body>
  <p>Test passes if the two blocks are the same</p>
  <div class="test">
    <span>TestChecksThatTheBrokenContentRepalcedBy12</span>
  </div>
  <br/>
  <div>
    <span>T</span>12
  </div>
</body>

/css/css-ui/reference/text-overflow-string-002-ref.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Basic User Interface Reference File</title>
<link rel="author" title="Minseong Kim" href="mailto:jja08111@gmail.com">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
  div {
    font-family: Ahem;
    font-size: 10px;
  }
  span {
    font-family: Ahem;
    font-size: 30px;
  }
</style>
<body>
  <p>Test passes if the two blocks are the same</p>
  <div>
    <span>T</span>12
  </div>
  <br/>
  <div>
    <span>T</span>12
  </div>
</body>