Yet 15 years later, I still can't specify a width and aspect ratio for an div without some unintuitive nested div hell.
Yes you can https://css-tricks.com/almanac/properties/a/aspect-ratio/
State of CSS
171–180 of 234 posts
Re: State of CSS
#172Just fyi: This is from May (and was posted a number of times then) What might be more interesting if it's your area is the currently running State of CSS Survey https://stateofcss.com
Re: State of CSS
#173Re: State of CSS
#174I was really excited to see GSS (http://gss.github.io), however at the time it was far too slow to be usable in real projects.
Re: State of CSS
#175Earlier quoted context omitted.
I'm always excited by newer features to CSS that make older JS-only methods obsolete. I wonder if it's just about how some people's brains are wired. I grok CSS. I won't claim to know everything about it, but I'd say I'm 90% proficient and prefer it to JavaScript. But I think this is because JavaScript somehow never fully made sense to me. I can read it and figure out what it's doing, but it was never intuitive to me…
I don't understand either one. I use React (while technically pure JS, I assume this isn't what you mean) and calculate most of the sizes manually, just passing width and height as props into my elements. People tell me that's dumb, but it's always worked, and I don't have to keep up with this topic of CSS that doesn't really interest me. I've tried the "correct" flexbox way too, and it wasn't easier. One particular…
CSS handles it just fine. That's how they deal with it.
Re: State of CSS
#176Earlier quoted context omitted.
Thank you for calling this out. I feel like there is a psyops campaign paid for by Google denouncing any organization/tech that doesn't blindly follow their non-standard standards.
I don't even use chrome, nor do I develop against it.
It’s good that both browsers are a hindrance to Google just shipping stuff and that stuff becoming a de facto web standard. It’s even good that they have different priorities because that gives them different perspectives from which to catch mistakes before they’re almost totally irreversible.
Re: State of CSS
#177Earlier 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.
I like how you need a mac to test safari and how the ios animated address bar destroys any easy layout for applications.
I do agree you shouldn’t need to buy Apple hardware or pay anyone else money to test in their web browser though.
Re: State of CSS
#178Earlier quoted context omitted.
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.
Ahhh, that's the version number. I thought that's how % of the spec that they actually supported.
Re: State of CSS
#179Earlier quoted context omitted.
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.
Thank you for calling this out. I feel like there is a psyops campaign paid for by Google denouncing any organization/tech that doesn't blindly follow their non-standard standards.
Re: State of CSS
#180Earlier quoted context omitted.
IIRC they used to, but not anymore. They're implemented with a special Shadow DOM that's not accessible by the page but you can style some elements if the browser exposes them as psuedoelements.
are OG form elements actually reimplemented in shadow DOM, like they're doing with open UI ( https://open-ui.org/ ) custom elements? i've seen safari and chrome (but not firefox) expose some form input components as shadow DOM (e.g., slots), but wasn't sure if it was actually reimplemented.