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 2019/01/25 20:31:20 UTC

[GitHub] peedeeboy opened a new pull request #1103: [NETBEANS-1458] Fix for CSS3 perspective property doesn't support pixels value

peedeeboy opened a new pull request #1103: [NETBEANS-1458] Fix for CSS3 perspective property doesn't support pixels value
URL: https://github.com/apache/incubator-netbeans/pull/1103
 
 
   Quick and easy.
   
   Netbeans CSS parser rule for the perspective property is configured as:
   
   none | <number>
   
   and for the perspective() function is configured as:
   
   perspective(<number>)
   
   This appears based on [2009-03-20  W3C 3D-Transformations module CSS spec.](https://www.w3.org/TR/2009/WD-css3-3d-transforms-20090320/#perspective-property) 
   
   In the [2013-11-26 W3C 3D-Transformations module CSS spec](https://www.w3.org/TR/2013/WD-css-transforms-1-20131126/#perspective-property) the perspective property rule was changed to:
   
   none | <length>
   
   and the perspective function changed to:
   
   perspective(<length>)
   
   Although Perspective didn't appear to make it past the draft stage of the 3D transform module spec, it is implemented in browsers as none | <length> and the [W3C CSS validator](https://jigsaw.w3.org/css-validator/) accepts perspective: <length> as valid CSS, so there is a strong argument NB should be updated to match.
   
   To test
   ---------
   
   1. Create a new PHP / HTML project with a CSS file
   2. Copy and paste the following CSS:
   
   .classA {
       perspective: 100;
       transform: perspective(100);
   }
   
   /* perspective: <length> */
   .classB {
       perspective: 100px;
       transform: perspective(100px);
   }
   
   * Before PR: NB will parse classA as valid CSS
   * After PR: NB will parse classB as valid CSS
   
   Check which one is actually valid (classB !) with W3C validator.
   
   HTH :)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services

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