You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: understanding/21/reflow.html
+5-16Lines changed: 5 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -44,9 +44,7 @@ <h2>Basic text reflow</h2>
44
44
<p>Users who need to enlarge (zoom) text to read it benefit significantly when it reflows. Regardless of the size of the text, it continues to wrap within the visible viewport. A whole line of text is visible, making it easier for the eye to track from the end of one line to the start of the next. Users only need to scroll in the direction of reading to read additional lines of text.</p>
45
45
46
46
<figure>
47
-
<videocontrolsstyle="max-width:400px" title="A quotation beginning 'It was a dark and stormy night...' becomes larger on the screen, but before a word at the end of a line grows too long to fit in the width of the container, it wraps to the next line.">
{% include "youtube.html", width: "1038", height: "584", src: "https://www.youtube.com/embed/5oHRHMpezyc", title: "A quotation beginning 'It was a dark and stormy night...' becomes larger on the screen, but before a word at the end of a line grows too long to fit in the width of the container, it wraps to the next line." %}
50
48
<figcaptionstyle="max-width:400px">
51
49
<p>As text is resized, the words wrap so that the text lines do not exceed the viewport. (This quick demo to 200% is not intended to illustrate a test for conformance.)</p>
52
50
</figcaption>
@@ -55,10 +53,7 @@ <h2>Basic text reflow</h2>
55
53
<p>This criterion requires non-excepted sections of content that are written in horizontal languages reflow when narrowed to a width equivalent to 320 CSS pixels. Similarly, sections of content that are written in vertical languages (which are not as commonly used on the web and so will be used much less frequently in examples) need to be able to reflow when rendered at a height equivalent to 256 CSS pixels.</p>
56
54
57
55
<figure>
58
-
<videocontrolsstyle="max-width:400px" title="As a window displaying the quotation 'It was a dark and stormy night...' becomes thinner, a word at the end of a line wraps to the next line before it exceeds the width of the window.">
{% include "youtube.html", width: "1038", height: "584", src: "https://www.youtube.com/embed/N6kIiLHAH3k", title: "As a window displaying the quotation 'It was a dark and stormy night...' becomes thinner, a word at the end of a line wraps to the next line before it exceeds the width of the window." %}
62
57
<figcaptionstyle="max-width:400px">
63
58
<p>As the container for the text is reduced in width, the words wrap so that the text lines do not exceed the container width. (This quick demo is not intended to illustrate a test for conformance.)
64
59
</figcaption>
@@ -119,9 +114,7 @@ <h4>Carousels and carousel-like widgets</h4>
{% include "youtube.html", width: "597", height: "584", src: "https://www.youtube.com/embed/67fh_MUydhw", title: "Scrolling through a carousel reveals that its second panel is unable to fully fit within the viewport, requiring horizontal scrolling to read all of its content." %}
125
118
<figcaption>
126
119
<p>Fail: In this modified version of the previous carousel, the second panel's content <strong>does not</strong> fit within the 320 CSS pixel viewport.</p>
127
120
</figcaption>
@@ -133,11 +126,7 @@ <h4>Two column presentation of editing changes</h4>
133
126
<p>Being able to review differences in code, or text, side-by-side can be an instance where a scrolling two-column layout can benefit users.</p>
<!-- <img src="img/code-diff.gif" alt="code editor, showing code lines 20 to 24. The differences between the original code and the modified code are presented as two columns, with the original on the left and the modified on the right. This animated gif demonstrates horizontally scrolling each column of code into view - within a 320 pixel wide viewport - where vertical scrolling is used to show that the full text of each column can then be read by scrolling in a single direction."> -->
129
+
{% include "youtube.html", width: "659", height: "584", src: "https://www.youtube.com/embed/OpeC70mJBaM", title: "Code editor, showing a diff between line 23 in the original code and 22 in the modified code. The differences between the two are presented as two columns, with the original on the left and the modified on the right. Each column can be completely scrolled into view horizontally within a 320 pixel wide viewport. Text within each column can then be read by scrolling only in the vertical direction." %}
141
130
142
131
<figcaption>
143
132
<p>Pass: An interface to review code/document changes provides a two-column comparison between the original and modified content. Each column fits within a 320 CSS pixel wide container and a horizontal scrollbar can be used to position each column into the visible viewport.</p>
@@ -330,7 +319,7 @@ <h2>Examples</h2>
330
319
<ul>
331
320
<li>
332
321
<strong>One column view in responsive design</strong>
333
-
<p><videocontrols="controls"><sourcesrc="https://alastairc.uk/w3c/reflow-example-1-BBC.mp4" type="video/mp4" /><sourcesrc="https://alastairc.uk/w3c/reflow-example-1-BBC.ogv" type="video/ogg" />Animation of zooming in on a responsive site. The content reflows to fit the screen.</video></p>
322
+
<p>{% include "youtube.html", width: "978", height: "584", src: "https://www.youtube.com/embed/fWRL6NtHvZQ", title: "Animation of zooming in on a responsive site. The content reflows to fit the screen." %}</p>
334
323
<p>Note that as the zoom percentage increases, the navigation changes first to hide options behind a "More" dropdown menu. As zooming continues, most navigation options are eventually behind a "hamburger" menu button. All the information and functionality is still available from this web page. There is no horizontal scrolling.</p>
0 commit comments