UIWebView paginationMode ignore CSS background property
| Originator: | vincent.meyer | ||
| Number: | rdar://31552458 | Date Originated: | 11-Apr-2017 |
| Status: | Open | Resolved: | |
| Product: | iOS + SDK | Product Version: | |
| Classification: | Reproducible: | Always |
Area: UIKit Summary: Since iOS 10.3, if paginationMode attribute of an UIWebView is set to UIWebPaginationModeLeftToRight, the CSS property background of the html loaded page is ignore. It's also true for the property background-color. Steps to Reproduce: 1. Insert an UIWebView inside an UIViewController. 2. Set webview paginationMode to UIWebPaginationModeLeftToRight. 3. Load an HTML page with a background-color set on the body. 4. Launch the application in iOS 10.3 device or simulator. Expected Results: If background-color:black is set on the HTML body, the background should be black. Actual Results: The background property is ignore on body and the background is always white in paginated webviews. Version: iOS 10.3 Notes: Configuration: iPhone 6S 64GB | Simulator iPhone 7 iOS 10.3 Attachments: 'BugWebview.zip' was successfully uploaded.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!