Fixed bug: look for styles only in <defs> siblings