| Summary: | linear-gradient unexpectedly overrides <meta name="theme-color"> for scroll area background | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Simon Lydell <simon.lydell.dev> | ||||
| Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED INVALID | ||||||
| Severity: | Normal | CC: | bfulgham, simon.fraser, webkit-bug-importer, zalan | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | Safari 16 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | macOS 12 | ||||||
| Attachments: |
|
||||||
|
Description
Simon Lydell
2022-10-29 11:50:35 PDT
What you're seeing in the broken cases is the impact of background-repeat; its initial value is 'repeat' so when the root background is a gradient, the gradient repeats at the edges. Simon Fraser, thank you so much for telling me about background-repeat! I updated the demos with that information. I then found a new much better workaround: Simply set `background-repeat: no-repeat` to have theme-color “win”! https://lydell.github.io/macos-safari-overscroll-bugs/7.workaround.theme-color.no-repeat.html So, is it intended behavior that a repeating background-image “wins” over theme-color? - If it is, it would be great if it could be documented somehow. I think I might not be the only one who struggled with theme-color! - If not, well, then the bug should be fixed. But luckily it’s easy to work around with `background-repeat: no-repeat`! Works as designed. |