radikal.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
radikal.social was created by a group of activists to offer federated social media for the radical left in and around Denmark.

Administered by:

Server stats:

163
active users

#css

16 posts14 participants6 posts today
Continued thread

I hadn't heard of it before, but it turns out there's a style format called XSLT that allows the browser to translate an XML file into HTML with CSS styling for display purposes.

Since my feed is Atom rather than RSS, I had a bit of trouble, but this post was helpful:

andrewstiefel.com/style-atom-x

Andrew Stiefel · How to Style an Atom Feed with XSLT
More from Andrew Stiefel
#RSS#Atom#XML

I figured out how to get my RSS feed to be human-readable and nice-looking!

I'd been wanting to do this to give people who aren't familiar with RSS an easier on-ramp to the stuff I care about.

I figure if someone new to RSS clicks on the link and just gets raw XML, they might think something is “broken” and not stick around, but now there's something human-readable and with instructions on how to follow it in a reader.

reillyspitzfaden.com/feed.xml

#RSS#Atom#XML

I want a program that looks over an #HTML document and its #CSS stylesheets, and applies the stylesheets' rules as `style` attributes on the HTML elements in the document.

Meaning this:

<html>
<style>p:first-child { margin-top: 0 }</style>
<p>First paragraph</p>
<p>Second paragraph</p>
</html>

Translates into this:

<html>
<p style="margin-top: 0">First paragraph</p>
<p>Second paragraph</p>
</html>

Is that a thing?

CSS Working Group resolved to allow range syntax in style queries. We can compare with a container variable:

@ container style(--var < 5em)

But can also compare normal values:

style(1em < 20px)
style(sibling-count() > 3)

This style function can also be used for conditions of inline if()

I know that I am a little bit late to the party and everyone else has read and published their responses about it, but hey! Sharing is caring!

This iteration of the hot debate between two competing specs for CSS masonry layout finally sounds convincing to me. Do you remember when the `gap` property all of a sudden became available inside flex containers? I have the same kind of vibe by reading this.

Geat explainer @jensimmons

webkit.org/blog/16587/item-flo

WebKit · Item Flow, Part 1: A new unified concept for layoutCSS Grid and Flexbox brought incredible layout tools to the web, but they don’t yet do everything a designer might want.

CSS Working Group resolved to add an nth-item() function, for selecting a value from multiple options. That could be useful in a lot of situations, but i'm excited to combine with sibling-index():

nth-item(sibling-index(), red, orange, yellow, green, …)

“Item Flow, Part 1: A new unified concept for layout” by @jensimmons, Saron Yitbarek, Elika Etemad and Brandon Stewart

🔗 webkit.org/blog/16587/item-flo

> As we worked through the details, we started to get excited. Suddenly new features for Flexbox and Grid that people have wanted for years had an obvious home. Things seemed to click together elegantly. New capabilities emerged

This is really an exciting…

#CSS #Masonry #Grid #Flexbox

⚓nicolas-hoizey.com/links/2025/

The HTML standard defines many entities for prime symbols: single prime (′), double prime (″), triple prime (‴), it even has a quadruple prime (⁗)! And reverse primes, too! But I'm still waiting for the most important one of them all: the optimus prime.
comicss.art/comics/175/

comicss.artcomiCSS #175: Primesprime symbols: single prime, double prime, triple prime, quadruple prime, and Optimus Prime (with a drawing of the transformer instead of any prime symbol)