<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Encapsulation on たかおの解説</title><link>https://takao.blog/ja/tags/encapsulation/</link><description>Recent content in Encapsulation on たかおの解説</description><generator>Hugo -- gohugo.io</generator><language>ja</language><copyright>たかおの解説</copyright><lastBuildDate>Sat, 13 Jun 2026 23:11:50 +0900</lastBuildDate><atom:link href="https://takao.blog/ja/tags/encapsulation/index.xml" rel="self" type="application/rss+xml"/><item><title>CSSスコープ付きスタイル：@scopeとカプセル化戦略</title><link>https://takao.blog/ja/web/css-scoped-styles/</link><pubDate>Sun, 15 Dec 2024 00:00:00 +0900</pubDate><guid>https://takao.blog/ja/web/css-scoped-styles/</guid><description>&lt;img src="https://takao.blog/img/thumnail.webp" alt="Featured image of post CSSスコープ付きスタイル：@scopeとカプセル化戦略" /&gt;&lt;p&gt;CSSのスタイルはデフォルトでグローバルにカスケードするため、あるコンポーネントのセレクタが意図せず別のコンポーネントに影響を与えることがあります。開発者は長年にわたり、命名規則、ビルド時ツール、DOM分離などでこの問題に対処してきました。そして今、CSS &lt;code&gt;@scope&lt;/code&gt;アットルールが登場し、近接性ベースのカスケード制御という新しい選択肢を提供しています。&lt;/p&gt;</description></item></channel></rss>