Grilled Cheese

ExploreLog inSign up

Daniel Schwarz

@dxnny.fun

151 Following222 Followers

Designer / dev / editor / writer, currently @css-tricks.com.

PostsRepliesMedia
@dxnny.funDec 4, 2026, 8:51 PM

My year on Xbox 2026 #MyYearOnXbox www.trueachievements.com/MyYearOnXbox...

trueachievements.comSchwarzio's #MyYearOnXboxCheck out Schwarzio's 2026 Xbox stats
@dxnny.funDec 4, 2026, 5:37 PM

We really got text-overflow before line-clamp Anyway, read my article 👇

CCSS-Tricks*@css-tricks.comDec 4, 2026, 2:59 PM

Strings in text-overflow: A Win for Truncated Text! css-tricks.com/css-text-ove...

@dxnny.funDec 4, 2026, 5:35 PM

This is the first thing I open in the morning 😂

CCSS-Tricks*@css-tricks.comDec 3, 2026, 11:01 PM

The CSS-Tricks community is where the fun's at. 😂 No FOMO shame here, but you really should be a member! css-tricks.com/memberships/

Discord thread about CSS naming, about it being hard and ending with a Schitt's Creek meme saying just fold it in.
@bell.bzDec 2, 2026, 12:07 PMReposted by @dxnny.fun

Considering how vast @css-tricks.com is and how much traffic they get, their advertising rates are so generous

css-tricks.comAdvertising & Sponsorship | CSS-TricksCSS-Tricks has been a trusted resource for front-end developers since 2007, and as of October 2026 it’s independently owned and operated once again. The site
@dxnny.funDec 4, 2026, 2:13 PM

At least a salesperson helps you. Struggling to understand what we need an Elon Musk for.

@kizu.front-end.social.ap.brid.gyNov 27, 2026, 10:42 PMReposted by @dxnny.fun

New blog post: “Scoped Mixin Calls”.

blog.kizu.dev/scoped-mixin…

A quick post about one interesting future use case for `@scope` with native #CSS Mixins.

blog.kizu.devScoped Mixin CallsScoped Mixin CallsScoped Mixin CallsScoped Mixin Calls# Scoped Mixin CallsScoped Mixin CallsScoped Mixin CallsScoped Mixin Calls Published on: November 27, 2026 Categories: CSS Mixins 3, CSS Scopes 5, CSS 104 Current music: 夢中夢 — _反復する世界の果てで白夜は散る repetitional existence_ <a href="https://virginbabylonrecords.bandcamp.com/track/repetitional-existence">夢中夢<span class="nowrap"> —</span> 反復する世界の果てで白夜は散る repetitional existence</a> Current drink: Peppermint Tea Two days, ago Patrick Brosset published a nice overview of CSS Mixins — “The beauty of CSS mixins”. Among many other use cases, Patrick showcases a pretty fun one: using mixins as styleable slots, where a website could call `@apply` in various places for theming purposes, and then just by providing the mixin _definitions_ you could deliver your styles precisely into predefined places, without needing to know which selectors are used, or needing to maintain those. Pretty nifty! One downside that he mentioned was this: > Nested selectors can reach into your markup again. Meaning that you could define your mixin like @mixin --my-styled-section { & button { /* but we don’t want mixins to touch buttons! */ } body:not(&) { /* Wait, the whole body is now pink?! */ background: pink; } } Yesterday in Mastodon I pointed out a potential solution for that, and today I decided to share it here, as I think this is actually a pretty cool use case for scopes, which separates them pretty nicely from other “scoping” alternative that we have like container style queries. To demonstrate the problem and the solution, I will copy the CSS I shared in that Mastodon thread. Of course, only Chromium with experimental web platform feature flag is needed, but you might get what is going on from the code alone. First, the mixin that we will be trying, and which intends to escape the boundaries of what the mixin was intended to style: @mixin --my-mixin { /* Testing that the mixin works */ padding: 1em; border: 1rem solid var(--GREEN); border-radius: 2rem; /* Trying to target inside */ & .something-inside, /* Trying to target outside, escaping nesting */ .outer:not(&) { border: 1rem solid var(--PINK); } } Now, a “broken” example, where we naively call the mixin, and it can escape the containment: Pink borders without scoping Pink borders without scoping Pink borders without scoping .mixin-context { @apply --my-mixin; } <div class="outer">Pink borders without scoping</div> <div class="mixin-context"> <div class="something-inside"> Pink borders without scoping </div> </div> <div class="outer">Pink borders without scoping</div> And here is how we can fix it by defining a proper donut scope (same HTML as above): Pink borders without scoping Pink borders without scoping Pink borders without scoping @scope (.mixin-context) to (:scope > *) { & { @apply --my-mixin; } } In this example, we stop the scope right on any first child, in reality we could allow more, based on what we want out of the scope. Of course, even in those boundaries, you could do something nasty if you wanted, but this heavily reduces the styleable area. * * * I remember pretty often people were wondering: do we need `@scope` if we have, like, container style queries, as with them, we could also achieve donut scoping, in a way? This technique, I think, is what makes the `@scope` stand out: anything that would rely on _custom properties_ would not work, as you could override them from inside the mixin body. But the `@scope` defines things pretty strictly, and is not overridable this way! Although, there is always a chance something could allow you to step aside… But I can’t think of anything, right now? If you have ideas — I am all ears.
@paulmwatson.comNov 28, 2026, 11:32 AMReposted by @dxnny.fun

CSS mixins cannot come soon enough. #zengarden
patrickbrosset.com/articles/202...

patrickbrosset.comPatrick - The beauty of CSS mixinsCSS mixins let you reuse whole blocks of declarations, not just values. Here is how they work, and a Zen Garden-style experiment that uses them as theming extension points.
@css-only.devNov 30, 2026, 1:56 PMReposted by @dxnny.fun

💡 CSS Tip!

Tired of the classic rectangular grids? Let's random() the shapes!

css-tip.com/random-grid/

Mosaic-style grids using modern features. A unique layout per page load.

Starting with simple grids; the responsive one comes next!

Grid of images with irregular shapes
CCSS by T. Afif@css-only.devNov 28, 2026, 3:36 PM

Random() and Responsive! A cool demo in progress 👀

@piccalil.liDec 1, 2026, 2:03 PMReposted by @dxnny.fun

Did you know that all three of our courses have free lessons for you to enjoy? It gives you a good opportunity to see if it's the right course for you.

1. piccalil.li/javascript-f...
2. piccalil.li/mindful-desi...
3. piccalil.li/complete-css...

All courses are half price too!

Save 50% on all courses from November 23 until December 4
@nileshprajapati.comDec 2, 2026, 5:21 PMReposted by @dxnny.fun

Pretty cool "Elastic/Stretching UI With #CSS Anchors"

blog.master.devElastic/Stretching UI With CSS AnchorsOpposing insets normally stretch a positioned element across its container. Point those insets at CSS anchors instead, and you get an element that stretches between anchors, which is exactly what you ...
@nileshprajapati.comDec 2, 2026, 6:32 PMReposted by @dxnny.fun

Modern #CSS is continuing to surprise me with how far we have come and how much the language continues to evolve, putting a smile and excitement on my face.

"The @property trick that makes sibling-index() more useful"
by @kevinpowell.co

Thank Kevin ❤️.

youtu.beThe @property trick that makes sibling-index() more usefulYouTube video by Kevin Powell
@anatudor.bsky.socialDec 3, 2026, 5:59 AMReposted by @dxnny.fun

The different top & bottom look can be done without pseudos & only a handful of CSS declaration.

Quick @codepen.io demo codepen.io/thebabydino/...

Top background layer is the face, bottom one creates the border regions.

BTW: corner-shape is available in Firefox Nightly and Safari 27.3 beta.

#CSS

Screenshot of the code in the linked demo and the 3D-looking beveled result side by side.
CChris Coyier@chriscoyier.netDec 2, 2026, 10:20 PM

Sir @joshwcomeau.com goes so hard with the `corner-shape: bevel;`. Nesting them is a very cool look. www.joshwcomeau.com/css/bevel-co...

Futuristic looking control buttons using beveled corners. Kinda battlestar-galactica-paper looking.
@chriscoyier.netDec 2, 2026, 10:20 PMReposted by @dxnny.fun

Sir @joshwcomeau.com goes so hard with the `corner-shape: bevel;`. Nesting them is a very cool look.

www.joshwcomeau.com/css/bevel-co...

Futuristic looking control buttons using beveled corners. Kinda battlestar-galactica-paper looking.
4
?Unknown authorDec 1, 2026, 4:03 PMReposted by @dxnny.fun

From now until the 25th, we're going to highlight a web platform feature that shipped in Firefox in 2026!

Behind door 1 is… CSS anchor positioning, which shipped in Firefox 147. Tether tooltips, menus, and popovers to another element using only CSS. developer.mozilla.org/en-US/docs/W...

developer.mozilla.orgCSS anchor positioning - CSS | MDNThe CSS anchor positioning module defines features that allow you to tether elements together. Certain elements are defined as anchor elements; anchor-positioned elements can then have their size and…
@nileshprajapati.comDec 1, 2026, 6:06 PMReposted by @dxnny.fun

Style in body is now valid #HTML by @ollie-williams.bsky.social #CSS

olliewilliams.xyzstyle in body is now valid HTMLBut only when you use scope...
@dxnny.funDec 2, 2026, 11:53 AM

I absolutely love this

@dxnny.funNov 28, 2026, 7:58 AM

Fair, but I prefer coding manually. I guess I mostly use AI when I have a problem my brain can't solve and I can't find answers elsewhere, in which case Claude gives me absolute nonsense. Guidelines are great when you can visualize an outcome, but it rarely handles CSS problems well.

@kevinpowell.coNov 19, 2026, 7:45 PMReposted by @dxnny.fun

I've been seeing comments like this pop up from time to time, and it's always nice to know some people are starting to learn to code through vibe coding. We all had different paths to writing our first lines of HTML & CSS, and I guess this is just another one now

Comment on a YouTube video from yesterday: I was convinced to vibe code my portfolio site for a job interview. I am now learning vanilla html/css because it was all made with tailwind and when I wanted to change something it was a nightmare. Never thought I'd learn to code, but here we are. I love your videos and your passion comes through,  so keep going!
@dxnny.funNov 28, 2026, 6:40 AM

Any tips?

@dxnny.funNov 28, 2026, 6:04 AM

Same here

Older posts
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST