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

Decompiling / recompiling with CSS containing pseudo elements like ::-webkit-scrollbar #41

Open
Scaalp-fr opened this issue Mar 22, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Scaalp-fr
Copy link

Describe the bug
When decompiling a file (using -d option) and it contains pseudo elements in CSS like ::-webkit-scrollbar, the resulting file cannot be recompiled as the pseudo element is taken as the name of a passage, if the pseudo-element is at the beginning of a line.

Expected behavior
I would expect that decompiling and then recompiling any file without modifying it should work.

Desktop:

  • Tweego Version: 2.1.1+81d1d71
  • OS & Version: linux/amd64

Additional context
This is probably not a severe problem. I don't even know if this should be handled while decompiling or while compiling. My way to work around the problem is to add a space character before ::-webkit-…, so that it is not taken as a new passage.

The - being illegal as the first character of a passage name, the compilation generates an error, which is good.

The easiest solution to handle the problem is maybe to describe it, with a workaround, somewhere in the documentation.

@Scaalp-fr Scaalp-fr added the bug Something isn't working label Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant