Bug 281570

Summary: [content-visibility] content-visibility: auto prevents text nodes in SVG from being painted
Product: WebKit Reporter: Jeremy Keith <jeremy>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: koivisto, rbuis, rik, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 18   
Hardware: Mac (Apple Silicon)   
OS: macOS 15   

Description Jeremy Keith 2024-10-16 06:10:56 PDT
If content-visibility: auto is applied to an element with text elements (or tspan elements), then when that element is painted (by being scrolled into view), the contents of the text elements aren't displayed.

Here's a reduced test case:
https://codepen.io/adactio/full/WNVjoBP

That's from this page:
https://archive.thesession.org/tunes/1/#setting20796

The text elements containing "slide", "1" and "2" don't get painted.
Comment 1 Radar WebKit Bug Importer 2024-10-16 08:55:36 PDT
<rdar://problem/138040315>