The currentColor CSS keyword references the current text color and can be used to apply an element's text color...

The :nth-child pseudo class is commonly used for targeting elements based on their position within a parent container, for...

For Selenium tests, your browser starts in your local timezone, or whatever your system's environment specifies. This is usually...

developer.mozilla.org

Here is a workaround for when you want to use text-wrap: balance but must also render nicely for browsers...

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

ActiveStorage does not provide any built-in way of implementing authentication for the available DirectUpload endpoint in Rails. When using...

SVG files often contain redundant information, like editor metadata or hidden elements. When esbuild handles your static assets, you can...

haml.info

Haml renders HTML with indentation reflecting the nesting level of elements. When it comes to white-space preserving content, this...

When debugging slow SQL queries, it’s helpful to understand the database engine's query plan. Whenever you execute a...

Hint If you are using our opscomplete.com hosting we can set all environment variables mentioned below for your deployment on...

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...

developer.mozilla.org

Text fragments allow linking directly to a specific portion of text in a web document, without requiring the author to...

blog.saeloun.com

Rails' fragment caching caches subtrees of an HTML document tree. While constructing that tree though, it can be really hard...

makandra dev

A lesser known fact about PG enums is that they are ordered. This can be really handy when values have...

masilotti.com

Slow test suites are a major pain point in projects, often due to RSpec and FactoryBot. Although minitest and fixtures...

Starting with ChromeDriver 127, if your application displays a beforeunload confirmation dialog, ChromeDriver will immediately close it. In consequence, any...

I recently stumbled upon the Rails feature composed_of. One of our applications dealt with a lot of addresses and...

esbuild comes with a minifier that is good enough for most cases. If you're looking to squeeze out as...

Terser is a really good minifier ("compressor") for JavaScript code. I'm often surprised by the thoughtfulness of its compressed...

testing-library are widely used testing utilities libraries for javascript dependent frontend testing. The main utilities provided are query methods...

Whenever you have to deal with randomness in a jasmine test there are some spy strategies to help you out...

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

makandra dev
github.com

I was recently asked to optimize the response time of a notoriously slow JSON API endpoint that was backed by...