Created attachment 459420 [details] webkit screenshot reprodiciable example: https://codepen.io/chijinz/pen/vYdgpdY code: ``` <html> <head> <style> </style> <script> function jsfuzzer() { document.getElementById("htmlvar00004").style["box-shadow"] = "red 1px 73px" } </script> </head> <body onload=jsfuzzer()> <textarea id="htmlvar00004" >aaa</textarea> </body> </html> ``` version: all webkit products (including Safari) description: The textarea element does not have shadow even though the "box-shadow" is set. Chrome and Firefox work fine with it.
Created attachment 459421 [details] chrome screenshot
Created attachment 459422 [details] firefox screenshot
<rdar://problem/93351344>
Seems intentional: https://webkit-search.igalia.com/webkit/rev/7bebd4483c6744ddf9823572d42d2e34dc9d0bd9/Source/WebCore/rendering/RenderTheme.cpp#174 though I think this behavior should be changed.
(In reply to Tim Nguyen (:ntim) from comment #4) > Seems intentional: > https://webkit-search.igalia.com/webkit/rev/ > 7bebd4483c6744ddf9823572d42d2e34dc9d0bd9/Source/WebCore/rendering/ > RenderTheme.cpp#174 > > though I think this behavior should be changed. Thanks. Could you backtrace the reason for doing this? Is it for the security concern or just wrong implementation?
(In reply to Chijin from comment #5) > (In reply to Tim Nguyen (:ntim) from comment #4) > > Seems intentional: > > https://webkit-search.igalia.com/webkit/rev/ > > 7bebd4483c6744ddf9823572d42d2e34dc9d0bd9/Source/WebCore/rendering/ > > RenderTheme.cpp#174 > > > > though I think this behavior should be changed. > > Thanks. Could you backtrace the reason for doing this? Is it for the > security concern or just wrong implementation? Probably some old UI guideline saying native controls shouldn't get shadows. Anyway, this should be fixed to be in-line with other browsers.
*** Bug 240635 has been marked as a duplicate of this bug. ***
*** Bug 242162 has been marked as a duplicate of this bug. ***