Šime Vidas

@simevidas
1,054 Followers
93 Following
5K Posts
I’m interested in HTML, CSS, and making the web less annoying. My name is pronounced ˈshe-meh.
bloghttps://šime.eu
One of the differences between null and undefined

Scenario 1:

turnout = 50,01%
votes FOR = 25,01%
votes AGAINST = 25%
⇒ referendum passes

Scenario 2:

turnout: 49,99%
votes FOR: 49,99%
votes AGAINST: 0%
⇒ referendum does not pass

So the referendum can pass with 25,01% votes FOR, but it can also not pass with 49,99% votes FOR. It all depends on the votes AGAINST. The more votes AGAINST there are, the likelier the referendum is to pass. WTF?

If something is proposed via referendum in Croatia, the proposal becomes law if

1. there are more votes FOR than AGAINST
2. voter turnout is above 50%

I don’t get this. Doesn’t this mean that anyone who votes AGAINST increases the chances of the proposal passing? Which is the opposite of what they want. By voting, they increase the turnout towards 50%.

Anyone who is AGAINST should actually stay home (not go vote) to keep turnout as low as possible.

Then what’s the point of the vote AGAINST?

Why most people don’t think critically and objectively:

It is not in human nature. The human nature is to pick a “tribe” and defend it at all costs.

It is us critical thinkers who are unnatural.

People accept unnatural things only if it benefits them (e.g. medication) or if it’s mandatory (e.g. laws). Critical thinking isn’t mandatory and most people don’t see a benefit in it.

Hence, most people don’t think critically. It’s probably always going to be this way.

I missed the whole hidden=until-found deal until it landed in Firefox 139, and even more recently, Safari Technology Preview 125.

Totally one of those things that looks simple, but gets way more nuanced as you dig in.

https://css-tricks.com/covering-hiddenuntil-found/

Covering hidden=until-found | CSS-Tricks

Short story: Slapping hidden=until-found on an element in HTML enables any hidden content within the element to be findable in the browser with in-page search.

CSS-Tricks

I found a website that puts its sticky header at the bottom.

Not sure if I’m liking it because it’s novel or because it’s genuinely better.

https://www.communityedition.ca

A new gambling law in Croatia introduced a central registry of excluded players. Any Croatian citizen can add themselves into this registry (via the web). Once they do that, they are banned from all sports betting shops and casinos in the country (they are refused service) for the next three months.

(https://www.tportal.hr/vijesti/clanak/ovisnicima-o-kladenju-od-sad-se-moze-blokirati-pristup-kladionicama-evo-i-kako-20250813)

Ovisnicima o klađenju od sada se može blokirati pristup kladionicama, evo i kako

UZ POMOĆ E-GRAĐANA

tportal.hr

CSS Custom Functions with @​function

CSS is slowly turning into CCSS (Custom CSS or Customizable CSS)

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

CSS Custom Functions with @function

YouTube
Another website with a layout shift whenever the header sticks and unsticks…