wpt / css / css-text-decor / text-emphasis-line-height-001z.html

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

/css/css-text-decor/text-emphasis-line-height-001z.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Test: text-emphasis line height, top, textarea</title>
<link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
<link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-emphasis-position-property">
<meta name="assert" content="text emphasis marks should expand the line height like ruby if necessary">
<link rel="match" href="text-emphasis-line-height-001-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
textarea {
  all: inherit;
  font: 40px Ahem;
  width: 100%;
  height: 10em; /* ensure there's plenty of height even if the default font is quite tall,
                   to avoid risk of a vertical scrollbar showing up inside textarea */
  box-sizing: border-box;
  border: 0 none; margin: 0; padding: 0;
}
</style>
<p>Pass if the emphasis marks are below the black line:</p>
<textarea lang="ja" style="line-height: 1; border-top: 1px solid black; text-emphasis: circle;">試験テスト</textarea>

/css/css-text-decor/text-emphasis-line-height-001-ref.html

<!DOCTYPE html>
<meta charset="utf-8">
<!-- This file was generated automatically by the script
     ./support/generate-text-emphasis-line-height-tests.py -->
<title>CSS Reference: text-emphasis line height, top</title>
<link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
div { font: 40px Ahem; }
rt { font-variant-east-asian: inherit; }
</style>
<p>Pass if the emphasis marks are below the black line:</p>
<div lang="ja" style="line-height: 1; border-top: 1px solid black; writing-mode: horizontal-tb; ruby-position: over"><ruby>試<rt>&#x25CF;</rt>験<rt>&#x25CF;</rt>テ<rt>&#x25CF;</rt>ス<rt>&#x25CF;</rt>ト<rt>&#x25CF;</rt></ruby></div>