Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit 7c5de85

Browse files
committed
Removed proposal-esque text.
1 parent b0849cc commit 7c5de85

File tree

2 files changed

+111
-81
lines changed

2 files changed

+111
-81
lines changed

index.bs

+31-16
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Shortname: eq-usecases
77
Level: 1
88
Editor: Mat Marquis, RICG, http://responsiveimages.org
99
Editor: Scott Jehl, Filament Group, http://filamentgroup.com/
10-
Abstract: This document captures the use cases and requirements for standardizing a solution for element queries.
11-
Abstract: Found a bug, typo, or issue? Please file a <a href="https://github.com/ResponsiveImagesCG/eq-usecases/issues">bug on GitHub</a>!
10+
Abstract: This document captures the use cases and requirements for standardizing a solution for element queries. The <a href="#usecases">use cases</a> and <a href="#dfn-requirements">requirements</a> were gathered with consultation with the <a href="http://w3c.org/">HTML Working Group</a> and <a href="http://whatwg.org">WHATWG</a> participants, <a href="http://www.w3.org/community/respimg/"><abbr title="Responsive Images Community Group">RICG</abbr></a> group members, and the general public.
11+
Abstract: Found a bug or typo? Please file an <a href="https://github.com/ResponsiveImagesCG/eq-usecases/issues">issue on GitHub</a>!
1212
!Version History: <a href="https://github.com/ResponsiveImagesCG/eq-usecases/commits/gh-pages">Commit History</a>
1313
!Participate: <a href="irc://irc.w3.org:6665/#respimg">IRC: #respimg on W3C's IRC</a>
1414
!Participate: <a href="https://github.com/ResponsiveImagesCG/eq-usecases">GitHub</a>
@@ -21,17 +21,27 @@ Abstract: Found a bug, typo, or issue? Please file a <a href="https://github.com
2121
img { max-width: 100%; }
2222
</style>
2323

24+
<div boilerplate="status">
25+
This is an unofficial draft. It is provided for discussion only and may change at any moment. Its publication here does not imply endorsement of its contents by W3C. Don’t cite this document other than as work in progress.
26+
27+
If you wish to make comments regarding this document, please send them to <a href="mailto:[email protected]">[email protected]</a> (<a href="mailto:[email protected]?subject=subscribe">subscribe</a>, <a href="http://lists.w3.org/Archives/Public/public-respimg/">archives</a>). All comments are welcome.
28+
</div>
29+
2430
<h2 id="intro">Introduction</h2>
2531

26-
Given a complex responsive layout, developers often require a more granular level of control over how the contents of an individual module will respond relative to the size of their parent container rather than the viewport size. This is prohibitive to the goal of creating modular, independent components, often requiring a number of redundant CSS, complex exception cases, and workarounds, and the problem compounds itself depending on how dramatically a module adapts at each of its breakpoints.
32+
Given a complex responsive layout, developers often require a more granular level of control over how the contents of an individual module will respond relative to the size of their containing context rather than the viewport size. Styling based on viewport size alone is prohibitive to the goal of creating modular, independent components, often requiring redundant CSS, complex exception cases, and workarounds. This problem compounds itself depending on how dramatically a module adapts at each of its breakpoints.
33+
34+
For the purposes of this document, an <dfn id="dfn-element-query">element query</dfn> refers not to a specific syntax or proposed method of addressing the use cases that follow, but a method of controlling styling based on the size of a containing element.
2735

2836
This document aims to present some of the use cases that an “element query” syntax would solve, in allowing authors to define layouts within an individual module on the basis of the size of the module itself rather than the viewport. The goal is to demonstrate a need for a method of allowing content to respond to its container’s dimensions (as opposed to the overall viewport size), to facilitate the construction of layouts comprised of many modular, independent HTML components with a minimum of duplicated CSS and overrides specific to the modules’ parent containers.
2937

30-
<h2 id="status">Status of This Document</h2>
38+
In formulating the requirements, this document tries to be neutral—it is not predicated on any solution. The document only tries to describe the use cases and what the RICG understands, from practice, would be needed to address the use cases in the form of requirements. The RICG expects that a technical specification can be created to formally address each or all of the requirements (i.e., the <dfn id="dfn-solution">solution</dfn>).
3139

32-
This document reflects the efforts of members from the <a href="http://www.w3.org/community/respimg/">Responsive Images Community Group</a> (RICG), and with ongoing feedback from the designer/developer community via blog posts, informal polls, and other social media sources. The RICG's goal for this document is to make sure that author requirements for element queries have been documented.
40+
<h2 id="solution">Proposed Solutions</h2>
3341

34-
<h2 id="usecase">Use Case</h2>
42+
<h2 id="usecases">Use Cases</h2>
43+
44+
The following <dfn id="dfn-usecases">use cases</dfn> represent common usage scenarios:
3545

3646
<a href="#fig-1">Figure 1</a> is an example of a relatively simple and fully self-contained module’s layout, using only a single <code>min-width</code> <a href="http://dev.w3.org/csswg/mediaqueries-4/#media-query">media query</a> to reflow content.
3747

@@ -68,19 +78,24 @@ The module in this new sidebar context will never need to reflow to the wider la
6878
<figcaption>A stylesheet heatmap showing added redundancy and rewriting of existing styles required to accommodate the layout variation in <a href="#fig-4">fig. 4</a> </figcaption>
6979
</figure>
7080

71-
What this document proposes is the addition of an “element query” syntax, allowing breakpoints to be applied based on the width of a parent container. For the purposes of this example, we would then be able to scope out modules’ layouts to the size of the module itself.
81+
<h2 id="requirements">Requirements</h2>
7282

73-
<figure id="fig-7">
74-
<img src="images/eq-all-layouts-fixed.gif">
75-
<figcaption>A wireframe illustrating how a single module addresses all potential layout contexts <a href="#fig-2">fig. 2</a> and <a href="#fig-4">fig. 4</a>, given a native “element queries” solution</figcaption>
76-
</figure>
83+
<p>The use cases give rise to the following <dfn id="dfn-requirements">requirements</dfn>:</p>
7784

78-
In doing so, we’re able to assemble a layout without parent-specific media queries, styles, or overrides.
85+
<ol>
86+
<li>
87+
</li>
88+
</ol>
7989

80-
<figure id="fig-6">
81-
<img src="images/eq-heatmap3.gif">
82-
<figcaption>A stylesheet heatmap showing a lack of redundancy when accomodating the layout variations in <a href="#fig-2">fig. 2</a> and <a href="#fig-4">fig. 4</a>, given a native “element queries” solution</figcaption>
83-
</figure>
90+
<h2 id="issues">Open issues</h2>
91+
92+
We are <a href="https://github.com/ResponsiveImagesCG/ri-usecases/issues">tracking open issues</a> on Github. Please help us close them!
93+
94+
<h2 id="changes">Change history</h2>
95+
96+
A <a href="https://github.com/ResponsiveImagesCG/eq-usecases/commits/gh-pages">complete history of changes</a> is available on Github.
97+
98+
You can also see all <a href="https://github.com/ResponsiveImagesCG/ri-usecases/issues?q=is%3Aclosed">closed issues</a> relating to this document.
8499

85100
<h2 id="acks">Acknowledgements</h2>
86101

0 commit comments

Comments
 (0)