mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Add WPT test for 'align' attribute on '<hr>'.
This commit is contained in:
parent
bd74844537
commit
3ebf43af3a
3 changed files with 79 additions and 0 deletions
|
@ -36766,6 +36766,18 @@
|
|||
"url": "/html/rendering/non-replaced-elements/the-fieldset-element-0/min-width-not-important.html"
|
||||
}
|
||||
],
|
||||
"html/rendering/non-replaced-elements/the-hr-element-0/align.html": [
|
||||
{
|
||||
"path": "html/rendering/non-replaced-elements/the-hr-element-0/align.html",
|
||||
"references": [
|
||||
[
|
||||
"/html/rendering/non-replaced-elements/the-hr-element-0/align-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/html/rendering/non-replaced-elements/the-hr-element-0/align.html"
|
||||
}
|
||||
],
|
||||
"html/rendering/non-replaced-elements/the-hr-element-0/color.html": [
|
||||
{
|
||||
"path": "html/rendering/non-replaced-elements/the-hr-element-0/color.html",
|
||||
|
@ -40161,6 +40173,18 @@
|
|||
}
|
||||
},
|
||||
"reftest_nodes": {
|
||||
"html/rendering/non-replaced-elements/the-hr-element-0/align.html": [
|
||||
{
|
||||
"path": "html/rendering/non-replaced-elements/the-hr-element-0/align.html",
|
||||
"references": [
|
||||
[
|
||||
"/html/rendering/non-replaced-elements/the-hr-element-0/align-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/html/rendering/non-replaced-elements/the-hr-element-0/align.html"
|
||||
}
|
||||
],
|
||||
"html/semantics/links/linktypes/alternate-css-ref.html": [
|
||||
{
|
||||
"path": "html/semantics/links/linktypes/alternate-css-ref.html",
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
|
||||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<style>
|
||||
.hr {
|
||||
color: gray;
|
||||
border-style: inset;
|
||||
border-width: 1px;
|
||||
margin: 0.5em auto;
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
.left {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.right {
|
||||
margin-right: 0;
|
||||
}
|
||||
</style>
|
||||
<div class='hr'></div>
|
||||
<div class='hr left'></div>
|
||||
<div class='hr'></div>
|
||||
<div class='hr right'></div>
|
||||
<div class='hr'></div>
|
||||
|
||||
<div class='hr'></div>
|
||||
<div class='hr left'></div>
|
||||
<div class='hr'></div>
|
||||
<div class='hr right'></div>
|
||||
<div class='hr'></div>
|
|
@ -0,0 +1,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>
|
Loading…
Add table
Add a link
Reference in a new issue