WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
24751
Selecting text in element with box-shadow goes too low
https://bugs.webkit.org/show_bug.cgi?id=24751
Summary
Selecting text in element with box-shadow goes too low
Wander
Reported
2009-03-22 14:21:08 PDT
Selecting text in a rotated element normally works fine, but as soon as I give it a bigger shadow, selecting the top lines won't work anymore. In the code below, changing the 30px in 20px fixes the problem. I get the bug in Safari 4 public beta (webkit 528.16) and Chromium build 12245 (webkit 530.4) <style> .a{ -webkit-box-shadow:10px 10px 30px #000; -webkit-transform:rotate(10deg); margin:20%; } </style> <div class="a">Just some text<br/>Just some text<br/>Just some text<br/>Just some text</div>
Attachments
Add attachment
proposed patch, testcase, etc.
Wander
Comment 1
2009-03-22 14:41:59 PDT
I think I made an error when trying without rotation earlier, now I see it doesnt have anything to do with the rotating, but only with the shadow.
Ahmad Saleem
Comment 2
2022-07-22 10:30:59 PDT
I am able to reproduce this bug in Safari 15.6 on macOS 12.5 and I have changed the test case slightly (removing rotation) and also in following JSFiddle: Link -
https://jsfiddle.net/ek1m9678/show
Upon text selection - the selection goes beyond border <div> and show across whole viewport, while other browser (Chrome Canary 105 and Firefox Nightly 104) restrict text selection into <div> only. It might be duplicate bug since I recall testing similar bug before. Thanks!
Ryosuke Niwa
Comment 3
2022-07-22 21:55:58 PDT
Even though the selection rendering differs here because Safari renders selection gap, we can still select the top line so the original bug being reported here has been fixed.
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