[ticket/11768] Reorganized style's inheritance resolution

PHPBB3-11768