Skip to content

Add CSS isolation support to SVG frames - #244

Merged
noelwelsh merged 1 commit into
creativescala:mainfrom
Arthur031221:frame-isolation-adopt-233
Oct 10, 2026
Merged

noelwelsh merged 1 commit into
creativescala:mainfrom
Arthur031221:frame-isolation-adopt-233

Conversation

@Arthur031221

Copy link
Copy Markdown
Contributor

Users who need CSS isolation for Doodle SVG output cannot set it through Frame, so the root SVG has no isolation style declaration.

This picks up #233 by @arnavsharma990. It carries their frame option, SVG style output, and tests.

For @noelwelsh's requested changes, the isolation values are now a Scala 3 enum, the SVG guide shows how to set isolation, and the unrelated Layout.Scalar changes are absent. The existing path rendering test is preserved. One table of SVG style cases covers both frame sizes, both isolation values, and backgrounds.

The test task reported 376 passing test executions across 16 summaries on Java 17, with no failures. Header and formatting checks, API documentation, and the site build passed. Restoring Svg.scala from main makes the isolation test fail: its actual SVG style is pointer-events: bounding-box; without an isolation declaration.

This adds a fourth field to the public Frame case class. The project's binary compatibility task reports no previous SVG artifact configured, so it cannot compare the case class against an older release. githubWorkflowCheck reports the same generated-workflow mismatch on this branch and untouched main.

Closes #228.

I am glad to close this if @arnavsharma990 would rather finish theirs.

Expose isolation on Frame and serialize it on the root SVG. Document usage and cover frame style output.

Co-authored-by: Arnav Sharma <170600828+arnavsharma990@users.noreply.github.com>
@noelwelsh

Copy link
Copy Markdown
Contributor

Thanks. Looks good.

@noelwelsh
noelwelsh merged commit 0e2ddd2 into creativescala:main Oct 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow isolate property to be specified in Frame

2 participants