[wp-trac] [WordPress Trac] #52176: Twenty Twenty-One: style.css has errors in PhpStorm IDE

WordPress Trac noreply at wordpress.org
Sat Dec 26 06:21:58 UTC 2020


#52176: Twenty Twenty-One: style.css has errors in PhpStorm IDE
-----------------------------------+-----------------------------
 Reporter:  mukesh27               |      Owner:  (none)
     Type:  defect (bug)           |     Status:  new
 Priority:  normal                 |  Milestone:  Awaiting Review
Component:  Bundled Theme          |    Version:
 Severity:  normal                 |   Keywords:  needs-patch
  Focuses:  css, coding-standards  |
-----------------------------------+-----------------------------
 Hi, just upgraded to WP 5.6 with TwentyTwentyOne theme. The application
 itself seems to work fine. But when I open it with my PhpStorm IDE, the
 style.css file shows many errors. Most are related to many -- variables
 are not defined. But below caught my attention the most:
 {{{
 @media only screen and (min-width: 482px) {

         .primary-navigation > div > .menu-wrapper li {
                 margin: 0;
                 width: inherit;
         }

         .primary-navigation > div > .menu-wrapper li:last-child() {
                 margin-right: 0;
         }
 }
 }}}
 The IDE highlight last-child() as error. Why do we need a parenthesis
 here?


 Original support ticket - https://wordpress.org/support/topic
 /twentytwentyone-theme-style-css-has-errors/

 Props to @activecoder

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52176>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list