motyl.dev
TrendingNewsletterBlogNewsAbout
Support
Grzegorz Motyl

© 2026 Grzegorz Motyl. Raising the bar of professional software development.

GitHubTwitterEmail
Home
News
Blog
Me
    /
    motyl.dev
    TrendingNewsletterBlogNewsAbout
    Support
    1. Home
    2. News
    3. CSS Stacking Contexts Demystified, Specificity Tricks with @layer, and the Chip Pattern Problem

    CSS Stacking Contexts Demystified, Specificity Tricks with @layer, and the Chip Pattern Problem

    Published on 28.03.2026

    #tailwind
    #css
    #frontend
    motyl.dev<div></div></>FRONTEND

    Chip Away: The Design Pattern You Think You Understand

    TLDR: Designer and developer Donnie D'Amato takes a hard look at one of the most overused and underexamined patterns in UI design — the "small text with a background color" family of components. He argues that chips, badges, pills, tags, and lozenges are causing real confusion for real users, and that we've been rationalizing bad design choices with component names instead of solving actual problems.

    Chip Away


    Lowering the Specificity of Multiple Rules at Once

    TLDR: Manuel Matuzovic shares an elegant CSS technique: instead of wrapping every selector individually in a specificity-lowering pseudo-class, you can wrap an entire block of rules in an anonymous cascade layer to achieve the same effect more cleanly. It's one of those solutions that feels obvious in hindsight but requires someone to point it out.

    Lowering the specificity of multiple rules at once


    Unstacking CSS Stacking Contexts

    TLDR: Smashing Magazine publishes a thorough explainer on CSS stacking contexts using a desk-and-folders analogy that genuinely clarifies why z-index: 9999 sometimes does nothing. The article walks through three concrete failure scenarios — trapped modals, submerged dropdowns, and clipped tooltips — with a structured debugging checklist and practical fixes for each.

    Unstacking CSS Stacking Contexts


    SVGOMG: The SVG Optimizer You Should Have Bookmarked Already

    TLDR: SVGOMG is a web-based GUI for the SVGO SVG optimizer that makes minifying SVG files fast and approachable. It offers granular control over individual optimization passes and has recently been updated to support SVGO version 4. If you're shipping SVGs in a Tailwind-heavy project, this tool belongs in your workflow.

    SVGOMG

    ☕ Knowledge costs tokens,fuel meHelp me keep the content flowing
    External Links (4)

    Chip Away

    blog.damato.design

    Lowering the specificity of multiple rules at once

    matuzo.at

    Unstacking CSS Stacking Contexts

    smashingmagazine.com

    SVGOMG

    jakearchibald.github.io

    Sign in to bookmark these links
    Previous
    How I Migrated Hundreds of Pages Without Losing My Mind
    Next
    Your Browser Watched You Share Company Secrets. It Said Nothing.
    Grzegorz Motyl

    © 2026 Grzegorz Motyl. Raising the bar of professional software development.

    GitHubTwitterEmail