Skip to content

Commit

Permalink
updated test page
Browse files Browse the repository at this point in the history
  • Loading branch information
jongund committed Jun 19, 2024
1 parent bb95302 commit 57f8129
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
15 changes: 8 additions & 7 deletions content/practices/high-contrast/test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
<main>
<h1>High Contrast Testing Page</h1>

<h2>Media Query Settings</h2>
<div>
<code>
Prefers-contrast:
prefers-contrast:
<span id="id-ic-custom">custom</span>
<span id="id-ic-less">less</span>
<span id="id-ic-more">more</span>
Expand All @@ -23,9 +24,9 @@ <h1>High Contrast Testing Page</h1>
<div>
<code>
prefers-color-theme:
<span id="id-ct-light">light</span>
<span id="id-ct-dark">dark</span>
<span id="id-ct-undefined">undefined</span>
<span id="id-pcs-light">light</span>
<span id="id-pcs-dark">dark</span>
<span id="id-pcs-undefined">undefined</span>
</code>
</div>

Expand All @@ -37,7 +38,7 @@ <h1>High Contrast Testing Page</h1>
</code>
</div>

<h2>Links</h2>
<h2>Link Styling</h2>

<h3>Browser Defaults</h3>

Expand All @@ -57,7 +58,7 @@ <h3>Author Set Colors</h3>
<li class="link8">Follow <a href="#">Link 8</a> to a new page.</li>
</ul>

<h2>Buttons</h2>
<h2>Button Styling</h2>

<div>
<input type="image" src="./green-arrow.jpg" style="height: 40px" alt="Next"/>

Check failure on line 64 in content/practices/high-contrast/test/index.html

View workflow job for this annotation

GitHub Actions / lint-html

The empty tag : [ input ] must not use self closed syntax. [error/empty-tag-not-self-closed]

Check failure on line 64 in content/practices/high-contrast/test/index.html

View workflow job for this annotation

GitHub Actions / lint-html

The empty tag : [ input ] must not use self closed syntax. [error/empty-tag-not-self-closed]
Expand All @@ -83,7 +84,7 @@ <h2>Buttons</h2>
</label>
</div>

<h2>Images</h2>
<h2>Image Styling</h2>

<div><img src="./info-1.webp"/></div>

Check failure on line 89 in content/practices/high-contrast/test/index.html

View workflow job for this annotation

GitHub Actions / lint-html

The empty tag : [ img ] must not use self closed syntax. [error/empty-tag-not-self-closed]

Check failure on line 89 in content/practices/high-contrast/test/index.html

View workflow job for this annotation

GitHub Actions / lint-html

The empty tag : [ img ] must not use self closed syntax. [error/empty-tag-not-self-closed]

Expand Down
22 changes: 10 additions & 12 deletions content/practices/high-contrast/test/test.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ li {
}


}

div img {
width: 50%;
}
Expand All @@ -130,37 +128,37 @@ div img {
}
}

/* prefers-color-theme */
/* prefers-color-scheme */

#id-ct-undefined {
#id-pcs-undefined {
display: inline;
}

#id-ct-light {
#id-pcs-light {
display: none;
}

@media (prefers-color-theme: light) {
#id-ct-light {
@media (prefers-color-scheme: light) {
#id-pcs-light {
display: inline;
}

#id-ct-undefined {
#id-pcs-undefined {
display: none;
}

}

#id-ct-dark {
#id-pcs-dark {
display: none;
}

@media (prefers-color-theme: dark) {
#id-ct-dark {
@media (prefers-color-scheme: dark) {
#id-pcs-dark {
display: inline;
}

#id-ct-undefined {
#id-pcs-undefined {
display: none;
}

Expand Down

0 comments on commit 57f8129

Please sign in to comment.