[csswg-drafts] [text-decoration] Note about 'text-decoration' backwards compatibility is wrong (#7088)

Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts:

== [text-decoration] Note about 'text-decoration' backwards compatibility is wrong ==
https://www.w3.org/TR/css-text-decor-4/#text-decoration-property

> **Value**: `<'text-decoration-line'> || <'text-decoration-thickness'> || <'text-decoration-style'> || <'text-decoration-color'>`

> Note: A [text-decoration](https://www.w3.org/TR/css-text-decor-4/#propdef-text-decoration) declaration that omits both the [text-decoration-color](https://www.w3.org/TR/css-text-decor-4/#propdef-text-decoration-color) and [text-decoration-style](https://www.w3.org/TR/css-text-decor-4/#propdef-text-decoration-style) values is backwards-compatible with CSS Levels 1 and 2.

That's wrong, in CSS2.2 the grammar was

> **Value**: `none | [ underline || overline || line-through || blink ] | inherit`

So effectively a `text-decoration` declaration with `<'text-decoration-style'>` or `<'text-decoration-color'>` is not backwards-compatible.
But it's also not backwards-compatible if:
 - It has `<'text-decoration-thickness'>`.
 - The `<'text-decoration-line'>` is `spelling-error` or `grammar-error`

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7088 using your GitHub account


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

Received on Friday, 25 February 2022 17:35:53 UTC