+ <li><ahref="#mq-problems"><spanclass="secno">1.1.1</span> <spanclass="content">Limitations of Viewport-Based Media Queries ## {#mq-problems}</span></a>
+ </ul>
<li><ahref="#when-to-use"><spanclass="secno">1.2</span> <spanclass="content">When to use Container Queries</span></a>
<li><ahref="#usage"><spanclass="secno">1.3</span> <spanclass="content">Examples of Usage</span></a>
<p>Given a complex responsive layout, developers often require granular control over styling elements relative to the size of their parent container rather than the viewport size. Container queries allow an author to control styling based on the size of a containing element rather than the size of the user’s viewport.</p>
- <h3class="heading settled"data-level="1.1"id="mq-problems"><spanclass="secno">1.1. </span><spanclass="content">Limitations of Viewport-Based Media Queries</span><aclass="self-link"href="#mq-problems"></a></h3>
+ <h4class="heading settled"data-level="1.1.1"id="mq-problems"><spanclass="secno">1.1.1. </span><spanclass="content">Limitations of Viewport-Based Media Queries ## {#mq-problems}</span><aclass="self-link"href="#mq-problems"></a></h4>
+(This section is not normative.)
<p>Limiting breakpoints to viewport size fundamentally conflicts with the goal of creating modular page components, often requiring a number of redundant CSS rules and complex exception cases spanning multiple viewport-based breakpoints. This problem is compounded depending on how dramatically a module adapts at each of its breakpoints. Once viewport-based breakpoints have been tuned to suit the limited and predictable number of contexts a module might occupy, adjustments to styling elsewhere on the page (layout, width, padding/margins, etc.) may cause a need to revisit a module’s viewport-based breakpoints completely, as those styles are disconnected from the context of the module itself.</p>
<h3class="heading settled"data-level="1.3"id="usage"><spanclass="secno">1.3. </span><spanclass="content">Examples of Usage</span><aclass="self-link"href="#usage"></a></h3>
-
+
+ <p>[[Inside a CSS stylesheet, one can declare that sections apply to certain media types:]]</p>
0 comments on commit
29f94c5