Skip to content

[css-properties-values-api] initial-value for * with arbitrary substitution values #1120

Open
@cdoublev

Description

@cdoublev

If I understand the spec correctly, initial-value does not require to be validated when syntax is *.

But in Chrome, given the CSS rules below:

  • the first rule is valid: initial-value: var(1) is discarded
  • the second rule is invalid
@property --p1 {
  inherits: false;
  syntax: "*";
  initial-value: green;
  initial-value: var(1);
}
@property --p2 {
  inherits: false;
  syntax: "*";
  initial-value: green;
  initial-value: var(--initial);
}

I am completely confused by the parse result in Chrome. Anyway, should initial-value be invalid when it includes an arbitrary substitution value?

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