Bug 281570
| Summary: | [content-visibility] content-visibility: auto prevents text nodes in SVG from being painted | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jeremy Keith <jeremy> |
| Component: | CSS | Assignee: | Sammy Gill <sgill26> |
| Status: | RESOLVED FIXED | ||
| 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 | ||
| See Also: | https://github.com/web-platform-tests/wpt/pull/49079 | ||
Jeremy Keith
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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/138040315>
Sammy Gill
Pull request: https://github.com/WebKit/WebKit/pull/36342
Sammy Gill
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/49079
EWS
Committed 286447@main (84a4a18b9d5d): <https://commits.webkit.org/286447@main>
Reviewed commits have been landed. Closing PR #36342 and removing active labels.
EWS
Committed 283286.474@safari-7620-branch (9700aa344092): <https://commits.webkit.org/283286.474@safari-7620-branch>
Reviewed commits have been landed. Closing PR #2273 and removing active labels.