Can't display variant.featured_media in a label html tag

diego10_01
Shopify Partner
10 1 2
I'm trying to display the image of a variant in a label tag, but it isn't showing. The bold text is the code that I'm trying to use:
 
<label for="option-{{ section.id }}-{{ forloop.parentloop.index0 }}-{{ forloop.index0 }}" class="ColorSwatch ColorSwatch--large {% if downcase_value == 'white' %}ColorSwatch--white{% endif %}" data-tooltip="{{ value | escape }}" style= "background-image: url('{{variant.featured_image}}')"></label>
 
Am I mixing css and liquid incorrectly? 
Replies 0 (0)