WordPress Developer Ukraine, Kyiv
CSS @starting-style: Animating Elements on First Render

CSS @starting-style: Animating Elements on First Render

CSS @starting-style: entry animations from display: none A dropdown that fades in when it opens sounds trivial, and in CSS it used to be impossible without JavaScript. The element goes from display: none to display: block, and a transition needs a “before” style to start from, but an element that was not rendered has none.…
Details
CSS Container Style Queries: Data-Driven Component Variants

CSS Container Style Queries: Data-Driven Component Variants

Container style queries: component variants from a custom property Size container queries ask “how wide is my container?”. Style queries ask a different question: “what is the value of a custom property on my container?”. A card can then switch to its featured layout because a parent section sets --ha-variant: featured, without an extra class…
Details
git notes: Annotating Commits Without Rewriting History

git notes: Annotating Commits Without Rewriting History

git notes: add information to commits without rewriting history A commit is immutable: changing its message changes its hash and rewrites the history after it, which is not acceptable on a shared branch. Sometimes information arrives later: the commit was deployed to production at 14:22, the reviewer approved it, a test on PHP 8.3 failed.…
Details