h1, h2 :: before{} という書き方は正しいですか?

その書き方では正しく動作しません。
2022年1月3日
ユーザー

説明では、

h1::before,
h2::before {
  content: '- ';
}

とあり、

h1, h2 :: before {
  content:'- '
} 

ではできませんでしたが、疑似クラスは

h1::before,
h2::before{ ... }

としないとダメなのでしょうか?

この回答を見るにはプレミアムプランへの登録が必要です

プレミアムプランとは?