Šime Vidas

@simevidas
1,059 Followers
96 Following
5.5K Posts
I’m interested in HTML, CSS, and making the web less annoying. My name is pronounced ˈshe-meh.
bloghttps://šime.eu

I’m trying out a new approach to reading the news where I first read the AI-generated summary of a news article and only then the news article itself.

Some problems of news articles:

* too much text, very verbose, critical information is intertwined with relatively unimportant information
* generally confusing to read, obscure words
* sensationalist and manipulative writing, especially in the title and first few paragraphs

The AI summary gives me a good introductory overview. It’s helpful.

Web platform features explorer - Subgrid

RE: https://infosec.exchange/@attackanddefense/116418875523198922

Q1 2026 was a very strong quarter for Firefox Security & Privacy.

some highlights:
- We expanded AI-assisted vulnerability discovery through our collaboration with Anthropic, helping identify and fix a high number of real security issues.
- We shipped the Sanitizer API in Firefox 148, making Firefox the first browser to support this stronger defense against XSS.

More in the newsletter linked below :)

OpaqueRange API

lets you easily position a popup next to the text cursor in an <input> or <textarea>

available experimentally in Edge

https://www.youtube.com/watch?v=Sp9C68TZXiE

Try the OpaqueRange API. Stop using mirror divs to measure text positions in inputs!

YouTube

map.getOrInsertComputed is newly baseline! It's a small feature, but I've found it pretty useful. Here's how it works.

Full docs and polyfills on MDN https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/getOrInsertComputed

There should exist an ultra simple way to keep a smartphone turned on without tapping the screen.

Maybe wave at it? Shout “stay on”?

The yearly WebAIM report is out and the overall accessibility state of the web is getting worse again.

"Home pages with ARIA present had significantly more errors (59.1 on average) than pages without ARIA (42 on average)"

Man, this makes me sad.

https://webaim.org/projects/million/

Selectors in CSS are fast, but not when your app has too many DOM nodes and the selector in question is a non-optimal `:has()` — that can still introduce significant performance regressions in practice.

`:has()` should be your last resort — very often, using static templating or even JS instead could be a better idea.

Bad: `.foo:has(.bar)`
Ok: `.foo:has(> .bar)`.

Even the `:has() > …` should also be avoided with not precise selectors like `> *` or `> :first-child` — those can be bad too.

CSS contrast-color is newly baseline, but it falls short in some areas. Here's how it works, and what to look out for:

In Croatian:

legitimize = to ask someone to prove their identity based on an ID card

e.g. the police legitimizes the protester.

I don’t know why “identify” was not good enough, but ok.