tabatkins / css-toggle

Proposal for a CSS Toggle spec
Creative Commons Zero v1.0 Universal
28 stars 1 forks source link

value matching should be described in terms of a toggle and a value #22

Closed dbaron closed 2 years ago

dbaron commented 2 years ago

The definition of value matching is currently described in terms of two values. However, it uses a list of states, so I think it should really be described in terms of one toggle (whose list of states and value are used) and one other value. I think this is currently somewhat implicit in both of the two references to the concept, but it would probably be better to be more explicit.

tabatkins commented 2 years ago

Ah yup, ended up doing this already. "Match values" now takes a toggle and a value, and optionally a list of states to override the toggle's states with.