Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/CSS2/normal-flow/video-paint-order.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Video paint order</title>
<link rel="author" title="Philip Rogers" href="pdr@chromium.org">
<link rel="match" href="video-paint-order-ref.html">
<style>
video {
background: red;
width: 95px;
height: 95px;
}
#negative-margin {
display: inline-block;
width: 100px;
height: 100px;
background: green;
margin-left: -100px;
}
</style>
<video></video>
<!-- #negative-margin should paint fully on top of the video. -->
<div id="negative-margin"></div>