Frontend performance and user experience are orthogonal to feature development. If care is not taken, adding features usually degrades frontend...
Modern CSS offers the field-sizing property to allow elements to automatically adjust size (width and/or height) to fit their...
When you repeat complex assertions in your tests multiple times, it might be a good idea to extract a custom...
You can report CSP violations to Sentry. Within config/initializers/content_security_policy.rb: Rails.application.configure do config.content_security_policy do |policy| # Settings for the policy...
We usually ship applications that self-host webfonts to comply with GDPR. Many popular web fonts are available as NPM...
tl;dr Set profile.password_manager_leak_detection to false in your Selenium Chrome options to disable password leak detection and...
Use these snippets when you want to measure yourself. Currently available: Core Web Vitals Largest Contentful Paint (LCP) Largest Contentful...
It can be hard to understand what causes a browser scroll smoothly or instantly. CSS, JavaScript and the browser settings...
Say you wrap your index view in a form to apply different filters like pagination or a search query. On...
To apply transparency to an element, you can use opacity in CSS. However, sometimes you don't want to make...
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...
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...
There are various HTML attributes and CSS properties to remove interactivity from an element. Choose the right tool: Effect
When debugging slow SQL queries, it’s helpful to understand the database engine's query plan. Whenever you execute a...
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...
tl;dr When a cookie includes an Expires attribute or an HTTP response includes caching headers like Expires or Cache...
Text fragments allow linking directly to a specific portion of text in a web document, without requiring the author to...
Starting with ChromeDriver 127, if your application displays a beforeunload confirmation dialog, ChromeDriver will immediately close it. In consequence, any...
testing-library are widely used testing utilities libraries for javascript dependent frontend testing. The main utilities provided are query methods...
You are given two CSS selectors that you do not control. How can you build a new selector that matches...