[csswg-drafts] [css-conditional-5] Evaluate IACVT style queries to false (#11143)

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

== [css-conditional-5] Evaluate IACVT style queries to false ==
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 fairly certain that we want to evaluate any IACVT query to "false"? @mirisuzanne @lilles

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


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

Received on Friday, 1 November 2024 20:29:25 UTC