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

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

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

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Basic User Interface Test: text-overflow with bidi string ellipsis</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-006-ref.html">
<meta name="assert" content="Test checks that ellipsis string has bidirectional text.">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
  @font-face {
    /* Pin a bundled font covering Hebrew so the bidi content is laid out with
       known, platform-independent advances. */
    font-family: "mplus-test";
    src: url("/fonts/mplus-1p-regular.woff");
  }
  div {
    font-family: "mplus-test";
    font-size: 10px;
    overflow: hidden;
    text-overflow: "שלום 1234";
    /* 90px for three Ahem glyphs + 49px for the ellipsis string "שלום 1234"
       + 1px margin. */
    width: calc(90px + 49px + 1px);
  }
  span {
    font-family: Ahem;
    font-size: 30px;
  }
</style>
<body>
  <p>Test passes if there is an "<strong>שלום 1234</strong>" after a black rectangle below.</p>
  <div>
    <span>TestChecksThatTheBrokenContentRepalcedByBidiText</span>
  </div>
</body>

/css/css-ui/reference/text-overflow-string-006-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>
  @font-face {
    font-family: "mplus-test";
    src: url("/fonts/mplus-1p-regular.woff");
  }
  div {
    font-family: "mplus-test";
    font-size: 10px;
    width: calc(90px + 49px + 1px);  /* matches the test */
  }
  span {
    font-family: Ahem;
    font-size: 30px;
  }
</style>
<body>
  <p>Test passes if there is an "<strong>שלום 1234</strong>" after a black rectangle below.</p>
  <div>
    <span>Tes</span>שלום 1234
  </div>
</body>