Replies: 11 comments 6 replies
-
Flexbox gap is in a similar place and is also used heavily as of 5.9: https://caniuse.com/flexbox-gap There is also a general lack of progressive enhancement in how core's styles are written/output, which exacerbates problems with using bleeding-edge CSS like this. |
Beta Was this translation helpful? Give feedback.
-
This policy has been referred to in at least one comment, though it's not clear whether it was originally intended to cover front-end as well. This comment suggests only the WordPress back-end/admin was the intended target, would be interesting to understand if this is correct. |
Beta Was this translation helpful? Give feedback.
-
Is this just about IE11? If so here's the announcement about dropping support - https://make.wordpress.org/core/2021/04/22/ie-11-support-phase-out-plan/. That does mention this:
But it's clear from the rest of that post that this is only referring to the scope of the 5.8 release, it's not a mandate to indefinitely avoid features that IE11 won't support on the frontend. So my interpretation is that using I'm less knowledgable about the other browsers. Opera Mini seems to have higher usage than I thought it did. |
Beta Was this translation helpful? Give feedback.
-
I think it's less about IE11, which is rapidly becoming truly irrelevant (down to ~0.4% by most metrics) , and more about the long tail of evergreen browsers that have gone without updates for whatever reason. The links in the OP talk about some of the reasons for why this happens, and there are no imminent structural changes to how browsers get updated that will appreciably change this dynamic. In the case of It's probably worth thinking about this and coming up with a firm policy due to the number of truly transformative CSS features that will be landing in browsers in short term, all of which will spend years in this in-between space and will be much more difficult to use as progressive enhancement compared to cosmetic features like repeating gradients, |
Beta Was this translation helpful? Give feedback.
-
12% is quite high, agreed 😬 . It seems like there could be policy, but it'd also be impossible to apply a single rule. I think there would maybe have to be some criteria to weigh up individual css features, e.g.:
Anyway, I think a good option would be to add it to the agenda as a discussion point during one of the meetings (either core-editor or core or both). |
Beta Was this translation helpful? Give feedback.
-
The use of For example, 5.9.3 - a purported patch update - broke a couple of dozen of our sites by changing the logic of how alignment and x-axis margins work. This isn't because we applied an alternative logic to that which is in core, but because the rules from core are so specific that we have to resort to the use of I'd be more than happy to contribute to the discussion if I can. |
Beta Was this translation helpful? Give feedback.
-
Thanks for creating this issue! I've been testing the following PR and am trying to gauge concerns over the use of To describe global browser usage I see we've cited 12% as the percentage of global users whose browsers do not support As noted above, It would be interesting to know where to draw lines here. For example, 12% is larger than 6%, which is the percentage that doesn't support :first-child. I think it's fair to claim that no one is talking about rolling back At which point between those two numbers, if at all, do we pull the pin? Or is Are there any further demonstrations of For the record, I'm not arguing one way or the other. I'd only like to see us square the recommended browser support published on Core's best practices page with what folks are experiencing. To save folks a click the supported browser versions are:
If these were strict rules, then I think we'd have our answer. The browsers in red all stand at < 1% usage. Their total adds to 12%... still a sizeable cohort. Okay, we might still have to support Contrast this with the statement from 2017 in The New Editor and Browser Support:
Specifically in relation to Does Or would targeted backwards compatibility fixes after the fact suffice, as they did with WordPress/wporg-mu-plugins#159? Ultimately, for what it's worth, I agree with @talldan above that the number itself is only helpful in the context of this discussion if we have answers to questions pertaining to consequence, such as impact on UX, the nature of that impact and the implications for developing and maintaining future versions of Core. |
Beta Was this translation helpful? Give feedback.
-
I think extrapolating the numbers a little bit will help. Currently, WordPress is used on 43% of the most popular sites on the internet. 12% of 43% is a little over 5%, so one in twenty visits to the most popular sites on the internet will experience problems if the The maths isn't perfect, I know, but it's decent enough to be indicative. Given these numbers, I'd avoid Things have changed since then. |
Beta Was this translation helpful? Give feedback.
-
Just noting that this issue directly affects the header navigation on the WordPress.org web site: #39230. It will potentially also affect the layout of the front page when the new version launches soon. |
Beta Was this translation helpful? Give feedback.
-
My 2 cents: |
Beta Was this translation helpful? Give feedback.
-
I think talking about this as a binary "use/don't use" misses the best route forward: using newer features as progressive enhancement while providing reasonable fallback CSS for older browsers when possible. It's totally fine to use cutting-edge CSS if there's still a functional basic experience for older browsers. Unfortunately, the CSS shipped with the editor is rarely written with this mindset. Ideally, it would look a lot more like the solution to the |
Beta Was this translation helpful? Give feedback.
-
I've noticed that the block styles have started to use the
:where()
selector which is useful because it can drastically reduce the specificity of CSS selectors. I'm curious how it was decided that browser support is good enough for this to be shipping to 40% of the internet? What is the official browser support policy for front-end styles and does:where()
meet it?Relevant resources:
"The Optional Chaining Operator, “Modern” Browsers, and My Mom"
"Evergreen” Does Not Mean Immediately Available"
Beta Was this translation helpful? Give feedback.
All reactions