DirectUpload allows you to upload files to your file storage without having to wait for the form to submit. It...

makandracards.com

I have moved away from creating fixture elements using CSS selectors. While CSS can be very concise, it can be...

makandra dev
w3.org

This decision tree describes how to use the alt attribute of the element in various situations. For some types of...

Elements can be hidden and shown by toggling the display property. However, this is not animatable, so we often turn...

You are given two CSS selectors that you do not control. How can you build a new selector that matches...

open-ui.org

tl;dr When browsers start to adapt proposals from Open UI, it might not be necessary to use any 3rd...

gridbyexample.com

Rachel Andrew has built a website about CSS Grid. Video tutorials More than 30 layout examples for feature demonstration

The Web Animations API has great browser support, and you should be using it to animate DOM elements from JavaScript...

Up until Chrome 120, scrollbars could only be styled using the various -webkit-scrollbar-* pseudo elements, e.g. to make the...

sitepoint.com

Multiply by 1x the unit: $number = 13 $length = $number * 1px // => 13px Removing a unit

If you have an element with significant border-radius (e.g. 50% for a circle) and you want inline content (i.e...

makandra dev

Getting CSS (and JS) live reloading to work in a esbuild / Rails project is a bit of a hassle, but...

bitsofco.de

Even when you app has no CSS at all, you still inherit a default user agent stylesheet from your browser...

The recommended additional setup of the spreewald gem, a useful set of cucumber steps, includes adding a file for defining...

github.com

For my computer science bachelor's thesis I programmed and evaluated a CLI Test Case Prioritization (TCP) tool for makandra...

If you want to collapse/expand elements with dynamic content (and thus unknown height), you can not transition between height: 0...

TL;DR: Grid elements have min-width: auto in a 1fr column, which may lead to overflows. With minmax(0...

Note: You won't need this for single lines of text. In this case it is better to just use...

Within Capybara you most certainly use the #check- and #uncheck-method to (un)check checkboxes. But there's one problem...

tl;dr Individual transform properties are great because they allow you to write more readable and maintainable CSS, especially when...

makandra dev
content-security-policy.com

tl;dr The strict-dynamic source list keyword allows you to simplify your CSP policy by favoring hashes and nonces...

Let's say we have posts with an attribute title that is mandatory. Our example feature request is to tag...

developer.mozilla.org

Container queries enable you to apply styles to an element based on the size of the element's container. If...

To read the current breakpoint tier in JavaScript, employ this CSS: :root { --current-breakpoint-tier: xs; @media (min-width: $screen...