Re: [csswg-drafts] [css-conditional] `prefer()` function (#7881)

This is basically #5055, but with especial behavior for variables. Some notes:
 - This should use semicolons instead of commas, since properties like `background` accept values that contain top-level commas.
 - Your proposal treats `--property-1` as a reference to the value of that custom property. But `--property-1` is an identifier, and various property grammars accept identifiers, which you may also want to specify as a fallback.

    ```css
    @counter-style --foo { system: symbolic; symbols: '|'; }
    div {
      --foo: lower-alpha;
      list-style-type: prefer(nonsense(), --foo); /* does --foo refer to lower-alpha or to the counter style? */
    }
    ```

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7881#issuecomment-1278213734 using your GitHub account


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

Received on Thursday, 13 October 2022 21:49:41 UTC