mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-21 03:10:26 +00:00
This exposes some false-positive sub-tests in the font-computed.html test which are now correctly marked as failed.
25 lines
No EOL
651 B
HTML
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> |