WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
254820
css/css-backgrounds/background-size-001.html is wrong
https://bugs.webkit.org/show_bug.cgi?id=254820
Summary
css/css-backgrounds/background-size-001.html is wrong
Brent Fulgham
Reported
2023-03-31 09:17:06 PDT
This test now fails in an update of the WPT tests to 8f71659306c53f3cabad054ed02ac7c4d14de693.
Attachments
Diff of test case
(3.60 KB, patch)
2023-03-31 09:28 PDT
,
Brent Fulgham
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-03-31 09:17:24 PDT
<
rdar://problem/107475107
>
Brent Fulgham
Comment 2
2023-03-31 09:28:09 PDT
Created
attachment 465702
[details]
Diff of test case Expectations changed from "{Something} auto" to just "{Something}"
Karl Dubost
Comment 3
2024-11-25 21:12:07 PST
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.
Karl Dubost
Comment 4
2024-11-25 21:14:45 PST
Probably done here.
https://searchfox.org/wubkat/rev/d45649fa32a499702c30474e94bd6843c4c67849/Source/WebCore/css/ComputedStyleExtractor.cpp#2440-2453
Karl Dubost
Comment 5
2024-11-25 22:55:49 PST
This test is being contradicted by
https://wpt.fyi/results/css/css-backgrounds/parsing/background-size-computed.html
Karl Dubost
Comment 6
2024-11-25 22:56:23 PST
I have a fix for adjusting to
http://wpt.live/css/css-backgrounds/background-size-001.html
Karl Dubost
Comment 7
2024-11-25 23:28:02 PST
So wait, there are a couple of things to change in fact. WebKit has the correct behavior in this instance, but some tests need to be modified. Tim added it to the CSS WG agenda Agenda+ to
https://github.com/w3c/csswg-drafts/issues/7802
and see for previous discussions
https://github.com/WebKit/WebKit/pull/3372
Karl Dubost
Comment 8
2024-11-25 23:49:22 PST
Pull request:
https://github.com/WebKit/WebKit/pull/37148
EWS
Comment 9
2024-11-26 19:43:35 PST
Committed
287112@main
(3d8628034199): <
https://commits.webkit.org/287112@main
> Reviewed commits have been landed. Closing PR #37148 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug