mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-11-10 10:11:04 +00:00
20 lines
690 B
HTML
20 lines
690 B
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<script src="../include.js"></script>
|
||
|
|
<script>
|
||
|
|
test(() => {
|
||
|
|
try {
|
||
|
|
document.defaultView.getComputedStyle(document.documentElement, null).setProperty("foo", "bar");
|
||
|
|
println("FAIL");
|
||
|
|
} catch (e) {
|
||
|
|
println(`Calling setProperty() on a computed CSSStyleDeclaration throws error of type: ${e.name}`);
|
||
|
|
}
|
||
|
|
|
||
|
|
try {
|
||
|
|
document.defaultView.getComputedStyle(document.documentElement, null).removeProperty("foo");
|
||
|
|
println("FAIL");
|
||
|
|
} catch (e) {
|
||
|
|
println(`Calling removeProperty() on a computed CSSStyleDeclaration throws error of type: ${e.name}`);
|
||
|
|
}
|
||
|
|
});
|
||
|
|
</script>
|