2025-03-18 19:28:35 +01:00
|
|
|
<!DOCTYPE html>
|
2023-06-10 19:53:36 +02:00
|
|
|
<style>
|
2023-09-14 19:17:32 +02:00
|
|
|
body {
|
|
|
|
|
background: green;
|
|
|
|
|
}
|
2023-06-10 19:53:36 +02:00
|
|
|
</style>
|
|
|
|
|
<script src="include.js"></script>
|
|
|
|
|
<script>
|
2024-10-02 12:58:07 -04:00
|
|
|
asyncTest(done => {
|
2023-09-14 19:17:32 +02:00
|
|
|
let link = document.createElement("link");
|
|
|
|
|
link.setAttribute("rel", "stylesheet");
|
|
|
|
|
link.setAttribute("href", "body-background-color-red.css");
|
|
|
|
|
link.setAttribute("media", "print");
|
|
|
|
|
document.head.appendChild(link);
|
2023-06-10 19:53:36 +02:00
|
|
|
|
2023-09-14 19:17:32 +02:00
|
|
|
window.onload = function () {
|
|
|
|
|
println("document background: " + getComputedStyle(document.body).backgroundColor);
|
2024-10-02 12:58:07 -04:00
|
|
|
done();
|
2023-09-14 19:17:32 +02:00
|
|
|
};
|
|
|
|
|
});
|
2023-06-10 19:53:36 +02:00
|
|
|
</script>
|