[Webkit-unassigned] [Bug 20269] Removing a Background Picture via Javascript does not remove the picture
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Apr 24 14:10:31 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=20269
--- Comment #3 from Frances <frances_c at cox.net> ---
Here is the code behind the test case where it is working in Safari 17.4.1:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
</head>
<body style="background: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQccs1a2okUBYX1yvmdyQSjzVCb2cS3GqhCml3ekj2GoA&s') -20px -20px no-repeat;">
<button id="changeBackgroundButton">Change Background</button>
<script>
const changeBackgroundButton = document.getElementById('changeBackgroundButton');
changeBackgroundButton.addEventListener('click', function() {
document.body.style.background = '';
});
</script>
</body>
</html>
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240424/6c77e7a1/attachment-0001.htm>
More information about the webkit-unassigned
mailing list