10000 [css-text-decor] Note about 'text-decoration' backwards compatibility is wrong · Issue #7088 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-text-decor] Note about 'text-decoration' backwards compatibility is wrong #7088

@Loirooriol

Description

@Loirooriol

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 declaration that omits both the text-decoration-color and 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0