0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

@scopeを触った感想。期待した「カプセル化」とは少し違った話。

0
Posted at

ついにFirefoxでも @scope がサポートされました。

これでフレームワークを使わなくても実装が楽になると思ったのですが、少し注意が必要です。
Vue.jsReact などのコンポーネントのように、「そのCSSが、そのコンポーネントだけに適用される」というわけではない からです。

個人的な所感としては、
「外からの影響を防ぐ」というよりは、「外に影響を与えないように書く」 ための機能、という印象でした。

ひとまず、勉強不足だという事は一番高い棚に上げる として、今のところはBEMから抜け出すのは、なかなか難しそうです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?