med-mastodon.com is one of the many independent Mastodon servers you can use to participate in the fediverse.
Medical community on Mastodon

Administered by:

Server stats:

418
active users

#css

36 posts34 participants0 posts today

I'm back in JavaScript hell trying to manage a reverse-sticky element that relies on scroll triggering where the dynamic iOS Safari address bar keeps messing with viewport height calculation. So annoying.

Then when I rotate on iPad I have to find a way to recalculate again. PITA

🧑🏼‍🚀🧑🏻‍🚀 Le retour sur Terre de Wang Haoze, Cai Xuzhe et Song Lingdong de la station spatiale chinoise #CSS a été reporté en raison des mauvaises conditions météo sur le site d'atterrissage.
Ils vont rester quelques jours de plus avec Chen Dong, Chen Zhongrui et Wang Jie

⚒️ Tinkering thought. This is a more forgiving `:empty` CSS selector. It will match any tag without DOM element descendants, regardless of whitespace.

The potential drawback is that it will also match tags which contain only text nodes. Meaning, this would be a false positive: `<p>A</p>`.

Still, I cannot tell you how many times I wanted to style a tag without any children. But some line break in a template was causing it not to be truly empty. This should help mitigate those scenarios.

```
.foo:not(:has(*)) {
outline: 10px solid red;
}
```

#CSS "Line height units give us a direct way to tie any size in our layout to the vertical rhythm of the text. Margins are just one possibility — padding is another, gaps, width and height, or any other measurement in the layout."

webkit.org/blog/16831/line-hei

WebKit · Polishing your typography with line height unitsLearn how to use line-height units when setting paragraph margins — creating vertical rhythm in your text.

J'ai ajouté ce CSS ci-dessous pour avoir la colonne par défaut (celle pour voir le toot sur lequel on a cliqué) juste après la colonne "Accueil"

Le truc chiant, c'est qu'il y a un vieux js qui scroll à droite sur un clique. Est-ce qu'il y aura moyen de l'enlever?

```
div[role="region"][aria-label].column{
order: 2;
}

div[role="region"].column:not([aria-label]) {
order: 1;
}

div[role="region"][aria-label="Accueil"].column {
order: 0;
}
```

#mastodon, #ui, #javascript, #css

🆕 blog! “HTML Oddities: Is a newline just another whitespace in attribute values?”

Consider these two HTML elements:

<div class="a b">…</div>

<div class="a
b">…</div>

Is there any semantic difference between them? Is there any way to target one but not the other? In other words, are they logically different?

I think the answer is no. On every bro…

👀 Read more: shkspr.mobi/blog/2025/04/html-

#css #HTML

The HTML5 Logo.
Terence Eden’s Blog · HTML Oddities: Is a newline just another whitespace in attribute values?
More from Terence Eden