Bug 281570 - [content-visibility] content-visibility: auto prevents text nodes in SVG from being painted
Summary: [content-visibility] content-visibility: auto prevents text nodes in SVG from...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 18
Hardware: Mac (Apple Silicon) macOS 15
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-10-16 06:10 PDT by Jeremy Keith
Modified: 2024-10-16 11:02 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>