-
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
Quote block: new CSS in Gutenberg 12.9.0 adds specificity and breaks existing themes #40163
Comments
It seems that specific style rule has been introduced at #37580 cc @carolinan @ntsekouras |
The :where selector isn’t supported in around 12% of current browsers. |
According to https://caniuse.com/?search=%3Awhere and https://make.wordpress.org/core/handbook/best-practices/browser-support/ I think it's pretty safe for us to use it (and we've done so before) |
I know that |
@markhowellsmead There was a discussion about the browser support - #39621. This might be what's being referenced. As mentioned there, if browser support for specific features is a concern, I think it should be discussed by the community to gain some consensus, and then perhaps some rules can be implemented. |
If I understand correctly, the browser support targets at https://make.wordpress.org/core/handbook/best-practices/browser-support/ indicate which browsers are targeted for WordPress admin and the Block Editor. This is perfectly understandable. However, the rapid increase of rules being applied in the front end of the website - which in many cases can hardly be overridden (if at all) by theme CSS - the effect is to start breaking current websites to the point where they quickly become unusable. |
I think it'd be good if interested parties could make it a discussion point on the core-editor weekly chat agenda. I would do it on behalf of those individuals but I can't really attend those meetings due to timezone, and I also haven't seen or been involved in the implementation or much of the prior discussion. Until something like that happens, these are just isolated comments in amongst a thousand others on github. |
I tried different ways to remove the
|
It seems to me the correct thing would be for Also, should this label be changed to |
@talldan I've mentioned such problems in multiple Github issues (which I was encouraged to create), discussed the problems with (what seem to be) several key developers on Gutenberg, and in a discussion in the Slack weekly to which I was invited. If that isn't sufficient to get anyone to pay attention, then I can't see much point in contributing any further. Although the work being done by core developers — on a voluntary basis in some instances — is remarkable, the direction of core CSS is making it harder and harder to overcome core decisions; feedback to this effect is largely being ignored, so we don't really have much choice and will have to come up with alternatives ourselves. The fact that an active participation in Github issues until now can be dismissed as an invisible drop in the ocean is a disheartening confirmation of the pointlessness of contribution by anyone outside the core development team. |
Is this problem not being addressed? |
Description
The specificity of the new rule in the code snippet below is now 0,3,0 instead of 0,2,0 as before. This breaks pre-existing theme CSS.
Step-by-step reproduction instructions
Review an element styled using theme CSS which uses the selector
.wp-block-quote.is-style-large p
.See also #36135, #35840, #34047, #29705, #17511 and #39971 and #40159.
Screenshots, screen recording, code snippet
Environment info
No response
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: