Mayank

@mayank@front-end.social
849 Followers
359 Following
595 Posts

design engineer and tinkerer. always listening to prog.

posting about HTML, CSS and other web stuff.

trying to build a less broken, more accessible web.

(posts will auto-delete after N days)

pronounsthey/them
bloghttps://www.mayank.co/blog
*opens RSS reader*
*closes RSS reader*
self-OH: "do you see the kebab next to the trashcan?"

youtube uses a lottie animation for its "subscribe" button. what could possibly go wrong?

it's an isolated thing. it's not like it could break the core experience, right??

think again because that's exactly what happened just now. this lottie component covers the viewport and blocks all clicks

…which means i can't read the video description (among other things)

watching some CSS tutorials
Please Don't Force Dark Mode — Vishnu's Pages

Dear website designers, Please don’t force dark mode on your users. If dark mode is a characteristic of your brand, please ensure you choose a comfortable...

you wouldn't want your site to be hacked by an SVG

https://developer.mozilla.org/en-US/docs/Web/SVG/Element/use

<use> - SVG: Scalable Vector Graphics | MDN

The <use> element takes nodes from within the SVG document, and duplicates them somewhere else. The effect is the same as if the nodes were deeply cloned into a non-exposed DOM, then pasted where the use element is, much like cloned template elements.

MDN Web Docs
my border-radius :(

in my quest for anchored focus rings, i had somewhat of an epiphany today. i can add an `::after` pseudo-element on a top-layer element. works ok if you can ensure the pseudo is unused.

i was also trying to use proximity scoping (with lower boundary) to avoid creating multiple pseudos, but couldn't figure that one out.

to be continued…