ladybird/Tests/LibWeb/Text/input/css/remove-property-shortand.html
Callum Law 670c247937 LibWeb: Resolve FIXME around shorthand properties in remove_property()
This exposes some false-positive sub-tests in the font-computed.html
test which are now correctly marked as failed.
2025-06-04 16:34:31 +01:00

25 lines
No EOL
651 B
HTML

<!DOCTYPE html>
<html>
<script src="../include.js"></script>
<div id="a"></div>
<script>
test(() => {
a.style.border = '1px solid red';
a.style.removeProperty('border');
if (a.style.getPropertyValue('border') != "") {
println("FAIL!: The border property should be removed");
return;
}
a.style.border = '1px solid red';
a.style.border = '';
if (a.style.getPropertyValue('border') != "") {
println("FAIL!: The border property should be removed when set to an empty string");
return;
}
println("PASS")
});
</script>
</html>