WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
279054
When zooming out, the `box-shadow` spread-radius expands more than the defined value.
https://bugs.webkit.org/show_bug.cgi?id=279054
Summary
When zooming out, the `box-shadow` spread-radius expands more than the define...
Moubeen awan
Reported
2024-09-03 04:32:29 PDT
Created
attachment 472415
[details]
For information: The browser is zoomed out t0 75%. We’ve implemented borders using box-shadows in our project. For example: ``` HTML: <div class="alert">Please be alert!</div> CSS: .alert { width: 60px; height: 60px; box-shadow: 0 0 0 1px #949a9e; } ``` Here, the div has a 1px border created with box-shadow. ACTUAL RESULT: When zooming out in Safari browser (version 17.1), the spread-radius of the box-shadow extends beyond the defined 1px, sometimes expanding more from the top, left, and right, and other times from the right and bottom. EXPECTED RESULT: The box-shadow should not spread beyond the defined 1px. Please refer to the attachment for further details.
Attachments
For information: The browser is zoomed out t0 75%.
(247.16 KB, image/png)
2024-09-03 04:32 PDT
,
Moubeen awan
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-09-03 12:53:31 PDT
<
rdar://problem/135217881
>
Simon Fraser (smfr)
Comment 2
2024-09-03 15:19:43 PDT
This is a result of pixel snapping (attempting to align edges with device pixel boundaries).
Moubeen awan
Comment 3
2024-09-03 20:52:23 PDT
@simnon is this something should be fixed is Safari browser?
Moubeen awan
Comment 4
2024-09-03 20:52:45 PDT
(In reply to Moubeen awan from
comment #3
)
> @simnon is this something should be fixed by Safari browser?
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