Bug 74156 - WebKit does not support box-shadow on display:table-row element
Summary: WebKit does not support box-shadow on display:table-row element
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2011-12-08 19:33 PST by Yao Wei
Modified: 2022-07-12 15:37 PDT (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yao Wei 2011-12-08 19:33:33 PST
Test case:
<div style="background:#999; box-shadow: 0 0 50px #000; display: table-row;">
<div style="display: table-cell; width: 300px; height: 300px;">
</div>
</div>

Related: https://bugs.webkit.org/show_bug.cgi?id=73536
Comment 1 David Barr 2012-03-14 20:47:57 PDT
Confirmed:
Google Chrome: 19.0.1069.0 (Official Build 126572) canary
OS: Mac OS X
WebKit: 536.3 (@110622)

WebKit Nightly: Version 5.1.2 (6534.52.7, r110761)
Comment 2 gur.trio 2013-10-15 19:57:02 PDT
(In reply to comment #1)
> Confirmed:
> Google Chrome: 19.0.1069.0 (Official Build 126572) canary
> OS: Mac OS X
> WebKit: 536.3 (@110622)
> 
> WebKit Nightly: Version 5.1.2 (6534.52.7, r110761)

Hi All. If we change the test case content to 
<div style="background:#999;  display: table-row;">
<div style="display: table-cell; box-shadow: 0 0 50px #000; width: 300px; height: 300px;">
</div>
</div>

it works well because when we paint table cell we paint the shadow in 
void RenderTableCell::paintBoxDecorations(PaintInfo& paintInfo, const LayoutPoint& paintOffset)

but for table row there is no specific call for painting the shadow.

Also shadow is a rareNonInheritedData so incase tr has shadow td will not inherit.

So can we add some API to draw shadow for tr also? Please suggest.
Comment 3 Brent Fulgham 2022-07-12 15:36:45 PDT
Works in Chrome and Firefox. Does not work in Safari.
Comment 4 Radar WebKit Bug Importer 2022-07-12 15:37:04 PDT
<rdar://problem/96914376>