Page MenuHomePhabricator

Warnings in Vector css
Closed, DeclinedPublic

Description

https://ru.wikipedia.org/w/load.php?debug=false&lang=ru&modules=skins.vector.styles&only=styles
here is the warning

  1. expected declaration but found "*" in .mw-body .mw-indicator{display:inline-block;zoom:1;*display:inline}
  2. expected "!important" but found "!ie" in many places

Event Timeline

matmarex subscribed.

This is intentional and not a bug. These (technically invalid) rules are used to work around browser bugs in IE 6 and IE 7. CSS parsing specification requires standards-compliant browsers to ignore them.

You can read an explanation for *display:inline e.g. here: http://stackoverflow.com/a/6545033

You can read an explanation for !ie e.g. here: https://css-tricks.com/snippets/css/browser-specific-hacks/

They're also both mentioned in https://en.wikipedia.org/wiki/CSS_filter ;)