Open hober opened 3 years ago
Seems like something that would be useful in the content:
of headers/footers of print style sheets as well.
I can confirm it is very useful for print headers/footers - we use a non-standard env(location)
for this. To fully cover most headers/footers you'd also need another env()
to retrieve the current date.
Which of these would have the same value?
https://example.com/foo.bar?quuz=baz#lorem
http://example.com/foo.bar?quuz=baz#lorem
https://example.com/foo.bar?quuz=bak#lorem
https://example.com/foo.bar?quuz=baz
https://example.com/foo.bar#lorem
https://example.com/xyz/../foo.bar?quuz=baz#lorem
https://example.com//foo.bar?quuz=baz#lorem
https://example.com/foo.bar?quuz=baz#lorem
https://example.com/foo?quuz=baz#lorem
https://me@example.com/foo.bar?quuz=baz#lorem
https://me:***@example.com/foo.bar?quuz=baz#lorem
The function might want some options to control what shows up, but I assume that by default we'd use the scheme, domain, path, and query, ignoring the credentials and hash.
One of the use cases for #6544 is to provide a QR code that, when scanned, would be the URL of the current document. But apparently there's no way to get the URL of the current document from CSS.
From
#css
today: