summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/document-metadata/the-link-element/link-rel-attribute-ascii-case-insensitive.html
blob: 5ee55f7d2e7062dd7240215400f6c92f00f8353f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<meta charset="utf-8">
<title>link element rel is ASCII case-insensitive</title>
<link rel="help" href="https://html.spec.whatwg.org/#the-link-element">
<link rel="help" href="https://html.spec.whatwg.org/#attr-link-rel">
<link rel="help" href="https://html.spec.whatwg.org/#linkTypes">
<meta name="assert" content="link element's rel attribute is ASCII case-insensitive.">
<link rel="mismatch" href="link-rel-attribute-ascii-case-insensitive-notref.html">

<!-- Load sheet with a red background (rel attribute value is case-sensitive
     equal to "stylesheet") -->
<link rel="stylesheet" href="stylesheet.css">

<!-- Load sheet with white background (rel attribute value is ASCII
     case-insensitive equal to "stylesheet") -->
<link rel="StyLeShEeT" href="style.css">

<!-- Do not load sheet with a red background (rel attribute value is
     case-insensitive equal to "stylesheet") -->
<link rel="ſtyleſheet" href="stylesheet.css">

<p>Test passes if background is not red.</p>