Re: [csswg-drafts] [css-pseudo] Can ::spelling-error and ::grammar-error occur anywhere?

> I don't think "children of editable elements" is the right phrasing,
 since it should apply to deeper descendants too.

You're right. Consider this a typo / mis-speaking. I did intend 
descendants, not children.

That said, having though about it some more, since descendants of 
editable elements are themselves editable in the general case (and if 
they're not, for example when contenteditable=false has been applied 
on them directly, they probably shouldn't get spelling or grammar 
error markers either), what we're looking for is probably applying to 
editable / user-alterable elements only, without consideration for 
ancestry.
I.e. `:read-write::spelling-error` and rather `:read-write 
::spelling-error`

> I think browsers could still determine on their own if losing focus 
means that an element is no longer editable at that moment. 

That sounds fair to me.

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

Received on Friday, 21 October 2016 02:56:02 UTC