Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how does repeating the same name for toggle-root and toggle-group work? #25

Open
dbaron opened this issue Jul 19, 2022 · 1 comment
Open

Comments

@dbaron
Copy link
Collaborator

dbaron commented Jul 19, 2022

There are a number of aspects of the specification that are poorly defined if toggle-root or toggle-group use the same toggle name more than once in their list of toggles. I think these things either need to be defined more clearly, or forbidden.

For example:

  • which toggle specifier takes precedence when originally creating the toggle for the element?
  • which "override specifier" is used in the "change a toggle" algorithm?
  • when multiple toggle groups are listed, in which order are they processed? Is it possible for an element to create more than one active toggle group scope (one with narrow scope, one with wide scope containing only the elements not in narrow scope) and which order of specifying groups achieves this?
@tabatkins
Copy link
Owner

I definitely need to define a precedence, but don't have a strong preference either way. I think it's most consistent with other CSS to say that last wins, as this is how cascade works, and more directly analogous, this is how animations work. (Effectively; when multiple animations affect the same property the last one in 'animation-name' order wins, so animation-name: foo, bar, foo; is effectively identical to animation-name: bar, foo;. There might be two foo animations observable via the scripting API, I dunno.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants