carlosrovira commented on issue #644: How to use nth-child in Css file URL: https://github.com/apache/royale-asjs/issues/644#issuecomment-570173046 Hi Alex, I think this is not a problem for emulation components (I mean don't think that should be use as a way to solve something in some MX Comp). I think this is a problem of Royale it self, crossing any solution. People look on how to solve things vía CSS and solutions on internet uses this selector and others. We have partial support for selectors at this time. So this is a problem for end user doing CSS things at Application level. Pashmina or myself suffer this working with Royale at App level (I as well at framework level working with Jewel). A part from philosophical motivations about our CSS bugs and why we should prioritize or not I tried to solve it myself. I'm interested in fix this kind of bugs. I tried a couple of things that didn't worked. I tried to add to CSS.g and CSSTree.g: - CSS.g - Added to /* Lexer Rules */ this one: NTH_CHILD : 'nth-child' ; - Added to singleValue : | NTH_CHILD ARGUMENTS -> ^(NTH_CHILD ARGUMENTS) - CSSTree.g - In singleValue returns [CSSPropertyValue propertyValue], added: | ^(NTH_CHILD l=ARGUMENTS) { $propertyValue = new CSSFunctionCallPropertyValue($NTH_CHILD.text, $l.text, $start, tokenStream); } Other option I tried was to add: - CSS.g - Added to FUNCTIONS: | 'nth-child' - In JSCSSCompilationSession.java: - Added to `otherCSSFunctions`: "nth-child" any of this options results in another error, that seems better one, but still mostly impossible to debug for me. A side from solving 2N, I think as well we need to add in some place values like EVEN, ODD
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
