testing/web-platform/tests/css/css-backgrounds/box-shadow-outset-without-border-radius-001.html
author Cosmin Sabou <csabou@mozilla.com>
Sat, 12 Jul 2025 09:18:08 +0300 (4 hours ago)
changeset 796290 5ad1f0c58c82bdfa2f42fed870bbe143465398d0
parent 667473 859c5270e60a0d43f5898fef6c0d39e802588a0f
permissions -rw-r--r--
Revert "Bug 1977019 - re-enable hw video decoding testing. r=media-playback-reviewers,jolin" for causing win mda failures on test_hw_video_decoding.html This reverts commit 158474bdc0cf585b701bc47921f0a7d84f7bb84d.
<!DOCTYPE html>

 <meta charset="UTF-8">

  <title>CSS Backgrounds and Borders Test: box-shadow outset without border-radius</title>

  <link rel="author" title="Zhang Xiaochong" href="mailto:joy.xczhang@gmail.com">
  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
  <link rel="help" href="http://www.w3.org/TR/css3-background/#the-box-shadow">
  <link rel="match" href="reference/box-shadow-outset-without-border-radius-001-ref.html">

  <meta content="" name="flags">

  <!--

  Reviewed by Gérard Talbot on April 9th 2023

  More info: https://github.com/web-platform-tests/wpt/issues/10013

  https://github.com/web-platform-tests/wpt/pull/39445

  -->

  <style>
  div
    {
      border: transparent solid 8px;
      display: inline-block;
      height: 32px;
      margin: 32px 20px;
      padding: 16px;
      vertical-align: top;
      width: 32px;
    }

  /*

  An outer box-shadow casts a shadow as if the border-box
  of the element were opaque. Assuming a spread distance
  of zero, its perimeter has the exact same size and
  shape as the border box. The shadow is drawn outside
  the border edge only: it is clipped inside the border-box
  of the element.

  If a spread distance is defined, the shadow perimeter
  defined above is expanded outward (for outer box-shadows)
  by outset withting the shadow’s straight edges by the spread
  distance (and flooring the resulting width/height at zero).

  */

  div#first-subtest /* outset with NO spread */
    {
      box-shadow: black 10px 10px 0px 0px;
    }

  div#second-subtest /* outset with a 15px spread */
    {
      box-shadow: black 10px 10px 0px 15px;
    }

  div#third-subtest /* outset with NO spread */
    {
      box-shadow: black 10px -10px 0px 0px;
    }

  div#fourth-subtest /* outset with a 15px spread */
    {
      box-shadow: black 10px -10px 0px 15px;
    }

  div#fifth-subtest /* outset with NO spread */
    {
      box-shadow: black -10px 10px 0px 0px;
    }

  div#sixth-subtest /* outset with a 15px spread */
    {
      box-shadow: black -10px 10px 0px 15px;
    }

  div#seventh-subtest /* outset with NO spread */
    {
      box-shadow: black -10px -10px 0px 0px;
    }

  div#eighth-subtest /* outset with a 15px spread */
    {
      box-shadow: black -10px -10px 0px 15px;
    }
  </style>

  <div id="first-subtest"></div><div id="second-subtest"></div><div id="third-subtest"></div><div id="fourth-subtest"></div><br>

  <div id="fifth-subtest"></div><div id="sixth-subtest"></div><div id="seventh-subtest"></div><div id="eighth-subtest"></div>