Skip to content

Добавили правило font-weight-notation

Compare
Choose a tag to compare
@nikolai-shabalin nikolai-shabalin released this 06 Dec 08:20
· 74 commits to master since this release

1.1.4

Добавили правило font-weight-notation:

{
  'font-weight-notation': [
    "numeric",
    {
      'ignore': [
        "relative"
      ]
    }
  ]
}

Теперь любое использование font-weight должно быть числовым

a { font-weight: 700; }

a { font: italic 400 20px; }

@font-face { font-weight: 400 700; }

Также разрешены значения относительные значения bolder и lighter. Спецификация.