Skip to content

Commit 9fbbdb3

Browse files
kfranqueirombgower
andauthored
Migrate Reflow videos out of repository (#4308)
Resolves #768 Alternative to #4304 that instead migrates videos to W3C's Cloudflare Stream account. The videos have been marked as downloadable, so they can be embedded identically to how they were before. In addition to removing the mp4s from the repo, I've cleaned up a commented-out gif, and made sure each video has alternative text. (Note that although the videos are removed, they are still in git history and thus still consume space; the intent is for this to be the pattern going forward and to avoid adding more mp4 files to the repository.) [Preview](https://deploy-preview-4308--wcag2.netlify.app/understanding/reflow) Co-authored-by: Mike Gower <[email protected]>
1 parent 2c072fd commit 9fbbdb3

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

Diff for: understanding/21/img/carousel-fail.mp4

-9.02 MB
Binary file not shown.

Diff for: understanding/21/img/code-diff.gif

-4.21 MB
Binary file not shown.

Diff for: understanding/21/img/code-view-columns.mp4

-11.4 MB
Binary file not shown.

Diff for: understanding/21/img/reflow-container-resize.mp4

-2.51 MB
Binary file not shown.

Diff for: understanding/21/img/reflow-text-resize.mp4

-1.98 MB
Binary file not shown.

Diff for: understanding/21/reflow.html

+9-9
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ <h2>Basic text reflow</h2>
4545

4646
<figure>
4747
<video controls style="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.">
48-
<source src="img/reflow-text-resize.mp4" type="video/mp4">
48+
<source src="https://customer-0kix77mxh2zzzae0.cloudflarestream.com/1e38dab03eb51a7a3462b31d334629df/downloads/default.mp4" type="video/mp4">
4949
</video>
5050
<figcaption style="max-width:400px">
5151
<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>
@@ -56,7 +56,7 @@ <h2>Basic text reflow</h2>
5656

5757
<figure>
5858
<video controls style="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.">
59-
<source src="img/reflow-container-resize.mp4" type="video/mp4">
59+
<source src="https://customer-0kix77mxh2zzzae0.cloudflarestream.com/77479b1719e53b20b4017c70ba76340c/downloads/default.mp4" type="video/mp4">
6060
</video>
6161

6262
<figcaption style="max-width:400px">
@@ -119,8 +119,8 @@ <h4>Carousels and carousel-like widgets</h4>
119119
</figure>
120120

121121
<figure>
122-
<video controls style="max-width:400px">
123-
<source src="img/carousel-fail.mp4" type="video/mp4">
122+
<video controls style="max-width:400px" 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.">
123+
<source src="https://customer-0kix77mxh2zzzae0.cloudflarestream.com/4c6764035775985f80a7911ea638b3eb/downloads/default.mp4" type="video/mp4">
124124
</video>
125125
<figcaption>
126126
<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>
@@ -133,12 +133,10 @@ <h4>Two column presentation of editing changes</h4>
133133
<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>
134134

135135
<figure>
136-
<video controls style="max-width:400px">
137-
<source src="img/code-view-columns.mp4" type="video/mp4">
136+
<video controls style="max-width:400px" 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.">
137+
<source src="https://customer-0kix77mxh2zzzae0.cloudflarestream.com/cf091ec792c8ba93650ec3311d8058b0/downloads/default.mp4" type="video/mp4">
138138
</video>
139139

140-
<!-- <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."> -->
141-
142140
<figcaption>
143141
<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>
144142

@@ -330,7 +328,9 @@ <h2>Examples</h2>
330328
<ul>
331329
<li>
332330
<strong>One column view in responsive design</strong>
333-
<p><video controls="controls"><source src="https://alastairc.uk/w3c/reflow-example-1-BBC.mp4" type="video/mp4" /><source src="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>
331+
<p><video controls="controls" title="Animation of zooming in on a responsive site. The content reflows to fit the screen.">
332+
<source src="https://customer-0kix77mxh2zzzae0.cloudflarestream.com/a0b687e5885590640e8735d83676842d/downloads/default.mp4" type="video/mp4" />
333+
</video></p>
334334
<p>Note that as the zoom percentage increases, the navigation changes first to hide options behind a &quot;More&quot; dropdown menu. As zooming continues, most navigation options are eventually behind a &quot;hamburger&quot; menu button. All the information and functionality is still available from this web page. There is no horizontal scrolling.</p>
335335
</li>
336336
<li>

0 commit comments

Comments
 (0)