mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-16 08:02:52 +00:00
18 lines
880 B
HTML
18 lines
880 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
function testPartialDocumentAttribute(documentAttr, bodyAttr) {
|
|
println(`before document.${documentAttr}=${document[documentAttr]}`);
|
|
println(`before body attribute ${bodyAttr}=${document.body.getAttribute(bodyAttr)}`);
|
|
document[documentAttr] = "red";
|
|
println(`after document.${documentAttr}=${document[documentAttr]}`);
|
|
println(`after body attribute ${bodyAttr}=${document.body.getAttribute(bodyAttr)}`);
|
|
}
|
|
testPartialDocumentAttribute("fgColor", "text");
|
|
testPartialDocumentAttribute("linkColor", "link");
|
|
testPartialDocumentAttribute("alinkColor", "alink");
|
|
testPartialDocumentAttribute("vlinkColor", "vlink");
|
|
testPartialDocumentAttribute("bgColor", "bgcolor");
|
|
});
|
|
</script>
|