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

makandracards.com

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

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

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

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

tl;dr To adjust code templates in RubyMine, navigate to Settings -> Editor -> File and Code Templates. Example You can navigate...

In Rails 7.1 it has become possible to annotate partials with the locals they expect: # partial _user_name.erb <%# locals: (user:) %>

This card describes two variants, that add a more intuitive workflow when working with nested attributes in Rails + Unpoly.

This card describes different flavors for concatting HTML safe strings in a helper method in Rails. You might want to...

...HTML elements can automatically start playing when the autoplay attribute is set on them. Except for when they can not...

Debugging performance issues in your Rails app can be a tough challenge. To get more detailed insights consider using the...

Note Using rem only ever makes sense when the root font size is dynamic, i.e. you leave control to the...

developer.mozilla.org

A common cause of non-accessible web pages are elements that were made interactive via JavaScript but cannot be focused...

Any form fields where users enter numbers should be an . Numeric inputs have several benefits over : On mobile or tablet...

Tested on Ubunut 22.04 1. Opener script Create a file ~/.local/bin/coverage_zip_opener with: #!/bin/bash tmp_folder="/tmp/coverage-report-opener" if [ -z "$1" ]

developer.mozilla.org

Today I learned that you can animate HTML elements using the Web Animation API's method .animate(keyframes, options) (which...

Make sure that you use the correct property when editing an HTML attribute. Using innerHTML with unsafe arguments makes your...

Every modern Rails app should have a Content Security Policy enabled. Very compatible default The following "default" is a minimal...

thegnar.com

View specs are a powerful tool to test several rendering paths by their cases instead of using a more costing...

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

Browsers can auto fill-in one time codes if advised. Use it like this: Demo: https://twitter.com/sulco/status/1320700982943223808 Browser support...