Hacker Newsnew | past | comments | ask | show | jobs | submit | jwarren's commentslogin

Yeah, we've had it for at least 30 years, probably longer


It won't override global scope, it's just a hint the layout engine that your container's paint and/or size won't change, and thus it can optimise it's performance.

Wholly agree with your second point, it's something I see from a lot of junior devs. They just reach straight for flex/grid, and tbh I don't blame them. They are more predictable layout algorithms that are largely unshackled from legacy layout decisions.


Depends - do you want screen readers to hear something? If so, add a `aria-label="heart"` or similar. If not, add `role="presentation"` to remove it from the accessibility tree altogether.

You might also want to change the element from a `header` to something else, like a `div` or a `span` or even a `figure` instead. Then put "potato.cheap is home of the... The "Cheap" Web" inside the `header` instead.


That's absolutely not the case for the most part, depending on the bar and the time. Go out to a city centre on an evening, especially Friday or Saturday. Most bars and pubs will be busy, noisy, and definitely playing music.

There are absolutely quieter pubs available, but you need to know where to go.


We have layers now: https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_...

I’d recommend this article on recent CSS developments: https://developer.chrome.com/blog/whats-new-css-ui-2023/

Be aware of the support of each of them, it’s not 100%, especially depending on your use case.


You're mixing metaphors there! It might be lightweight but it's still a flavour.

It's still not part of the common browser API, so yes it's easy to add, but no, it's not vanilla.


> it's still a flavour.

> it's not vanilla.

Hate to interrupt, but vanilla is a flavor. And it's a pretty good one, dammit!


Insofar as the discussion on the name "vanilla javascript" goes, this mixes metaphors.

"Vanilla JavaScript" implies "without anything added".


"stole a kiss" wtf is this minimising bullshit? According to the article, he forced himself on someone, grabbing them by the throat. They feared for their life.

According to the article, he also literally had sex with his partner while she was under the influence, without her consent.

Please don't minimise victims trauma.


There are lots of people without your educational background. It's a few years old now, but I remember finding Alice Bartlett's talk on <select> box inaccessability [1] quite instructive.

1: https://www.youtube.com/watch?v=CUkMCQR4TpY


He'd been a scientologist since the 60s IIRC.


This has been my go-to placeholder site for the best part of a decade. Not because it necessarily works the best, but just because I always remember it.


For me that site has been Lorem pixel. I thought of it as soon as I read the title. Haven't used it in a while so not sure if it is any good now.

https://lorempixel.com

Nevermind, it is down. I just thought that the name was pretty cool and always remembered it.


AFAIK they rebranded as https://picsum.photos/


It works for me here?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: