Because the calls for of the net change and builders experiment with completely different person experiences, the necessity for extra native language enhancements expands. Our presentation layer, CSS, has executed extremely effectively in enhancing capabilities, even when generally too gradual. The necessity for native assist for routinely increasing textarea
components has been lengthy identified…and it is lastly right here!
To permit textarea
components to develop vertically and horizontally, add the field-sizing
property with a price of content material
:
textarea { field-sizing: content material; // default is `mounted` }
The default worth for field-sizing
is mounted
, signaling present conduct. The brand new conduct, content material
, will broaden as a lot as doable. To constrain the scale a textarea
can develop, use conventional width/max-width
and top/max-height
properties.
Create Namespaced Courses with MooTools
MooTools has all the time gotten a little bit of grief for not inherently utilizing and standardizing namespaced-based JavaScript lessons just like the Dojo Toolkit does. Many builders create their lessons as globals which is mostly frowned up. I largely disagree with that stance, however every to their very own. In any occasion…