Re: [csswg-drafts] [css-values-4] Switch advanced attr() to being var()-like (#4482)

> I don't know if we have valid use cases for variable references inside `attr()`-referenced attributes, or vice versa. But if we model attributes as another kind of variable, then we should be able to use the same iacvt processing when encountering cycles.

This makes me wonder whether there would be extra complexity to handle cycle involving both `attr` and `var`. Maybe not a difficulty spec-wise, but the implementation may need some refactor.

> Being able to turn any attribute into an image load URL would indeed bypass the URL attribute sanitizer in Gecko.

How does the sanitizer work against CSS variable? Or it doesn't matter?

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

Received on Tuesday, 19 November 2019 22:21:07 UTC