ladybird/Tests/LibWeb/Ref/expected/css/images-load-relative-to-style-sheet-ref.html
Sam Atkins bf873a2d5b Tests: Add tests for loading images from an imported style sheet
We previously had no coverage for the situation of "relative-linking to
an image in a style sheet which isn't in the same directory as the
document".
2025-04-15 09:54:35 +01:00

12 lines
447 B
HTML

<!DOCTYPE html>
<style>
#checkerboard {
width: 20px;
height: 20px;
background: url("../../data/2x2checkerboard.png");
background-size: cover;
}
</style>
<!-- FIXME: Workaround to ensure CSS background-image is loaded before taking screenshot: https://github.com/LadybirdBrowser/ladybird/issues/3448 -->
<img style="display:none" src="../../data/2x2checkerboard.png">
<div id="checkerboard"></div>