Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update screenshot plugin for compatibility with CSS vars. #2472

Merged
merged 1 commit into from
Dec 14, 2024

Conversation

johnnesky
Copy link
Member

@johnnesky johnnesky commented Dec 13, 2024

The basics

The details

Resolves

Fixes the screenshot plugin to be compatible with the changes in google/blockly#8671 which fixes google/blockly#8272

Proposed Changes

It copies the inline style of the injection div to the screenshot svg.

Reason for Changes

The injection div's inline style uses CSS variables to link to the SVG filters that might be used by the blocks in the screenshot.

Test Coverage

No new tests but I manually tested taking screenshots while linking to blockly rc/v12.0.0.

Documentation

N/A

Additional Information

This change isn't necessary until Blockly v12.0.0 is released, but it's compatible with existing Blockly so we might as well fix it now.

@johnnesky johnnesky requested a review from a team as a code owner December 13, 2024 20:44
@johnnesky johnnesky requested review from gonfunko and removed request for a team December 13, 2024 20:44
@johnnesky johnnesky merged commit eecfccd into google:master Dec 14, 2024
10 checks passed
@johnnesky johnnesky deleted the nesky_screenshot_vars branch December 14, 2024 00:37
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.

Refactor SVG filters to be singletons
2 participants