Why does clip-path affect the stacking order (z-index) of elements later in DOM?
问题 This has been asked before, but only where z-index is explictly defined in the CSS. I am trying to use clip-path on a heading, but then pull up an image from within an element beneath this back over the top of that header. However, as soon as I define a clip-path on the header, the image (which should be higher up the stacking order as it appears later in the code) goes underneath the header : body { padding: 1em; } header { background: #a00; clip-path: polygon(0 0, 100% 0, 100% calc(100% -