ladybird/Tests/LibWeb/Ref/input/css/images-load-relative-to-linked-style-sheet.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

13 lines
550 B
HTML

<!DOCTYPE html>
<link rel="match" href="../../expected/css/images-load-relative-to-style-sheet-ref.html" />
<link rel="stylesheet" href="../../data/checkerboard-background.css" />
<style>
#checkerboard {
width: 20px;
height: 20px;
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>