Skip to content

[css-text-decor] [css-pseudo] text-decoration-line:: spelling-error inside ::spelling-error pseudo (and grammar) #9233

@schenney-chromium

Description

@schenney-chromium

It was resolved in #7522 to ignore all other text-decoration properties when the text-decoration-lineproperty has value spelling-error or grammar-error.

When ''spelling-error'' or ''grammar-error'' apply, the user agent must disregard the other sub-properties of 'text-decoration', as well any other properties typically affecting the appearance of line decorations (such as 'text-underline-position', 'color', 'stroke', or 'fill') when rendering these decorations.

A side effect of this change is that

::spelling-error { text-decoration-color: blue; }

has no effect because the default text-decoration-line for ::spelling-error is spelling-error (as one would hope).

Same applies to ::grammar-error.

I propose that we accept this as working as intended, and update the spec to clearly say that ::spelling-error will only respect text decoration properties when text-decoration-line is present with a value other than spelling-error or grammar-error.

::spelling-error {
   text-decoration-line: underline;
   text-decoration-style: wavy;
   text-decoration-color: blue;
}

Metadata

Metadata

Type

No type

Projects

Status

Unslotted

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions