Fix stylesheet recursion
This was doing recursion and a for-loop for the same data structure.
Fixes #504 (closed)
(cherry-picked from master f1138143dff8)
This was doing recursion and a for-loop for the same data structure.
Fixes #504 (closed)
(cherry-picked from master f1138143dff8)