summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/rendering/non-replaced-elements/the-hr-element-0/align.html
blob: 1657f2458d0f606fb787b6d809309dd5192b1a2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!doctype html>
<meta charset="utf-8">
<link rel="match" href="align-ref.html">
<style>
hr {
  width: 100px;
}
</style>

<hr align=>
<hr align=left>
<hr align=center>
<hr align=right>
<hr align=foobar>

<script>
// Test the IDL attribute
const values = ['', 'left', 'center', 'right', 'foobar'];
values.forEach(value => {
  const hr = document.createElement('hr');
  hr.align = value;
  document.body.appendChild(hr);
});
</script>