WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#9574 closed defect (bug) (worksforme)

wp-admin global.css errors

Reported by: ranchnachos Owned by:
Milestone: Priority: low
Severity: trivial Version: 2.8
Component: Administration Keywords: needs-patch
Focuses: Cc:

Description

Warning: Unknown pseudo-class or pseudo-element 'first'. Ruleset ignored due to bad selector.
Source File: /wp-admin/css/global.css?ver=20081210
Line: 351

Warning: Unknown pseudo-class or pseudo-element 'last'. Ruleset ignored due to bad selector.
Source File: /wp-admin/css/global.css?ver=20081210
Line: 358

Warning: Unknown pseudo-class or pseudo-element 'first'. Ruleset ignored due to bad selector.
Source File: /wp-admin/css/global.css?ver=20081210
Line: 365

Warning: Unknown pseudo-class or pseudo-element 'last'. Ruleset ignored due to bad selector.
Source File: /wp-admin/css/global.css?ver=20081210
Line: 372

the css rulesets are as follows:

.widefat thead tr th:first {

-moz-border-radius-topleft: 4px;
-webkit-border-top-left-radius: 4px;
-khtml-border-top-left-radius: 4px;
border-top-left-radius: 4px;

}

.widefat thead tr th:last {

-moz-border-radius-topright: 4px;
-webkit-border-top-right-radius: 4px;
-khtml-border-top-right-radius: 4px;
border-top-right-radius: 4px;

}

.widefat tfoot tr th:first {

-moz-border-radius-bottomleft: 4px;
-webkit-border-bottom-left-radius: 4px;
-khtml-border-bottom-left-radius: 4px;
border-bottom-left-radius: 4px;

}

.widefat tfoot tr th:last {

-moz-border-radius-bottomright: 4px;
-webkit-border-bottom-right-radius: 4px;
-khtml-border-bottom-right-radius: 4px;
border-bottom-right-radius: 4px;

}

Change History (6)

comment:1 @DD326 years ago

  • Keywords needs-patch added; wp-admin global.css removed
  • Milestone changed from Unassigned to 2.8
  • Version set to 2.8

I think the selectors intended for this were :first-child and :last-child

comment:2 follow-up: @DD326 years ago

:checkbox is also used in places, I dont think thats valid either, pretty sure you use something such as input[type="checkbox"]

comment:3 @DD326 years ago

:visible is also used.. I think thats another jQuery-only selector.

comment:4 in reply to: ↑ 2 @azaozz6 years ago

Replying to ranchnachos:

These should have been :first-child, :last-child but think they don't exist any more...

Replying to DD32:

:checkbox and :visible are invalid but couldn't find any in the css files.

comment:5 @DD326 years ago

  • Milestone 2.8 deleted
  • Resolution set to worksforme
  • Status changed from new to closed

You're right.. I cant find any reference to any of the selectors mentioned here under current trunk.

I think Opera's doing odd things, Or it might be jQuery doing something odd, The only place i can find the CSS warnings strings are in jQuery selectors.. which is odd, unless jQuery is attempting to use Opera's CSS-element-selector thinggi.

CSS - http://localhost/wordpress/wp-admin/css/colors-fresh.css?ver=20090415
Linked-in stylesheet
-moz-border-radius is an unknown property
Line 911:
   -moz-border-radius: 0 4px 0 0;
  --------------------^
CSS
HTML style attribute
Unknown pseudo class
Line 1:
  div.wrap h2:first
  -----------------^
CSS
HTML style attribute
Unknown pseudo class
Line 1:
  table:visible tbody .check-column :checkbox
  -------------^
CSS
HTML style attribute
Unknown pseudo class
Line 1:
  table:visible tbody .check-column :checkbox
  -------------------------------------------^
CSS
HTML style attribute
Unknown pseudo class
Line 1:
  thead :checkbox, tfoot :checkbox
  ---------------^
CSS
HTML style attribute
Unknown pseudo class
Line 1:
  thead :checkbox, tfoot :checkbox
  --------------------------------^
CSS
HTML style attribute
Unknown pseudo class
Line 1:
  tfoot :checkbox
  ---------------^

..It gives the proper file for -moz- but doesnt know where the others are coming from.. so probably not an issue at all.

..worksforme under current trunk

comment:6 @azaozz6 years ago

You're right, it seems Opera's console is showing the jQuery selectors as css...

Note: See TracTickets for help on using tickets.