Closed bob2517-whiteline closed 1 year ago
At least that's what it looks like without delving into the core. Might be something else wrong.
Red herring - this is actually working and the code looks fine for it. It must have been something I was doing on something else that was temporarily breaking it.
Currently, exit and exit-target are only set up when running loops inside events.
It should also be available for use in regular at-rule if statements in events that are not running inside loops. I just ran into this and couldn't work out why exit wasn't working, but these commands just haven't been implemented for non-loops yet.
The workaround, meanwhile, is to use the at-rule if statement as a wrapper to avoid using the exit or exit-target commands.