Implement <hr> 'color' attribute

This commit is contained in:
Corey Farwell 2015-11-08 11:45:11 -05:00
parent 9bcae9a866
commit ee0800abe9
9 changed files with 97 additions and 138 deletions

View file

@ -4485,6 +4485,16 @@
],
"url": "/html/rendering/non-replaced-elements/the-fieldset-element-0/min-width-not-important.html"
},
{
"path": "html/rendering/non-replaced-elements/the-hr-element-0/color.html",
"references": [
[
"html/rendering/non-replaced-elements/the-hr-element-0/color-ref.html",
"=="
]
],
"url": "/html/rendering/non-replaced-elements/the-hr-element-0/color.html"
},
{
"path": "html/rendering/non-replaced-elements/the-page/body_text_00ffff.xhtml",
"references": [

View file

@ -2316,9 +2316,6 @@
[HTMLHRElement interface: attribute align]
expected: FAIL
[HTMLHRElement interface: attribute color]
expected: FAIL
[HTMLHRElement interface: attribute noShade]
expected: FAIL
@ -2331,9 +2328,6 @@
[HTMLHRElement interface: document.createElement("hr") must inherit property "align" with the proper type (0)]
expected: FAIL
[HTMLHRElement interface: document.createElement("hr") must inherit property "color" with the proper type (1)]
expected: FAIL
[HTMLHRElement interface: document.createElement("hr") must inherit property "noShade" with the proper type (2)]
expected: FAIL

View file

@ -1449,135 +1449,6 @@
[hr.align: IDL set to object "test-valueOf" followed by IDL get]
expected: FAIL
[hr.color: typeof IDL attribute]
expected: FAIL
[hr.color: IDL get with DOM attribute unset]
expected: FAIL
[hr.color: setAttribute() to "" followed by IDL get]
expected: FAIL
[hr.color: setAttribute() to " \\0\\x01\\x02\\x03\\x04\\x05\\x06\\x07 \\b\\t\\n\\v\\f\\r\\x0e\\x0f \\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17 \\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f foo " followed by IDL get]
expected: FAIL
[hr.color: setAttribute() to undefined followed by IDL get]
expected: FAIL
[hr.color: setAttribute() to 7 followed by IDL get]
expected: FAIL
[hr.color: setAttribute() to 1.5 followed by IDL get]
expected: FAIL
[hr.color: setAttribute() to true followed by IDL get]
expected: FAIL
[hr.color: setAttribute() to false followed by IDL get]
expected: FAIL
[hr.color: setAttribute() to object "[object Object\]" followed by IDL get]
expected: FAIL
[hr.color: setAttribute() to NaN followed by IDL get]
expected: FAIL
[hr.color: setAttribute() to Infinity followed by IDL get]
expected: FAIL
[hr.color: setAttribute() to -Infinity followed by IDL get]
expected: FAIL
[hr.color: setAttribute() to "\\0" followed by IDL get]
expected: FAIL
[hr.color: setAttribute() to null followed by IDL get]
expected: FAIL
[hr.color: setAttribute() to object "test-toString" followed by IDL get]
expected: FAIL
[hr.color: setAttribute() to object "test-valueOf" followed by IDL get]
expected: FAIL
[hr.color: IDL set to "" followed by getAttribute()]
expected: FAIL
[hr.color: IDL set to " \\0\\x01\\x02\\x03\\x04\\x05\\x06\\x07 \\b\\t\\n\\v\\f\\r\\x0e\\x0f \\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17 \\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f foo " followed by getAttribute()]
expected: FAIL
[hr.color: IDL set to undefined followed by getAttribute()]
expected: FAIL
[hr.color: IDL set to undefined followed by IDL get]
expected: FAIL
[hr.color: IDL set to 7 followed by getAttribute()]
expected: FAIL
[hr.color: IDL set to 7 followed by IDL get]
expected: FAIL
[hr.color: IDL set to 1.5 followed by getAttribute()]
expected: FAIL
[hr.color: IDL set to 1.5 followed by IDL get]
expected: FAIL
[hr.color: IDL set to true followed by getAttribute()]
expected: FAIL
[hr.color: IDL set to true followed by IDL get]
expected: FAIL
[hr.color: IDL set to false followed by getAttribute()]
expected: FAIL
[hr.color: IDL set to false followed by IDL get]
expected: FAIL
[hr.color: IDL set to object "[object Object\]" followed by getAttribute()]
expected: FAIL
[hr.color: IDL set to object "[object Object\]" followed by IDL get]
expected: FAIL
[hr.color: IDL set to NaN followed by getAttribute()]
expected: FAIL
[hr.color: IDL set to NaN followed by IDL get]
expected: FAIL
[hr.color: IDL set to Infinity followed by getAttribute()]
expected: FAIL
[hr.color: IDL set to Infinity followed by IDL get]
expected: FAIL
[hr.color: IDL set to -Infinity followed by getAttribute()]
expected: FAIL
[hr.color: IDL set to -Infinity followed by IDL get]
expected: FAIL
[hr.color: IDL set to "\\0" followed by getAttribute()]
expected: FAIL
[hr.color: IDL set to null followed by getAttribute()]
expected: FAIL
[hr.color: IDL set to null followed by IDL get]
expected: FAIL
[hr.color: IDL set to object "test-toString" followed by getAttribute()]
expected: FAIL
[hr.color: IDL set to object "test-toString" followed by IDL get]
expected: FAIL
[hr.color: IDL set to object "test-valueOf" followed by IDL get]
expected: FAIL
[hr.noShade: typeof IDL attribute]
expected: FAIL

View file

@ -0,0 +1,22 @@
<!doctype html>
<meta charset=utf-8>
<style>
.hr {
color: gray;
border-style: inset;
border-width: 1px;
margin: 0.5em auto;
}
.green {
color: green;
}
.no-inset {
border-style: solid;
}
</style>
<div class='hr'></div>
<div class='hr no-inset'></div>
<div class='hr no-inset'></div>
<div class='hr green no-inset'></div>

View file

@ -0,0 +1,7 @@
<!doctype html>
<meta charset=utf-8>
<link rel=match href="color-ref.html">
<hr>
<hr color="">
<hr color=transparent>
<hr color=green>