Bug 156744

Summary: text-shadow inside background-size cover shows extra shadow artifact
Product: WebKit Reporter: Mike Griffith <bikegriffith>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Minor CC: bfulgham, mmaxfield, simon.fraser, zalan
Priority: P2    
Version: Safari 9   
Hardware: iPhone / iPad   
OS: iOS 9.3   
Attachments:
Description Flags
Screenshot showing extra shadow artifact
none
Test reduction none

Description Mike Griffith 2016-04-19 06:52:33 PDT
Created attachment 276723 [details]
Screenshot showing extra shadow artifact

The following CSS rules cause an additional shadow to be applied around a box that is not accounted for by any of the elements.

  <div style="padding:100px 0;
              background-image:url(//cdn2.hubspot.net/hubfs/484866/Headers/BoxCast_Fun_1-01.jpg?t=1461010690724);
              background-size:cover;">
    
    <h1 style="font-weight:100;
               color:#fff;
               font-size:60px;
               text-shadow:0 0 10px rgba(0,0,0,0.5);">Meet the Team</h1>
  </div>

Runnable example: https://output.jsbin.com/govopuzape

NOTE: I cannot reproduce this inside the iOS simulator; it only appears on a physical device (iPhone 6 / iOS 9.3).
Comment 1 zalan 2016-04-21 20:28:10 PDT
Created attachment 277001 [details]
Test reduction
Comment 2 zalan 2016-04-21 20:32:21 PDT
When either the text (size position) or the text-shadow change, the artifact changes too. Also it can be clipped out with overflow hidden.
Comment 3 Brent Fulgham 2022-07-14 15:40:52 PDT
This does not happen in Safari 15.5+.