Advertisement · 728 × 90

Posts by Arpit Agrawal

I've been caught by this before, and I've seen other experienced #CSS devs get stuck on it:

* { color: deepPink; }
html#high-specificity { color: teal !important; }

If we put that ID on the root, and some text in our document, what color will the text be?

11 hours ago 11 4 6 0
Preview
CSS Cascade A visual explainer of the CSS Cascade, the algorithm that determines the 'winning value' from a list of competing declarations.

I built a visual explainer of the CSS Cascade, the algorithm that determines the "winning value" from a list of competing declarations.

It's built on work by @bram.us and @miriam.codes.

cascade.arpit.codes

I wrote about how it came together on my blog: arpit.blog/notes/2026/0...

1 day ago 48 16 0 0
Post image

The Jetsons lied to us

5 days ago 17227 4923 81 123
Video

The CloseWatcher API landed in Firefox 149, making it easy to listen for platform-specific 'dismiss' signals. Here's how it works:

5 days ago 136 30 8 2
Preview
Chad Gowler | State of the Browser Chad is a user researcher and accessibility advocate based in Sheffield in the UK. They have been working in tech for over a decade as a developer, user researcher and accessibility consultant. They d...

The recording of @kitation.co.uk talk ‘The Plateau of Accessibility Compliance: Where do we go from here?’ is now available to watch online!
2026.stateofthebrowser.com/speaker/chad...

5 days ago 6 7 1 2
A screenshot of the video section of the HTML standard, now containing the loading attribute, a new addition

A screenshot of the video section of the HTML standard, now containing the loading attribute, a new addition

Spec proposal merged.
HTML video and audio lazy loading is now a web standard.
github.com/whatwg/html/...
html.spec.whatwg.org#the-video-el...
html.spec.whatwg.org#the-audio-el...

1 week ago 146 33 6 1

@beyondtellerrand.com Hi Marc, I'd love to attend #btconf Düsseldorf remotely via a streaming pass. Does the scholarship form also cover streaming passes, or is that only for in-person tickets?

1 week ago 0 0 1 1
Preview
uaplus.css | fokus UA+ (User agent plus), a different type of reset style sheet

So much so that I feel the urge to redesign my portfolio based on the approach he showed. For now, I’ll dive into his UA+ stylesheet and oli.css project to get a deeper understanding.

fokus.dev/tools/uaplus/
olicss.com

1 week ago 2 0 0 0
Preview
Breaking with habits by Manuel Matuzovic

Many of the speakers were kind enough to share a link to their slides. I haven’t checked out all of them yet, but I liked @matuzo.at’s talk ‘Breaking with habits’.

noti.st/matuzo/K64nm...

1 week ago 1 0 1 0
Preview
RAMO If you don’t go to Web Day Out, I think you’re going to regret it.

By all accounts, it was an excellent event. The regret at missing out (RAMO) is real. I remotely attended #SotB 2026 and I’d love it if more events offered a remote option.

adactio.com/journal/22353

1 week ago 0 0 1 0
Advertisement
Preview
That was Web Day Out An excellent day of talks in Brighton exactly 37 years after the birth of the World Wide Web.

I couldn’t make it to #WebDayOut. Thankfully, @adactio.com wrote about it and linked to a bunch of online talk about it. Special shout out to @joshtumath.uk who live-blogged each talk.

adactio.com/journal/22465

1 week ago 2 0 1 0

Thank you. I've added a comment with a test case.

1 week ago 0 0 0 0

😂😂😂

1 week ago 1 0 0 0
Preview
The 49MB Web Page A look at modern news websites. How programmatic ad-tech, huge payloads and hostile architecture destroyed the reading experience.

The 49MB Web Page thatshubham.com/blog/news-au...

2 weeks ago 34 8 3 3

Thanks Roma!

Also, your anchored sidenotes implementation is excellent, I learned a lot from it.

2 weeks ago 1 1 1 0
Preview
Anchor cross-referencing 2.0 ...

I came across this bug while exploring @kizu.dev's implementation of Eric Meyer's Nuclear Anchored Sidenotes.

codepen.io/kizu/pen/abR...

2 weeks ago 0 0 0 0
Preview
chained anchor positioning A code demo by Arpit created on CodePen

@jensimmons.bsky.social Hi Jen, I think I found a bug with CSS anchor positioning in Safari. I have a chain of elements where each one positions itself below the previous one using `inset` and `anchor()`. It works as expected in Chrome & Firefox but breaks in Safari.

