You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/02/15 06:15:32 UTC

[GitHub] [netbeans] matthiasblaesing commented on issue #3606: @bottom-center in html style not recognized

matthiasblaesing commented on issue #3606:
URL: https://github.com/apache/netbeans/issues/3606#issuecomment-1039897780


   I can confirm, that the parser bails out when parsing the construct (even when not embedded into HTML).
   
   13 is already in the process to being released and only open for release critical fixes, this is not a regression and CSS for print is not the main use-case. Sorry, but this feature won't be supported in 13. If anyone wants to look at this for 14, the right place to start is `ide/css.lib`. The grammar is in the `Css3.g` file in the `org.netbeans.modules.css.lib` package. After changing the grammar, the lexer and parser have to be regenerated (see the `build.xml` of that module for that).
   
   A trivial test is:
   
   ```java
       public void testX() {
           assertParses(" @page {\n" +
   "                @top-center {\n" +
   "                    content: element(top);\n" +
   "                }\n" +
   "                @bottom-center {\n" +
   "                    content: element(bottom);\n" +
   "                }\n" +
   "            }", true);
       }
   ```
   
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists