<!DOCTYPE html><metacharset="UTF-8"><title>CSS Backgrounds and Borders Test: box-shadow inset without border-radius</title><linkrel="author"title="Zhang Xiaochong"href="mailto:joy.xczhang@gmail.com"><linkrel="author"title="Gérard Talbot"href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"><linkrel="help"href="http://www.w3.org/TR/css3-background/#the-box-shadow"><linkrel="match"href="reference/box-shadow-inset-without-border-radius-ref.html"><metacontent=""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:transparentsolid8px;display:inline-block;height:32px;margin:0px8px8px0px;padding:16px;vertical-align:top;width:32px;}/* An inner box-shadow casts a shadow as if everything outside the padding edge were opaque. Assuming a spread distance of zero, its perimeter has the exact same size and shape as the padding box. The shadow is drawn inside the padding edge only: it is clipped outside the padding box of the element. If a spread distance is defined, the shadow perimeter defined above is contracted inward (for inner box-shadows) by insetting the shadow’s straight edges by the spread distance (and flooring the resulting width/height at zero). */div#first-subtest/* inset with NO spread */{box-shadow:black10px10px0px0pxinset;}div#second-subtest/* inset with a 15px spread */{box-shadow:black10px10px0px15pxinset;}div#third-subtest/* inset with NO spread */{box-shadow:black10px-10px0px0pxinset;}div#fourth-subtest/* inset with a 15px spread */{box-shadow:black10px-10px0px15pxinset;}div#fifth-subtest/* inset with NO spread */{box-shadow:black-10px10px0px0pxinset;}div#sixth-subtest/* inset with a 15px spread */{box-shadow:black-10px10px0px15pxinset;}div#seventh-subtest/* inset with NO spread */{box-shadow:black-10px-10px0px0pxinset;}div#eighth-subtest/* inset with a 15px spread */{box-shadow:black-10px-10px0px15pxinset;}</style><divid="first-subtest"></div><divid="second-subtest"></div><divid="third-subtest"></div><divid="fourth-subtest"></div><br><divid="fifth-subtest"></div><divid="sixth-subtest"></div><divid="seventh-subtest"></div><divid="eighth-subtest"></div>