fixed syntax error in code example
fixed a typo in a code example for the toggle command
This is not a typo, see this test.
You toggle X on Y. *display is not owned by the next <div/>, it's a class that you toggle (add/remove) on it.
Hope that made sense 😄
This is not a typo, see this test. You toggle X on Y.
*displayis not owned bythe next <div/>, it's a class that you toggle (add/remove) on it.Hope that made sense 😄
I might be at fault here, but I couldn't make the example work as it is in the docs. I had to change "on" to "of" to make it work for *display.
If you look at line 161 of the test it uses "of" instead of "on".
Oh interesting!
@zyriab The docs specifically mention using of for toggling *opacity
toggle [the | my] ('*opacity' | '*visibility' | '*display')
[of <expression>]
[(for <time expression>) |
(until <event name> [from <expression>]]`
yup but the code example at the bottom of the page uses on.