-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Container blocks use unsupported :where() and :not() selectors #43723
Comments
It looks like this also affects the Columns and Buttons blocks. |
Related discussion: |
Can you help clarify which browser support requirement are you referring to? This list : |
AFAIK that list has always been for There's more background and discussion is in #39621. |
Based on the discussion linked above1 (#39621 (comment), #39621 (comment)), it seems like that list was intended for the admin area and editor, not front-end output. The continued appearance of issues like this seem like evidence enough that user-facing code should have a different standard for support. Also, worth noting: .wp-block-buttons:not(.is-content-justification-space-between, .is-content-justification-right, .is-content-justification-left, .is-content-justification-center) .wp-block-button.aligncenter {
margin-left: auto;
margin-right: auto;
width:100%
} This would be an easy fix, but it is another (small) case where the editor is shipping less compatible CSS to ~40% of the internet for no real reason. (See also: #41358) Footnotes
|
Then can the best practice for the front end be established and documented, including a supported browser list? |
That would be perfect, I agree 💯 . That's probably beyond the scope of this issue, but I can see it maybe being a blocker for this. w.org doesn't have any formal policy. Practically speaking, if a real user reports having problems, then we look into it, and if it seems reasonable we fix it. Fixing doesn't have to mean pixel-perfect, though, just functional and not bad-looking. |
Description
The Group, Columns and Buttons blocks use
:where()
and:not()
selectors, which aren't supported by many browsers that we still need to support. It may affect more blocks, those are just the ones that I ran into.The same issue happened with the Navigation block in #39230 and was fixed in #42967. There's a discussion about the broader problem in #39621.
Step-by-step reproduction instructions
1300px
You can also see it happening on https://testing.wordcamp.org/2019/wherenot-test/.
Screenshots, screen recording, code snippet
Environment info
:where
/:not
)1300px
trunk
@ 132b86c. Also tested in 14.0.2trunk
@ WordPress/wordpress-develop@21ebdbcPlease 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: