Re: [csswg-drafts] [css-values][css-backgrounds][css-animations][css-transitions][fill-stroke] How to handle linked list-valued properties? (#7164)

What should be the declared/computed value of a coordinating list shorthand property when the base property has more values than other properties in the group?

In the example below, if an implementation outputs `foo 1s, bar` and `foo 1s, 1s`, is it implicitly repeating values? Is this non-conforming?

```js
el.style.animation = '1s'
el.style.animationName = 'foo, bar'
el.style.animation; // ?

el.style.animation = 'foo'
el.style.animationDuration = '1s, 1s'
el.style.animation; // ?
```

Firefox returns empty string when some property in the group has a different value length than the base property. (Chrome still truncates/repeats values.)

This seems easier because all coordinating list shorthand properties may not be able to omit any property in the group.

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


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

Received on Thursday, 6 February 2025 08:23:52 UTC