Delan Azabani digs into the (hopefully) coming quickly ::spelling-error and ::grammar-error pseudo selectors in CSS. Design management is all the time good. Hey, if we are able to model scrollbars and model chosen textual content, why not this?
The squiggly traces that point out attainable spelling or grammar errors have been a staple of phrase processing on computer systems for many years. However on the net, these indicators are powered by the browser, which doesn’t all the time have the data wanted to put and render them most appropriately. For instance, authors would possibly wish to present their very own grammar checker (placement), or tweak colours to enhance distinction (rendering).
To deal with this, the CSS pseudo and textual content ornament specs have outlined new pseudo-elements ::spelling-error and ::grammar-error, permitting authors to model these indicators, and new text-decoration-line values spelling-error and grammar-error, permitting authors to mark up their textual content with the identical sort of decorations as native indicators.
This can be a distinctive put up too, as Delan is actually the individual implementing the function within the browser. So there may be all types of deep-in-the-weeds stuff about how advanced all that is and what all of the issues are. Kinda like, ya know, net improvement. Like to see this. I’ve lengthy felt that it’s bizarre there may be seemingly such little communication between browser engineers and web site authors, regardless of the latter being a literal shopper of the previous’s work.
Direct Hyperlink to Article — Permalink
The put up Chromium spelling and grammar options appeared first on CSS-Tips. You possibly can help CSS-Tips by being an MVP Supporter.
Subscribe to MarketingSolution.
Receive web development discounts & web design tutorials.
Now! Lets GROW Together!