Pen: codepen.io/editor/arpit...

2 weeks ago 0 0 2 0
Preview
Scope in CSS We've got @scope in CSS now, and it's got it's uses. But the concept of scope in CSS is a wider idea.

Especially when `@scope` rules are written as inline styles inside a `<style>` element in the HTML. Chris Coyier called these "kinda like Shadow DOM without using the Shadow DOM" in his CSS Day talk.

frontendmasters.com/blog/scope-i...

2 weeks ago 2 0 0 0
CSS Scope & Mixins
CSS Scope & Mixins YouTube video by Winging It

Miriam showed a similar technique using an `end-scope` attribute as a selector to reset the inherited properties. Unfortunately, I don't think CSS gives us a better option right now. Turning off inheritance is not an easy task.

youtube.com/watch?v=T-X6...

2 weeks ago 2 1 0 0
Inherited properties leak through the donut scope - Articles | Arpit's Blog The online home of Arpit Agrawal, a web designer-developer from India.

Today I learned that when using the new CSS `@scope` rule, inherited properties leak through the donut scope.

I wrote more about it on my blog.

arpit.blog/articles/202...

2 weeks ago 2 1 2 0
Advertisement
Video

So. Anchor Positioning and DevTools …

I sat together with The Hype™ tonight and this is what we built in 2 hours.

Main takeaway from this experiment is that it still requires a “Subject Matter Expert” (in this case: me) to build this, instructing The Hype™ what to do (and sometimes how to do it).

2 weeks ago 46 5 5 4

Finding the containing block is *super easy* in @Polypane.app, which literally just lists it for each element in the Elements panel.

Along with the offsetParent and the stacking context parent, two other important concepts that often confuse devs

Way too many developers are sleeping on Polypane ;)

2 weeks ago 11 2 2 0

Wow! I had no idea Polypane did this. I am already a fan of the responsive design view.

2 weeks ago 1 0 0 0

In the video, @tabatkins.com mentions that dev tools really need a way to show the containing block for elements, especially absPos/fixedPos elements.

Paging @bram.us, @una.im, @jakearchibald.com and @jensimmons.bsky.social.

It would be super helpful to visualise what the containing block is.

2 weeks ago 3 0 1 1
Debugging CSS Anchor Positioning
Debugging CSS Anchor Positioning YouTube video by Winging It

I also saw the Winging It episode on ‘Debugging CSS Anchor Positioning‘. It really helped me develop a mental model of how anchor positioning works under the hood and why the gotchas exist.

www.youtube.com/watch?v=3vwr...

2 weeks ago 0 0 1 0
Preview
Here's Why Your Anchor Positioning Isn't Working How to find an anchor element

Oh boy! I had no idea anchor positioning was this complicated. I would be afraid to touch it if not for this recommendation from James Stuckey Weber to make it work reliably.

1. Make the anchor and the positioned element siblings.
2. Put the anchor first in the DOM.

www.oddbird.net/2025/01/29/a...

2 weeks ago 5 1 1 0
Preview
Un-Sass'ing My CSS: Native CSS Nesting Always Twisted Learn how to use native CSS nesting in modern browsers. Understand the & selector, specificity rules, differences from Sass, and when to use nesting with practical examples for components, themes, and...

🎉 new blogpost 🎉

Un-Sass'ing My CSS: Native CSS Nesting

Nesting was a dream feature in Sass and it's recently become 'native' in CSS.

This post covers syntax, specificity, real patterns, and the key differences you need to know.

www.alwaystwisted.com/articles/UnS...

#CSS #Sass #FrontEnd #WebDev

3 weeks ago 76 20 3 0

Agreed! It did feel a bit hacky.

3 weeks ago 1 0 0 0
9 Mar 2026, 09:34 pm - Notes | Arpit's Blog The online home of Arpit Agrawal, a web designer-developer from India.

Hey @kevinpowell.co, I liked your video on the slide-in nav of your website. I recreated the slide-in effect using the upcoming CSS scroll *triggered* animations and blogged about it on my website.

Post: arpit.blog/notes/2026/0...

CodePen demo: codepen.io/editor/arpit...

3 weeks ago 6 1 1 0

Embracing progressive enhancement can make it much easier to adopt newer web features.

3 weeks ago 22 4 2 0
Advertisement