Often times you want to give a bunch of elements the same style, except for the last. For example borders...
Write a // and indent every subsequent line by two spaces. This is great for documenting BEM blocks! // An action button...
Webfonts are not always available when your JavaScript runs on first page load. Since fonts may affect element sizes, you...
When a CSS3 animation makes the animated element flicker, it may well be due to pixel fragments being handled differently...
Be careful when using buttons without a type attribute, since browsers will consider them the default submit button of a...
The debate between using mixins or extends in Sass has been heating up recently. From the surface it appears they...
To achieve this goal you have to setup the session store like the following example: MyApp::Application.config.session_store( :cookie_store...
jQuery doesn't store information about event listeners and data values with the element itself. This information is instead stored...
This guide shows how to create an AngularJS application that consumes more and more memory until, eventually, the browser process...
When you are using the #selector_for helper in Cucumber steps, as e.g. Spreewald does, the following snippet will save...
The easiest way to detect touch-capable browsers is to check for the presence of touch events. It is no...
TL;DR Block formatting contexts establish an isolating container. float and clear only apply to elements within such a container...
The CSS property z-index is not as global as you might think. Actually, it is scoped to a so...
Some insight into how browser rendering engines work. The article shows how the way you manipulate styles (and the DOM...
When navigating back to a page that was received from a POST request, undesired side effects may happen. Therefore, modern...
Use it like this for inline icons: Germany They also work as block elements:
Here is a Javascript function reloadUsers() that fetches a HTML snippet from the server using AJAX and replaces the current...
When testing code that uses pushState / replaceState, your browser will appear to navigate away from http://localhost:3000/specs (or wherever...
This jasmine plugin helps with testing DOM manipulation in two ways: It gives you DOM-related matchers like toBeVisible() or...
When running Selenium features with parallel_tests, some browser-server interaction might take longer than usual and the impatient Capybara...
Angular 1.3+ has an alternative getter/setter pattern: You can bind ng-model to an accessor function. This is a function...
JavaScript objects can have getter and setter functions that are called when a property is read from or written to...
This is a problem when using Selenium with Firefox. We recommend using ChromeDriver for your Selenium tests. This setup allows...
Rails includes a way to see what an e-mail will look like. Integration to RSpec All you need to...