The instruments used to pass this rule (if any), must meet all level A Success Criteria in order to fully satisfy Success Criterion 2.4.1 Bypass Block. These extra requirements are left out of this rule, and should be tested separately.
Assumptions
This rule assumes that the mean to bypass blocks is included in the content of the HTML web page. For example, server-side scripting, or a global "settings" page, can provide a functionality similar to Block of repeated content is collapsible by serving a modified version of the page; in which case this rule would fail but Success Criterion 2.4.1 Bypass blocks could nonetheless be satisfied.
This rule assumes that completely removing blocks of repeated content is sufficient to pass Success Criterion 2.4.1 Bypass blocks. However, providing an instrument to remove them without providing one to show them again is likely going to create other unrelated issues.
This rule assumes that repeated content that is at the end of the page (and not followed any non-repeated content) can be bypassed by means provided by user agents (such as pressing the "End" key to scroll to the bottom of the page). Therefore, they do not need any other way of being bypassed and are ignored by this rule. If there isn't a way to bypass them, this rule may pass while Success Criterion 2.4.1 Bypass blocks is not satisfied.
This rule assumes that the language of each test target can be correctly determined (either programmatically or by analyzing the content), and sufficiently understood.
Accessibility Support
Techniques and solutions that identify blocks of content are sufficient ways of passing Success Criterion 2.4.1 Bypass blocks. They are, however, only beneficial for users who have ways of navigating with this information. For example, adding headings to a document will only help users who can "jump" from heading to heading (such a possibility can be provided by browsers, browsers plugins, screen readers, or other assistive technologies). Techniques and solutions based on links will benefit all users (for example, sighted keyboard users with no other assistive technology) and are therefore recommended.
If the instruments used to pass some of the atomic rules are not keyboard accessible, or not included in the accessibility tree, passing this rule can still leave many users without a way to bypass blocks of repeated content. WCAG's definition of mechanism has a note saying that it "needs to meet all success criteria for the conformance level claimed". This includes Success Criterion 2.1.1 Keyboard and Success Criterion 4.1.2 Name, Role, Value which are both at level A.
This rule only checks if there is a way to bypass at least one section of repeated content. On pages with several interleaved repeated and non-repeated content, this is not sufficient to satisfy Success Criterion 2.4.1 Bypass blocks. Checking for more sections to bypass was considered but rejected due to both the added complexity it would create, and the risk of failing on pages that might be correct.
To avoid using landmarks for the non-repeated content, which would satisfy Success Criterion 2.4.1 Bypass Block, this rule uses <div id="main"> in its test cases to indicate where non-repeating content exists. It is recommended to use the main landmark instead. The aside and nav elements are each a block of repeated content due to the link inside the nav element to a page with similar blocks of content.
<html><head><scriptsrc="/test-assets/bypass-blocks-cf77f2/toggle-display.js"></script><title>The Three Kingdoms, Chapter 1</title></head><body><ahref="#"onclick="toggleHidden('chapters-navigation')">Toggle table of content</a><navid="chapters-navigation"><ol><li><a>Chapter 1</a></li><li><ahref="/test-assets/bypass-blocks-cf77f2/chapter2.html">Chapter 2</a></li></ol></nav><divid="main"><p>
Unity succeeds division and division follows unity. One is bound to be replaced by the other after a long span
of time.
</p></div></body></html>
<html><head><title>The Three Kingdoms, Chapter 1</title></head><body><navid="chapters-navigation"><ol><li><a>Chapter 1</a></li><li><ahref="/test-assets/bypass-blocks-cf77f2/chapter2.html">Chapter 2</a></li></ol></nav><divid="main"><h1>Three Heroes Swear Brotherhood at a Feast in the Peach Garden</h1><p>
Unity succeeds division and division follows unity. One is bound to be replaced by the other after a long span
of time.
</p></div></body></html>
<html><head><title>The Three Kingdoms, Chapter 1</title></head><body><navid="chapters-navigation"><ol><li><a>Chapter 1</a></li><li><ahref="/test-assets/bypass-blocks-cf77f2/chapter2.html">Chapter 2</a></li></ol></nav><main><p>
Unity succeeds division and division follows unity. One is bound to be replaced by the other after a long span
of time.
</p></main></body></html>
<htmllang="en"><head><title>The Three Kingdoms, Chapter 1</title></head><body><ahref="#main">Skip to main content</a><ahref="/test-assets/bypass-blocks-cf77f2/chapter2.html">Read Chapter 2</a><asideid="about-book"><p>The Romance of the Three Kingdoms is a 14th century historical novel.</p></aside><divid="main"><p>
Unity succeeds division and division follows unity. One is bound to be replaced by the other after a long span
of time.
</p></div></body></html>
<htmllang="en"><head><title>The Three Kingdoms, Chapter 1</title></head><body><navid="local-navigation"><ahref="#bio-translator">Skip to translator's biography</a><ahref="#about-book">Skip to information about the book</a><ahref="#main">Skip to main content</a></nav><asideid="bio-translator"><p>Yu Sumei is a professor of English at East China Normal University.</p></aside><asideid="about-book"><p>The Romance of the Three Kingdoms is a 14th century historical novel.</p></aside><divid="main"><p>
Unity succeeds division and division follows unity. One is bound to be replaced by the other after a long span
of time.
</p><ahref="/test-assets/bypass-blocks-cf77f2/chapter2.html">Read Chapter 2</a></div></body></html>
<htmllang="en"><head><title>The Three Kingdoms, Chapter 1</title></head><body><asideid="bio-translator"><ahref="#about-book">Skip to information about the book</a><p>Yu Sumei is a professor of English at East China Normal University.</p></aside><asideid="about-book"><ahref="#main">Skip to main content</a><p>The Romance of the Three Kingdoms is a 14th century historical novel.</p></aside><divid="main"><p>
Unity succeeds division and division follows unity. One is bound to be replaced by the other after a long span
of time.
</p><ahref="/test-assets/bypass-blocks-cf77f2/chapter2.html">Read Chapter 2</a></div></body></html>
<htmllang="en"><head><title>The Three Kingdoms, Chapter 1</title></head><body><divid="main"><p>
Unity succeeds division and division follows unity. One is bound to be replaced by the other after a long span
of time.
</p></div><ahref="/test-assets/bypass-blocks-cf77f2/chapter2.html">Read Chapter 2</a><asideid="about-book">
The Romance of the Three Kingdoms is a 14th century historical novel.
</aside></body></html>
<htmllang="en"><head><title>The Three Kingdoms, Chapter 1</title></head><body><buttononclick="location.assign('#main')">Skip to main content</button><asideid="about-book"><p>The Romance of the Three Kingdoms is a 14th century historical novel.</p></aside><divid="main"><p>
Unity succeeds division and division follows unity. One is bound to be replaced by the other after a long span
of time.
</p><ahref="/test-assets/bypass-blocks-cf77f2/chapter2.html">Read Chapter 2</a></div></body></html>
<html><head><title>Comparing translations of the Romance of the Three Kingdoms, Chapter one</title></head><body><navid="local-navigation"><ahref="#local-navigation">Skip to local navigation</a><ahref="#brewitt-taylor">Skip to Brewitt-Taylor's translation</a><ahref="#roberts">Skip to Roberts' translation</a><ahref="#yu">Skip to Yu's translation</a><ahref="#about-book">Skip to information about the book</a></nav><asideid="about-book"><p>The Romance of the Three Kingdoms is a 14th century historical novel.</p></aside><divid="main"><pid="brewitt-taylor">
Three Heroes Swear Brotherhood in the Peach Garden (Translation by Charles Henry Brewitt-Taylor)
</p><p>
The world under heaven, after a long period of division, tends to unite; after a long period of union, tends to
divide.
</p><pid="roberts">Three Bold Spirits Plight Mutual Faith in the Peach Garden (Translation by Moss Roberts)</p><p>The empire, long divided, must unite; long united, must divide. Thus it has ever been.</p><pid="yu">Three Heroes Swear Brotherhood at a Feast in the Peach Garden (Translation by Yu Sumei)</p><p>
Unity succeeds division and division follows unity. One is bound to be replaced by the other after a long span
of time.
</p><ahref="/test-assets/bypass-blocks-cf77f2/chapter2.html">Read Chapter 2</a></div></body></html>
<htmllang="en"><head><title>The Three Kingdoms, Chapter 1</title></head><body><navid="local-navigation"><ahref="#local-navigation">Skip to local navigation</a><ahref="#main">Skip to main content</a></nav><asideid="about-book"><p>The Romance of the Three Kingdoms is a 14th century historical novel.</p></aside><divid="main"><p>
Unity succeeds division and division follows unity. One is bound to be replaced by the other after a long span
of time.
</p><ahref="/test-assets/bypass-blocks-cf77f2/chapter2.html">Read Chapter 2</a></div></body></html>
<html><head><scriptsrc="/test-assets/bypass-blocks-cf77f2/toggle-display.js"></script><title>The Three Kingdoms, Chapter 1</title></head><body><buttononclick="hide('chapters-navigation')">Hide table of content</button><navid="chapters-navigation"><ol><li><a>Chapter 1</a></li><li><ahref="/test-assets/bypass-blocks-cf77f2/chapter2.html">Chapter 2</a></li></ol></nav><divid="main"><p>
Unity succeeds division and division follows unity. One is bound to be replaced by the other after a long span
of time.
</p></div></body></html>
<htmllang="en"><head><title>The Three Kingdoms, Chapter 1</title></head><body><ahref="https://act-rules.github.io/">ACT rules</a><ahref="#main">Skip to main content</a><ahref="/test-assets/bypass-blocks-cf77f2/chapter2.html">Read Chapter 2</a><asideid="about-book"><p>The Romance of the Three Kingdoms is a 14th century historical novel.</p></aside><divid="main"><p>
Unity succeeds division and division follows unity. One is bound to be replaced by the other after a long span
of time.
</p></div></body></html>
Failed
Failed Example 1
This HTML web page does not pass any of the input rules.
<htmllang="en"><head><title>The Three Kingdoms, Chapter 1</title></head><body><ahref="/test-assets/bypass-blocks-cf77f2/chapter2.html">Read Chapter 2</a><asideid="about-book">
The Romance of the Three Kingdoms is a 14th century historical novel.
</aside><divid="main"><strongstyle="font-size: 18pt">Three Heroes Swear Brotherhood at a Feast in the Peach Garden</strong><p>
Unity succeeds division and division follows unity. One is bound to be replaced by the other after a long span
of time.
</p></div></body></html>