[Webkit-unassigned] [Bug 254820] getComputedStyle on backgroundSize = "0px" returns the wrong value
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Nov 25 21:12:07 PST 2024
https://bugs.webkit.org/show_bug.cgi?id=254820
Karl Dubost <karlcow at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |https://wpt.fyi/results/css
| |/css-backgrounds/background
| |-size-001.html
CC| |karlcow at apple.com
Keywords| |BrowserCompat, WPTImpact
Summary|css/css-backgrounds/backgro |getComputedStyle on
|und-size-001.html fails in |backgroundSize = "0px"
|modern WPT test case |returns the wrong value
--- Comment #3 from Karl Dubost <karlcow at apple.com> ---
Renaming the title
See http://wpt.live/css/css-backgrounds/background-size-001.html
https://wpt.fyi/results/css/css-backgrounds/background-size-001.html
With
```
data:text/html,<div id="test"></div>
```
and doing in the console.
```
> document.document.querySelector("#test").style.backgroundSize = "0px";
< "0px"
> window.getComputedStyle(document.querySelector("#test")).getPropertyValue("background-size")
< "0px auto"
> window.getComputedStyle(document.querySelector("#test")).backgroundSize
< "0px auto"
```
it should return `0px` only.
--
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/20241126/196dfd1a/attachment-0001.htm>
More information about the webkit-unassigned
mailing list