8000 Spelling & grammar markers by frivoal · Pull Request #1881 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

Conversation

frivoal
Copy link
Collaborator
@frivoal frivoal commented Oct 16, 2017

This pull requests is an attempt to solve #1828, based on what I think we were converging towards in during the conf call.

A possible variant of this would be to add the two new values to text-decoration-style instead of text-decoration-line. Arguably, if UAs wanted to allow it, text-decoration: overline spelling-error is slightly more likely to be a meaningful combination than text-decoration: solid spelling-error.

However, neither are motivated by real use cases, and the syntax I chose in this PR means the feature can be activated with just text-decoration: spelling-error or text-decoration-line: spelling-error, rather than having to specify text-decoration: spelling-error underline, expecting the underline part to be ignored, in order to avoid the longhand expansion to text-decoration-line: none; text-decoration-style: spelling-error; that would happen if it were left out.

Copy link
Member
@astearns astearns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from spelling nits, this looks good to me

<dt><dfn value for="text-tecoration-line">spelling-error</dfn>
<dd>This values indicates the type of text decoration used by the User Agent
to highlight spelling mistakes.
It's appearance is UA defined.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its

Note that not blinking the text is one technique to satisfy <a href="https://www.w3.org/TR/UAAG/guidelines.html#tech-on-off-blinking-text">checkpoint 3.3 of WAI-UAAG</a>.
This value is <strong>deprecated</strong> in favor of Animations [[CSS3-ANIMATIONS]].
<dt><dfn value for="text-tecoration-line">spelling-error</dfn>
<dd>This values indicates the type of text decoration used by the User Agent
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

value

It's appearance is UA defined.
<span class=note>It is often rendered as a red wavy underline.</span>
<dt><dfn value for="text-decoration-line">grammar-error</dfn>
<dd>This values indicates the type of text decoration used by the User Agent
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

value

<dt><dfn value for="text-decoration-line">grammar-error</dfn>
<dd>This values indicates the type of text decoration used by the User Agent
to highlight grammar mistakes.
It's appearance is UA defined.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its

Copy link
Contributor
@FremyCompany FremyCompany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to Alan's review

@FremyCompany FremyCompany merged commit 89998ef into w3c:master Oct 17, 2017
@frivoal frivoal deleted the spelling-grammar branch October 17, 2017 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0