title: CSS set background-image by data-image attr
body: <p>I have sort of elements with this pattern:</p>
  
  <pre><code>&lt;div data-image="{imageurl}" ...&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I want to set this elements <code>background-image</code> to <code>data-image</code>. I test this CSS code:</p>
  
  <pre><code>div[data-image] {
      border: 2px solid black;
      background-image: attr(data-image url);
  }
  </code></pre>
  
  <p>border show correctly but nothing happened for background
  How can do I fix this code only with css (not js or jq)?</p>