23 comments

[ 2.8 ms ] story [ 51.9 ms ] thread
(comment deleted)
oh wow first css tricks i've seen post acquisition

what's up with the magazine in general... is it doing ok?

Is it just me or did none of the examples show up in Codepen? The code was there, but nothing showed in the display.
I can't wait for the LLM() function to drop.

  body { LLM(
    "You are an expert web designer, completely fluent in CSS.
    Create styling for this commerce website which is both
    eye-catching yet professional looking, while being engaging.
    Ensure it conforms to accessibility standards."
   ) }
That's already the present. The result is just cached.
"Can you make it pop more?"
You forgot "Take a deep breath. Don't make mistakes. An old lady will die if you misplace a div."
it is unethical to do this without stimulating the economy:

  LLM("You are an expert at coffee shop ordering.
       order a venti iced caramel macchiato,
       half-caf, almond milk, light ice and
       send it to table 9")
This seems like the type of thing that I'd want to like. But the necessity of inline assigning the `--i` CSS variables to each element bothers me. I have to use some template system or manually keep these variables in sync in my markup. Doing those things seems worse than doing this kind of layout arithmetic in javascript, loathe though I am to admit it.
(comment deleted)
Surprises me when people hate on trigonometry. I enjoyed trig in high school so much that I made it my internet alias.
Mods, new title suggestion: "CSS's cos() and sin() features"
When I loaded up the page, something like 5 empty HTML files downloaded automatically, did this happen to anyone else? Firefox Linux
CSS trig functions, combined with mod() and friends, effectively enable seeded random noise functions as they did in shaders. Interesting times.
It's a shame that sin and cos get lumped in with all the other trigonometry that you don't need to know, because the two basic formulas are incredibly useful and easy to learn:

x = distance * cos(angle)

y = distance * sin(angle)

Screw the rest. I learnt these as a kid writing a 2D computer game years before coming across them in high school maths.

"What I find funny about cos() and sin()— and also why I think there is confusion around them — is the many ways we can describe them. We don’t have to look too hard. A quick glance at this Wikipedia page has an eye-watering number of super nuanced definitions."

I don't even know how to begin parsing this sentence.

That's three sentences, none of which are particularly difficult to parse
It's crazy to me that a significant number of people know "cos" and "sin" primarily though CSS. Is that really what this is implying? Or maybe people just find them hard in general, but it seems odd to think of them as features you dislike, rather than attributing the dislike to the underlying math, if you've ever taken a trig class before.
I take it as the second assumption, as in people who think "CSS has already gotten too complex, now this complicated trig shit is part of it too?".

Keep in mind it's only 9.1%, or 1 in 11, that actually had a "negative opinion" of it. This makes the phrasing/focus on "hated" seem a bit forced.

So why do people hate CSS's trigonometry implementation?
I would have thought the most-hated feature would be the `float` property. I guess alternatives have been around long enough that people just ignore it rather than nurture an eternal smouldering hatred for it.