WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
283474
background-size near with near zero values fails
https://bugs.webkit.org/show_bug.cgi?id=283474
Summary
background-size near with near zero values fails
Karl Dubost
Reported
2024-11-20 23:55:43 PST
Go to
http://wpt.live/css/css-backgrounds/background-size/background-size-near-zero-png.html
You should see a green square like in Firefox and Chrome. Safari: Green Square visible <div style="background-image: url(support/50x50-green.png); width: 100px; height: 100px; background-size: 0.3px 0.3px;"></div> Safari: Green Square NOT visible <div style="background-image: url(support/50x50-green.png); width: 100px; height: 100px; background-size: 0.2px 0.2px;"></div> The floor value seems to be 0.249999992px FAIL 0.249999993px PASS inline const LengthSize& RenderStyle::backgroundSizeLength() const { return backgroundLayers().sizeLength(); }
https://searchfox.org/wubkat/rev/d45649fa32a499702c30474e94bd6843c4c67849/Source/WebCore/rendering/style/RenderStyleInlines.h#97
Attachments
rendering in safari, firefox, chrome
(979.61 KB, image/png)
2024-11-20 23:57 PST
,
Karl Dubost
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Karl Dubost
Comment 1
2024-11-20 23:57:15 PST
Created
attachment 473304
[details]
rendering in safari, firefox, chrome Safari Technology Preview 207 20621.1.4.3 Firefox Nightly 134.0a1 13424.11.8 Google Chrome Canary 133.0.6849.0 6849.0
Karl Dubost
Comment 2
2024-11-21 01:05:58 PST
fwiw: The minimal value for other browsers are Firefox: FAIL: 0.008333332px PASS: 0.008333333px Chrome: FAIL: 0.0078124997px PASS: 0.0078124998px
Karl Dubost
Comment 3
2024-11-21 01:06:27 PST
The minimal value for Safari is probably too high.
Radar WebKit Bug Importer
Comment 4
2024-11-21 18:03:13 PST
<
rdar://problem/140387662
>
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