Re: [csswg-drafts] [css-values] String parsing function (replaces multi-value `attr()`) (#3702)

Other than implementing the attr()-with-type functionality, what other use-case would there be for this? We can't work around "browsers aren't implementing X" by creating a Y that's identical to X.

Notably, both of your example are just exactly attr()-with-type, except attr() is easier to read:

```css
.icon {
  content: attr(href image, url("fallback.png"));
  width: attr(data-width var(--icon-unit), 1em);
}
```

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3702#issuecomment-488118915 using your GitHub account

Received on Tuesday, 30 April 2019 21:17:17 UTC