Because the calls for of the net change and builders experiment with completely different consumer experiences, the necessity for extra native language enhancements expands. Our presentation layer, CSS, has carried out extremely effectively in bettering capabilities, even when generally too sluggish. The necessity for native help for mechanically increasing textarea
components has been lengthy recognized…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 habits. The brand new habits, content material
, will develop as a lot as attainable. To constrain the scale a textarea
can develop, use conventional width/max-width
and top/max-height
properties.
CSS @helps
Characteristic detection by way of JavaScript is a shopper facet greatest observe and for all the appropriate causes, however sadly that very same performance hasn’t been out there inside CSS. What we find yourself doing is repeating the identical properties a number of occasions with every browser prefix. Yuck. One other factor we…
WebSocket and Socket.IO
My favourite net expertise is shortly turning into the WebSocket API. WebSocket supplies a welcomed different to the AJAX applied sciences we have been making use of over the previous few years. This new API supplies a way to push messages from shopper to server effectively…