Re: [csswg-drafts] [css-highlight-api] Can errors that trigger `::grammar-error` styling be created programmatically? (#6526)

> I looked at the Custom Highlight API, too, but like the semantics that come with something being a grammar error vs. a spelling error.

@tomayac  Have you seen this somewhat recent addition to the custom-highlight api: https://www.w3.org/TR/css-highlight-api-1/#highlight-types

That gives you the flexibility to highlight whatever you want, **and** indicate that it's a spelling / grammar error semantically.

-- 
GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6526#issuecomment-1000037515 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 23 December 2021 04:36:05 UTC