Skip to content

[css-conditional-5] Evaluate IACVT style queries to false #11143

@andruud

Description

@andruud

The current spec can be interpreted to evaluate the following style query to true:

  @property --test {
    syntax: "a";
    initial-value: a;
    inherits: true;
  }
  @container style(--test: b) {
    body {
      background: lightgreen;
    }
  }

(Test case from @kizu.)

This is because the query value is described to go through the regular computed value process, and additionally non-cascade dependent keywords are allowed (that includes unset, which IACVT falls back to). This causes --test:b => IACVT => unset => a, which indeed is the computed value of --test on body.

I'm fairly certain that we want to evaluate any IACVT query to "false"? @mirisuzanne @lilles

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