Preserve tags in custom CSS definitions (see #6667)