LibWeb: Use base URL for link loading

This commit is contained in:
Colin Reeder 2024-08-10 20:23:13 -06:00 committed by Sam Atkins
commit c6975a1680
Notes: github-actions[bot] 2024-08-13 13:35:13 +00:00
3 changed files with 20 additions and 2 deletions

View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<base href="..">
<link rel="stylesheet" href="body-background-color-red.css">
</head>
<body>
<script src="include.js"></script>
<script>
test(() => {
window.onload = () => {
println("document background: " + getComputedStyle(document.body).backgroundColor);
};
});
</script>
</body>
</html>