Re: [csswg-drafts] [css-values] attr()'s url type seems wrong (#5079)

I'm not sure i understand the syntax that causes problems here. Can someone provide a simple test case?

Certainly, a::after { content: " (" attr(href) ")";  } seems to work for multilingual URLs, in all 3 major browser engines.  See [a test for that](https://w3c.github.io/i18n-tests/exploratory/index.html?text=%3Cp%3E%3Ca%20href%3D%22https%3A%2F%2Fcontrol.uk%22%3EControl%20site%3C%2Fa%3E%3C%2Fp%3E%0A%3Cp%3E%3Ca%20href%3D%22https%3A%2F%2F%E4%BE%8B%E5%AD%90.%E5%85%AC%E5%8F%B8%22%3EVisit%20our%20Chinese%20site%3C%2Fa%3E%3C%2Fp%3E%0A%3Cp%3E%3Ca%20href%3D%22https%3A%2F%2F%D0%BF%D1%80%D0%B8%D0%BA%D0%BB%D0%B0%D0%B4.%D1%83%D0%BA%D1%80%22%3EVisit%20our%20Ukrainian%20site%3C%2Fa%3E%3C%2Fp%3E&css=a%3A%3Aafter%20%7B%0A%20%20content%3A%20%22%20(%22%20attr(href)%20%22)%22%3B%0A%7D&fontSize=36&width=500&height=500&a=attr(href)%20in%20a%20content%20value%20will%20render%20multilingual%20URLs%20without%20punycode.&i=Each%20line%20should%20show%20https%3A%2F%2F%E4%BE%8B%E5%AD%90.%E5%85%AC%E5%8F%B8%20or%20https%3A%2F%2F%D0%BF%D1%80%D0%B8%D0%BA%D0%BB%D0%B0%D0%B4.%D1%83%D0%BA%D1%80%20in%20parentheses%20at%20the%20end%20of%20the%20line.%20If%20a%20URL%20is%20not%20shown%20for%20the%20control%20line%2C%20skip%20this%20test.).

cc @xfq 

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 25 September 2025 10:15:15 UTC