Kevin Pennekamp

7 Followers
293 Following
306 Posts
#CSS lover | Staff front-end engineer | Engineering manager
Websitehttps://crinkles.dev
Blueskyhttps://bsky.app/profile/crinkles.dev
GitHubhttps://github.com/kpnnkmp

A very simple and effective ruleset to follow

https://muan.co/posts/javascript

JavaScript dos and donts @ Mu-An Chiou

Do When the core functionality of a feature cannot function with only HTML. When the core functionality of a feature can benefit from some JavaScript. Start with only HTML, then progressively enhance it, so it can still work without Jav...

Mu-An Chiou

A revisit of the Every Layout sidebar with :has() and selector performance

Heydon Pickering takes a fresh look the Every Layout Sidebar layout, 6 years on, to see if modern CSS selectors can improve it.

https://piccalil.li/blog/a-revisit-of-the-every-layout-sidebar-with-has-and-selector-performance/

A revisit of the Every Layout sidebar with :has() and selector performance

Heydon Pickering takes a fresh look the Every Layout Sidebar layout, 6 years on, to see if modern CSS selectors can improve it.

Piccalilli

I spend hours across several days to solve an issue on a layout behaving different between environments. The only difference I could find is that in the build pipeline some stuff is added on one environment.. To be precise a <script> tag is added as the last child in the body.

So.... `body > :last-child` was now targeting the <script> instead of <main>. WHYYYY CSS, why....

This proposal from @leaverou looks really interesting 👀

Now that we have `:has()` it should be possible to create `inverted` combinators.

A new parent combinator `B < A` could be syntactic sugar for `A:has(> B)`. Similarly we could add previous sibling and ancestor combinators.

The symmetry could make it easier for students to learn, and it could improve readability.

Child selector: `A > B`
Parent selector: `B < A`

What do you think?

Go check it out:

https://github.com/w3c/csswg-drafts/issues/12453

[selectors] Backwards combinators · Issue #12453 · w3c/csswg-drafts

Combinators that could go "backwards" have been proposed before, but until :has() they were rejected on the basis of feasibility. However, now that we have :has(), they are merely syntactic sugar: ...

GitHub
CSS Logic Gates

CSS Functions will soon be available, and it's time to confuse JS developers (and maybe backend developers) a bit.

No, they are not the same as in JS. Like with CSS properties, the order inside doesn't matter and we can write everything in reverse. 🙃

Demo: https://codepen.io/t_afif/pen/MYwMaYE via @codepen (Chrome-only with experimental flag enabled)

#CSS #HTML

and since we’re overachievers, we also made a new website:

https://helloweather.com

Hello Weather

The exceptionally useful, no-nonsense weather app for iOS and Android. Get all the weather info you need, and nothing you don't!

Hello Weather

The all new Hello Weather is finally here!

We’re rolling it out gradually this week, so if you don’t see the update yet, hop over to this App Store link and grab it.

https://apps.apple.com/us/app/hello-weather/id978393692

‎Hello Weather

‎Hello Weather gives you beautiful, trustworthy forecasts powered by the best weather data on Earth. With hyperlocal real-time updates and a joyful design that’s easy to read at a glance, you’ll always be prepared for anything coming your way. Five reasons why you’ll love planning your day with Hell…

App Store
Slightly enhanced sticky revealing footer

Andy Bell showed a nice little UI effect with his “sticky revealing footer”. However, on some pages, the experience was mediocre. A quest was started to improve it.

Crinkles

I'm so happy with how Kelp is shaping up!

If you like HTML, modern CSS, and web components, you'll love Kelp!

https://kelpui.com

Kelp

A UI library for people who love HTML, powered by modern CSS and Web Components.