The `:focus-within` Pseudo Class

Nice find by Ian Devlin: The :focus-within pseudo class becomes active when an element itself has focus or if any of its descendants does. Selecting a parent element based on children is lonnng awaited. The crown jewel of that is :has(). I wonder if that’s getting closer. https://www.iandevlin.com/blog/2017/04/css/the-focus-within-pseudo-class

[Read More...»]

Decoupled CMS

Decoupled CMS, also known as headless CMS, has its front-end component (the head) removed, and what remains is a backend delivering content via an RESTful API. Because of its backend-only nature, it does not care about how the content is displayed: its focus is just on storing and delivering the content, and nothing more. Decoupled…

[Read More...»]

var vs let

You may think that let is the new var with an exception that let does not allow hoisting. This was my original understanding also last year. However, I learned recently that there are other differences as well. Take a look at this iteration. As you can see, let binds to each iteration. So let is…

[Read More...»]

Jekyll vs. Hugo

While static websites was the beginning of the Internet, aka www, modern static website generation is just getting started. Why static site generator? Static site generators are a great choice for blogs and other content that do not require dynamic content pulled from a database. Hey, this is how the web used to be. Simple…

[Read More...»]