It's so interesting, these waves of CSS improvements. Before the flexbox/grid arrival, there were years of near-zero progress. The flexbox/grid release, uniquely coordinated across browsers (for once), was an excellent milestone, but not really a movement. These last 2 years though feel almost like a revolution in comparison to CSS's history. Somebody is pushing very hard. These are some very serious improvements tha…
It's so annoying to me that there's one browser that's holding everyone back. They also make it so that no one can use anything but their browser engine on mobile phones so they're harder to ignore.
State of CSS
151–160 of 234 posts
Re: State of CSS
#152The majority of items mentioned in the article are still in the earliest stages of the standardisation process and haven't even had their specifications finalised yet (see overview at https://www.w3.org/Style/CSS/current-work ). Having access to these cool new features so early on is nice, of course, but be ready and willing to deal with possible breaking changes or even future removal. Here's a recent example of onc…
Re: State of CSS
#153Earlier quoted context omitted.
It's so annoying to me that there's one browser that's holding everyone back. They also make it so that no one can use anything but their browser engine on mobile phones so they're harder to ignore.
This is repeated over and over again, but, it’s not true when it comes to Safari’s support for CSS. Now, requiring a Mac to debug JS on mobile Safari.. That’s irritating.
Re: State of CSS
#154Earlier quoted context omitted.
It's so annoying to me that there's one browser that's holding everyone back. They also make it so that no one can use anything but their browser engine on mobile phones so they're harder to ignore.
When it comes to CSS Safari is rarely behind, and often ahead. When it comes to Chrome-only non-standards Safari is right where it needs to be: not implementing this bullshit.
Re: State of CSS
#155Earlier quoted context omitted.
It's so annoying to me that there's one browser that's holding everyone back. They also make it so that no one can use anything but their browser engine on mobile phones so they're harder to ignore.
Reading between the lines, it seems like you're suggesting Safari is that browser holding everyone back. The Compatibility section in this article doesn't seem to support that.
Re: State of CSS
#156Earlier quoted context omitted.
It's so annoying to me that there's one browser that's holding everyone back. They also make it so that no one can use anything but their browser engine on mobile phones so they're harder to ignore.
When it comes to CSS Safari is rarely behind, and often ahead. When it comes to Chrome-only non-standards Safari is right where it needs to be: not implementing this bullshit.
Re: State of CSS
#157Earlier quoted context omitted.
Right, my point is, we've now introduced this new attribute for "browser elements" instead of saying now checkboxes support background-color, color, etc. And let the designer do the work. Lean on the primitives we already have, enable flexibility, and if someone wants to make a SaSS wrapper or CSS function to do it, enable that vs. more random places for browsers to diverge on "standards". It plays out like this: "Oh…
i believe the problem with form elements like checkboxes is that they are 'replaced elements', which the browser defers to the underlying operating system, and that's why it requires a "hack" like accent-color rather than direct styling. this is also why you can't use ::before and ::after on form elements (to do things like add a 'required' indicator using css only).
Re: State of CSS
#158Earlier quoted context omitted.
All of which is preferable to an ever-growing spec whose pace makes it impossible for a newcomer to enter the browser space.
JavaScript simply shouldn't handle a lot of layout. It's not running in sync with the layout engine in css.
(Disclosure: I work on the style team in Chromium)
Re: State of CSS
#159Earlier quoted context omitted.
For this? No. Years ago we were working on a project and the default color of the form elements was a real sticking point. For some of them we ended up rolling our own, but others we just suffered with the default. Accent-color would have solved a problem we spent months working on and agonizing over.
See my reply below: https://news.ycombinator.com/item?id=33289468 If you were able to style the element with "classic" CSS primitives like border/background/color would that not have also solved the problem without introducing new syntax with new quirks?
input[type="range"]::-moz-range-thumb,
input[type="range"]::-webkit-slider-thumb {
background-color: red;
}
It'll work in Firefox, but Chrome (and probably Safari) will ignore it. Instead you need to do this: input[type="range"]::-moz-range-thumb {
background-color: red;
}
input[type="range"]::-webkit-slider-thumb {
background-color: red;
}Re: State of CSS
#160What's the purpose of having 4 linear color spaces (srgb-linear, xyz, xyz-d50, xyz-d65) for interpolation? Linear interpolation is exactly the same in any linear space. Indeed, in provided gradient examples these 4 look the same.