mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Implement attribute 'fgColor' on 'document'
The 'text' attribute was implemented on '<body>' in #7841
This commit is contained in:
parent
29c42a9f78
commit
320263199f
9 changed files with 25 additions and 156 deletions
|
@ -14,6 +14,12 @@ test(function() {
|
|||
assert_equals(document.vlinkColor, document.body.vLink);
|
||||
assert_equals(document.alinkColor, document.body.aLink);
|
||||
})
|
||||
test(function() {
|
||||
document.fgColor = null;
|
||||
assert_equals(document.fgColor, "");
|
||||
assert_equals(document.body.text, "");
|
||||
assert_equals(document.body.getAttribute("text"), "");
|
||||
})
|
||||
test(function() {
|
||||
document.fgColor = "blue";
|
||||
assert_equals(document.fgColor, "blue");
|
||||
|
|
|
@ -14,6 +14,12 @@ test(function() {
|
|||
assert_equals(document.vlinkColor, document.body.vLink);
|
||||
assert_equals(document.alinkColor, document.body.aLink);
|
||||
})
|
||||
test(function() {
|
||||
document.body.text = null;
|
||||
assert_equals(document.fgColor, "");
|
||||
assert_equals(document.body.text, "");
|
||||
assert_equals(document.body.getAttribute("text"), "");
|
||||
})
|
||||
test(function() {
|
||||
document.body.text = "blue";
|
||||
assert_equals(document.fgColor, "blue");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue