Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS value autolinking syntax (''foo'') no longer works in <pre class="prod"> blocks #3011

Open
tidoust opened this issue Jan 21, 2025 · 2 comments

Comments

@tidoust
Copy link
Contributor

tidoust commented Jan 21, 2025

Version 5.0.0 of Bikeshed seems to no longer like the CSS value autolinking syntax (''foo'') in regular production rules. It keeps the wrapping '' and no longer adds links.

Some examples:

I know there's a note in the doc that says "Currently the CSS value autolinking syntax (''foo'') does not work" but my understanding is that it is scoped to the use of <l> tags. At least, the syntax used to work in <pre class="prod"> blocks ;)

@tidoust
Copy link
Contributor Author

tidoust commented Jan 21, 2025

Hmm, perhaps that's intended in the sense that autolink shorthands aren't supposed to work in elements like <pre>. But then <<foo>> seems to work and I don't know how to create the value links (other than by using <a>) to fix the specs since <l>''foo''</l> does not work either.

@tabatkins
Copy link
Collaborator

Yes, had to make a decision about this. Really, using ''foo'' was always wrong, due to the formatting - it displayed with quotes around it, which means something different in the css value definition syntax. Ultimately decided it was best to make a clean break and just stop supporting them by default. <<foo>> still works because it's far more commonly used and useful, and formats properly by default anyway.

since <l>''foo''</l> does not work either.

ah, that's a bug

tidoust added a commit to w3c/webref that referenced this issue Jan 23, 2025
Pending resolution of speced/bikeshed#3011 or updates
made to underlying specs, this adds a temporary mechanism to drop offending
wrapping single quotes in the definitions of properties and values during data
curation, so that we may publish a new version of `@webref/css` while the
problem gets fixed.
tidoust added a commit to w3c/webref that referenced this issue Jan 23, 2025
Pending resolution of speced/bikeshed#3011 or updates
made to underlying specs, this adds a temporary mechanism to drop offending
wrapping single quotes in the definitions of properties and values during data
curation, so that we may publish a new version of `@webref/css` while the
problem gets fixed.
tidoust added a commit to w3c/webref that referenced this issue Jan 23, 2025
Pending resolution of speced/bikeshed#3011 or updates
made to underlying specs, this adds a temporary mechanism to drop offending
wrapping single quotes in the definitions of properties and values during data
curation, so that we may publish a new version of `@webref/css` while the
problem gets fixed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants