wpt / css / css-ruby / improperly-contained-annotation-001.html

Status: PASS | Duration: 15ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-ruby/improperly-contained-annotation-001.html

<!DOCTYPE html>

 <meta charset="UTF-8">

 <title>CSS Ruby Test: Improperly-contained ruby annotation</title>

  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
  <link rel="help" href="https://www.w3.org/TR/css-ruby-1/#ruby-display">
  <link rel="help" href="https://www.w3.org/TR/css-ruby-1/#box-fixup">
  <link rel="match" href="reference/improperly-contained-annotation-001-ref.html">

  <meta content="This test checks that an improperly-contained ruby annotation is wrapped in an anonymous ruby container.">

  <style>
  ruby
    {
      background-color: lightblue;
      font-size: 40px;
    }

  rbc
    {
      display: ruby-base-container;
    }
  </style>

  <ruby><rbc>B<rt>A</rt></rbc></ruby>

/css/css-ruby/reference/improperly-contained-annotation-001-ref.html

<!DOCTYPE html>

  <meta charset="UTF-8">

  <title>CSS Reference File</title>

  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">

  <style>
  ruby
    {
      background-color: lightblue;
      font-size: 40px;
    }
  </style>

  <ruby><rbc>B<ruby>&#8203;<rt>A</rt></ruby></rbc></ruby>

  <!--

  &#8203; or &#x200B; is the entity reference for zero-wide space.

  MathML uses the entity name &ZeroWidthSpace; for this character.

  -->