Bug 176956 - CSS background gradient and text shadows draw strange after selecting text, closing app, and reopening
Summary: CSS background gradient and text shadows draw strange after selecting text, c...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: Safari 10
Hardware: All iOS 11
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-09-14 13:59 PDT by Tom Hamming
Modified: 2022-02-09 10:14 PST (History)
4 users (show)

See Also:


Attachments
Expected appearance (882.46 KB, image/png)
2017-09-14 13:59 PDT, Tom Hamming
no flags Details
Broken appearance (828.45 KB, image/png)
2017-09-14 14:00 PDT, Tom Hamming
no flags Details
Sample Xcode project (45.66 KB, application/zip)
2017-09-14 14:00 PDT, Tom Hamming
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Hamming 2017-09-14 13:59:47 PDT
Created attachment 320817 [details]
Expected appearance

When text shadows and background gradients are applied to a span in a UIWebView in an iOS app, if the app is closed, another app is opened and closed, and the original app is opened again, the gradients often draw with a black background. See screenshots and attached example project.

Steps:

-Run sample project on an iOS device
-Quit the app (press the home button, not force-quit or Xcode stop), open and close at least one other app, and reopen the sample app

Observed: backgrounds (applied here to create a highlight effect in book text) draw black.
Comment 1 Tom Hamming 2017-09-14 14:00:09 PDT
Created attachment 320818 [details]
Broken appearance
Comment 2 Tom Hamming 2017-09-14 14:00:24 PDT
Created attachment 320819 [details]
Sample Xcode project
Comment 3 Tom Hamming 2017-09-14 14:00:54 PDT
This is also filed as Apple radar 33436719.
Comment 4 Tom Hamming 2017-09-14 14:01:29 PDT
(iOS 11)
Comment 5 Simon Fraser (smfr) 2017-09-14 14:16:51 PDT
rdar://problem/33436719