digitalcourage.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Diese Instanz wird betrieben von Digitalcourage e.V. für die Allgemeinheit. Damit wir das nachhaltig tun können, erheben wir einen jährlichen Vorausbeitrag von 1€/Monat per SEPA-Lastschrifteinzug.

Server stats:

823
active users

Had to update my recent post about :root and custom properties and add an important detail:

You might think it makes sense to define custom props on :root because they are inherited *everywhere*. But this isn’t always the case, as @matuzo pointed out. (🙏)

::selection and ::backdrop, for example, don’t inherit them!

matthiasott.com/notes/custom-p

Matthias Ott – User Experience DesignerCSS Custom Properties Beyond the :root · Matthias Ott – User Experience DesignerMatthias Ott is an independent user experience designer and developer from Stuttgart, Germany. Besides design practice he teaches Interface Prototyping at the Muthesius Academy of Fine Arts and Design, Kiel.
Sebastian Lasse

@matthiasott
No, I didn't think that it makes sense to define it in :root cause of performance.
lisilinhart.info/posts/css-var
I mean it might depend on the count of calc() and overall project size.
I did so for the theming like for colors
github.com/redaktor/widgets-pr
or typo, e.g to generate the “solid baseline measurements” where any column independent of used size-classes or media has the same baseline under each character …
Unfortunately my messages were never answered. As said, there are some “huge” fedi projects :)

@matuzo

lisilinhart.infoLisi Linhart 👩‍💻

@sl007 That’s interesting… the test that Lisi mentions is not online anymore but on the screenshot it looks like it used JavaScript to test the performance of different custom property manipulations. Would be interesting to see whether this is slower – which would be my guess – than the CSS object model. 🧐

@matthiasott

Sure, but I couldn't find any people anymore using the CSS object model outside JS ;)