You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2021/03/17 08:27:51 UTC

[GitHub] [royale-asjs] mjesteve opened a new issue #1093: CSS variables error

mjesteve opened a new issue #1093:
URL: https://github.com/apache/royale-asjs/issues/1093


   Hi, 
   I am trying to use "variables" in my default CSS but not succeeding, when compiling I get an error:
   Error: Unexpected exception 'java.util.NoSuchElementException' at org.antlr.runtime.misc.LookaheadStream.LB:159
   
   I have tried declaring them in ": root", ".global" and ".Application" but I always get the same error.
   For example:
   
     .global {     
       --pricolordark: #2196F3;
       --pricolorlight: #BBDEFA;
     }
     .jewel.topappbar .topBarAppHeader {
       background: val(--pricolordark);
     }
   
   I have found a thread from the old FlexJS forum where Harb and Greg comment the same error but with the "calc" function. It seems that the solution was to create an external css that would not go into the compilation process but this does not work here.
   any ideas? Do you know if they can be used?
   
   Thanks.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] mjesteve commented on issue #1093: CSS variables error

Posted by GitBox <gi...@apache.org>.
mjesteve commented on issue #1093:
URL: https://github.com/apache/royale-asjs/issues/1093#issuecomment-802766583


   It seems that the definitive solution is to include this option in the compiler ...
   I pass the issue to royale-compiler.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] mjesteve closed issue #1093: CSS variables error

Posted by GitBox <gi...@apache.org>.
mjesteve closed issue #1093:
URL: https://github.com/apache/royale-asjs/issues/1093


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org