w3c / w3c/csswg-drafts

[css-values] Get the URL of the current document

Open
#6,546 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

css-values-5
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

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:

[18:33] <hober> Ooooh, very simple CSS question that I apparently don't         
                know the answer to: How can I, from CSS, get a URL to           
                the current document? Not the current stylesheet, the           
                current document. What to pass to url()?                        
[18:36] <cbiesinger> I didn't think that was possible                           
[18:39] <hober> oh, booo. filed                                                 
                https://github.com/w3c/csswg-drafts/issues/6546                 

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading this issue together with #6544 and the referenced CSS discussion. Determine whether CSS has a defined way to expose the current document URL to url(), and clarify the desired behavior for generating a QR code. Done requires a resolved specification direction, not just an implementation change.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.