-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Site editor iframe clips body styling #44374
Comments
@ockham @michalczaplinski @annezazu I am able to confirm this. Note this issue does not occur when the latest version of Gutenberg is active. But as soon as you deactivate GB, the issue appears. Perhaps something did not get ported over to 6.1 🤔 So far I have been unable to isolate the issue. |
Noting that this issue feels similar to #30768 so, when this is closed, I want to confirm it can be too. |
@annezazu I also suspect that this has the potential to get booted to Trac since truly the issue lies in WP core, and with Gutenberg active the bug is resolved. |
@annezazu thanks for sharing, this is interesting because clearly, this has been an issue for a while. In the other issue, you had Gutenberg active and the issue existed. Today, if you activate Gutenberg, it goes away. I am wondering if this got fixed awhile ago, but never got ported to Core. I assumed there was a recent change in Gutenberg, but perhaps not 🤔 |
Oh definitely game to keep this open -- I wasn't trying to say "duplicate please close" by any means. More so trying to figure out what's going on, add more pieces to the puzzle, and make sure both issues get closed when completed. As @ndiego notes above, it seems like something has evolved since it was first reported and, perhaps, we can find the fix as a result. |
I would like to explain this issue as best I can. (However, I may be wrong on some points.) First, I believe the root cause of this problem is the application of And this CSS is came from My understanding is that the styles containing However, if you enable Also, if the gutenberg plugin is enabled, somehow To solve this problem, we need to override the styles of the Perhaps changes need to be made in this section: gutenberg/packages/block-editor/src/components/iframe/index.js Lines 321 to 331 in a78f644
@youknowriad Is there a way to properly backport this issue? If zoomed-out views will not be included in WordPress 6.1, I feel that simple backporting might be difficult. |
I think we need to identify what solved the issue exactly as otherwise we'd be back porting things that could potentially introduce new bugs. Potentially we could do a targeted fix for this branch only, maybe adding a |
Thank you for the advice, @youknowriad ! I would like to explain what I have learned from further research in three cases. The first important point is that only CSS files containing gutenberg/packages/block-editor/src/components/iframe/index.js Lines 85 to 91 in cbaa184
WordPress without Gutenberg plugin and
|
If it can't be done in one PR, I think it should be ok to make two PRs. One targeting the |
Thank you for the advice, @talldan ! I have confirmed that this problem is still reproduced in RC2. I will create two PRs as soon as possible in time for RC3. |
I first created a PR #45118 to backport to WP6.1. I would appreciate if someone could review it. |
The PR for this issue is below:
|
Description
Testing in 6.1 beta1 with Twenty Twenty-Three theme. This bug only surfaces in the latest beta and if you activate the latest Gutenberg then it goes away. So, did something not get ported into the latest 6.1 beta? Or should I move this over to Trac?
This affects the Twenty Twenty-Three theme: WordPress/twentytwentythree#195
The
<body>
element styling is clipped for the following Style Variations: Pilgrimage, Sherbet, Whisper.Pilgrimage (body background gradient cut off in iframe)
Sherbet (body background gradient cut off in iframe)
Whisper (body border cut off in iframe)
This bug has been confirmed in Chrome 105, Safari 16.0, and Firefox 105
This seems to be caused by the
wp-admin/load-styles.php
add in a<div style="display: none;">
Step-by-step reproduction instructions
Running WordPress Beta Tester plugin and WordPress 6.1 beta1 with newly added Twenty Twenty-Three:
Furthermore, if you now enable the latest Gutenberg plugin then the issue goes away.
Screenshots, screen recording, code snippet
No response
Environment info
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: