custom-property-pattern
為自訂屬性指定樣式。
a { --foo-: 1px; }
/** ↑
* The pattern of this */
message
次要選項 可以接受此規則的引數。
選項
regex|字串
字串會轉換成 RegExp,如下所示 new RegExp(yourString)
— 因此請務必正確跳脫。
給定字串
"foo-.+"
以下樣式會被視為問題
:root { --boo-bar: 0; }
以下樣式不會被視為問題
:root { --foo-bar: 0; }