wpt / css / css-page / page-name-display-none-child-print.html

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

/css/css-page/page-name-display-none-child-print.html

<!DOCTYPE html>
<html>
  <link rel="match" href="page-name-display-none-child-print-ref.html"/>
  <link rel="help" href="https://www.w3.org/TR/css-page-3/#using-named-pages"/>
  <body>
    <div style="page:a">a</div>
    <div style="page:c">
      <div style="display: none">c</div>
    </div>
    <div style="page:b">b</div>
  </body>
</html>

/css/css-page/page-name-display-none-child-print-ref.html

<!DOCTYPE html>
<html>
  <body>
    <div style="break-after: page">a</div>
    <!-- This should match the test case, even if page-breaks are being coalesced -->
    <div style="break-after: page"></div>
    <div>b</div>
  </body>
</html>