Skip to content

Commit

Permalink
Update F2.html (#4128)
Browse files Browse the repository at this point in the history
- ~~rephrased the introduction to include mention of assistive
technology~~
- removed example 3
- updated outcome logic of checks 1 and 2
- ~~added a third condition to check 2~~

Resolves #4109
  • Loading branch information
mbgower authored Jan 22, 2025
1 parent 2afa6a8 commit a6d0f4e
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions techniques/failures/F2.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,7 @@ <h3>Images of text used as headings where the images are not marked up with head
<pre xml:space="preserve"><code class="language-html">&lt;img src="Chapter1.gif" alt="Chapter One"&gt;
&lt;p&gt;Once upon a time in the land of the Web...&lt;/p&gt;</code></pre>
</section>
<section class="example">
<h3>Using CSS to visually emphasize a phrase or word without conveying that emphasis semantically</h3>

<p>The following example fails because the information conveyed by using the CSS font-weight property to change to a bold font is not conveyed through semantic markup or stated explicitly in the text.</p>
<p>Here is a CSS class to specify bold:</p>
<pre xml:space="preserve"><code class="language-css">.yell {
font-weight:bold;
text-transform: uppercase;
}</code>
</pre>
<p>And here is the corresponding HTML:</p>
<pre xml:space="preserve"><code class="language-html">&lt;p&gt;
"I said, &lt;span class="yell"&gt;no&lt;/span&gt;, not before dinner!",
was the exasperated response when Timmy asked his mother for the
fourth time for an ice cream cone.
&lt;/p&gt;</code>
</pre>

</section>

</section><section id="tests"><h2>Tests</h2>
<section class="procedure"><h3>Procedure</h3>
<ol>
Expand All @@ -73,8 +55,7 @@ <h3>Using CSS to visually emphasize a phrase or word without conveying that emph
</section>
<section class="results"><h3>Expected Results</h3>
<ul>
<li>If check #1.1 is true, then #1.2 is true.</li>
<li>If check #2.1 is true, then #2.2 is true.</li>
<li>If, in either situation, check 1 is true and check 2 is false, this failure condition applies and the content fails this success criterion. If condition 2 is true, the failure condition does not apply.</li>
</ul>
</section>
</section><section id="related"><h2>Related Techniques</h2><ul>
Expand Down

0 comments on commit a6d0f4e

Please sign in to comment.