You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both the height and scaling on the live preview component allow sub-pixel values, which may cause browsers to behave unexpectedly.
The sub-pixel height its probably okay but the combination of the height and scaling could be the issue.
Or maybe both could be clamped to a 2 digits?
Step-by-step reproduction instructions
I added an example pattern for a block plugin I'm working on, and added the code via register_block_pattern. It might not be easy to reproduce as in my screencast below, but seeing the sub-pixel values is easy enough to view on any live component.
Screenshots, screen recording, code snippet
Live preview built in 2022 pattern (no rendering issue though):
Custom pattern added with render issue:
subpixel.scaling.mov
Environment info
2022 theme
Happens in WP 5.9 with and without Gutenberg plugin.
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered:
Description
Both the height and scaling on the live preview component allow sub-pixel values, which may cause browsers to behave unexpectedly.
The sub-pixel height its probably okay but the combination of the height and scaling could be the issue.
Or maybe both could be clamped to a 2 digits?
Step-by-step reproduction instructions
I added an example pattern for a block plugin I'm working on, and added the code via
register_block_pattern
. It might not be easy to reproduce as in my screencast below, but seeing the sub-pixel values is easy enough to view on any live component.Screenshots, screen recording, code snippet
Live preview built in 2022 pattern (no rendering issue though):
Custom pattern added with render issue:
subpixel.scaling.mov
Environment info
2022 theme
Happens in WP 5.9 with and without Gutenberg plugin.
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: