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

3 CSS errors in block-library style.min.css #32434

Closed
Jim537 opened this issue Jun 3, 2021 · 3 comments
Closed

3 CSS errors in block-library style.min.css #32434

Jim537 opened this issue Jun 3, 2021 · 3 comments
Labels
[Block] Buttons Affects the Buttons Block CSS Styling Related to editor and front end styles, CSS-specific issues.

Comments

@Jim537
Copy link

Jim537 commented Jun 3, 2021

re: https://wordpress.org/support/topic/w3c-css-validator-3-css-errors/

W3C CSS Validator results for

https://wordpress.org/support/wp-includes/css/dist/block-library/style.min.css

(CSS level 3 + SVG)

Sorry! We found the following errors (3)

1 .is-content-justification-right, .is-content-justification-left, .is-content-justification-center

Parse Error [.is-content-justification-space-between]

1 .is-content-justification-right, .is-content-justification-left, .is-content-justification-center

Parse Error .is-content-justification-center) .wp-block-button.aligncenter{margin-left:auto;margin-right:auto;margin-bottom:.5em;width:100%}

11 .wp-block-separator.is-style-dots

Value Error : width Too many values or values are not recognized : none

Online Test at http://jigsaw.w3.org/css-validator/#validate_by_uri

@skorasaurus skorasaurus added the CSS Styling Related to editor and front end styles, CSS-specific issues. label Jun 8, 2021
@skorasaurus
Copy link
Member

Thanks for reporting.

The third error ( .wp-block-separator.is-style-dots); I cannot reproduce with the validator using wp-includes/css/dist/block-library/style.min.css found in WordPress 5.7.2

The first two errors, I can reproduce with the w3 validator, are specifically from the buttons block, and the code is in build/block-library/blocks/buttons

I don't have time right now to continue with this.

@skorasaurus skorasaurus added the [Block] Buttons Affects the Buttons Block label Jun 25, 2021
@thuthiemzeit
Copy link

thuthiemzeit commented Jul 13, 2021

I have the same question!
jigsaw.w3.org===> Error my site
`

.is-content-justification-right, .is-content-justification-left, .is-content-justification-center Parse Error [.is-content-justification-space-between]
1 .is-content-justification-right, .is-content-justification-left, .is-content-justification-center

`

@skorasaurus
Copy link
Member

I'm no longer able to reproduce this; there have been some fixes to the button block since then and this appears to have been resolved; the core minified block-library style
no longer returns any errors on the w3 validator.

@thuthiemzeit ; I ran the validator again on your site and no errors were detected.

Please reopen if you are still experiencing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Buttons Affects the Buttons Block CSS Styling Related to editor and front end styles, CSS-specific issues.
Projects
None yet
Development

No branches or pull requests

3 participants