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

The group block adds some inline styles that aren't validated properly via W3C validator #39220

Closed
MaitreArt opened this issue Mar 4, 2022 · 2 comments
Labels
Needs Testing Needs further testing to be confirmed. [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed

Comments

@MaitreArt
Copy link

MaitreArt commented Mar 4, 2022

Description

When I add the core group block there are inline styles added to its class, such as:

<style>.wp-container-6222132642da3 .alignleft { float: left; margin-right: 2em; }.wp-container-6222132642da3 .alignright { float: right; margin-left: 2em; }</style>↩
<style>.wp-container-62221326443b4 .alignleft { float: left; margin-right: 2em; }.wp-container-62221326443b4 .alignright { float: right; margin-left: 2em; }</style>↩
<style>.wp-container-62221326449f2 .alignleft { float: left; margin-right: 2em; }.wp-container-62221326449f2 .alignright { float: right; margin-left: 2em; }</style>

And when we check it through https://validator.w3.org/ we have errors:
Element style not allowed as child of element body in this context. (Suppressing further errors from this subtree.)

Step-by-step reproduction instructions

  1. Go to the page or post
  2. Add group block, update the page or post
  3. Check it through https://validator.w3.org/

Screenshots, screen recording, code snippet

Showing results for Nu Html Checker 2022-03-04 19-31-09
Showing results for Nu Html Checker 2022-03-04 19-30-44

Environment info

  • WordPress version 5.9.1, from Twenty Twenty Eighteen (didn't check older version) to Twenty Twenty One themes
  • All plugins are disabled

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

@karmatosed karmatosed added the Needs Testing Needs further testing to be confirmed. label Mar 30, 2022
@MaitreArt
Copy link
Author

MaitreArt commented Jun 18, 2022

Any updates??? The same issues happen with a Columns block

@skorasaurus
Copy link
Member

Hi,

Thanks for reporting;
This has been discussed and/or requested in #38917 . Feel free to add your reaction and follow its progress in the issue.

@skorasaurus skorasaurus added the [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed label Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Testing Needs further testing to be confirmed. [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed
Projects
None yet
Development

No branches or pull requests

3 participants