wpt / css / css-ui / text-overflow-string-004.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-004.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Basic User Interface Test: text-overflow - string with text-emphasis</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-004-ref.html">
<meta name="assert" content="Test checks that text-emphasis is not shown on the string ellipsis">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
  body, p {
    margin: 0;
  }
  div {
    font-family: monospace;
    font-size: 10px;
    overflow: hidden;
    text-overflow: "123";
    text-emphasis: dot;
    /* 120px for four Ahem glyphs + 3ch for the ellipsis string "123" which is
       monospace. */
    width: calc(120px + 3.1ch);
  }
  span {
    font-family: Ahem;
    font-size: 30px;
  }
</style>
<body>
  <p>Test passes if text-emphasis is only on a black rectangle, not on the <strong>123</strong></p>
  <div>
    <span>TestChecksThatTheBrokenContentRepalcedBy123</span>
  </div>
</body>

/css/css-ui/reference/text-overflow-string-004-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>
  body, p {
    margin: 0;
  }
  div {
    font-family: monospace;
    font-size: 10px;
    overflow: hidden;
  }
  span {
    font-family: Ahem;
    font-size: 30px;
    text-emphasis: dot;
  }
</style>
<body>
  <p>Test passes if text-emphasis is only on a black rectangle, not on the <strong>123</strong></p>
  <div>
    <span>Test</span>123
  </div>
</body>