3 ms·
What a shame that it doesn't seem to work recursively.
by EspressoGPT 3y ago
What a shame that it doesn't seem to work recursively.
- miohtama 3y agoWith Firefox and CSS background you can open a portal to another dimension
- newaccount74 3y agoThat's the same thing I immediately had to try as well :) The argument of -moz-element() can be a child of the styled element, but it can't be a parent (makes sense).
- jcarrano 3y agoYes it can- that's the first thing I tried- but it will not iterate forever. The trick is to use indirect recursion: <div id="a"></div> <div id="b"></div> #a, #b { height: 200px; width: 200px; border: dashed; } #a { background: -moz-element(#b) no-repeat; background-size: 80%; border-color: green; } #b { background: -moz-element(#a) no-repeat; background-size: 80%; border-color: purple; }
- sph 3y agoThis is utter madness. I love it.