mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Use the correct IDL setter for <font>.size
Previously, the IDL attribute would incorrectly set the `size` attribute for `<font>` elements as `AttrValue::String`. Now it correctly sets it as `AttrValue::Length`. Also included is a regression test.
This commit is contained in:
parent
5eb1c04e78
commit
eabaf2c6a5
2 changed files with 15 additions and 2 deletions
|
@ -20,6 +20,11 @@ var sizes = ["0", "1", "2", "3", "4", "5", "6", "7", "8"];
|
|||
var testSize = function (attrValue) {
|
||||
elem.setAttribute("size", attrValue);
|
||||
assert_equals(elem.getAttribute("size"), attrValue);
|
||||
assert_equals(elem.size, attrValue);
|
||||
|
||||
elem.size = attrValue;
|
||||
assert_equals(elem.getAttribute("size"), attrValue);
|
||||
assert_equals(elem.size, attrValue);
|
||||
}
|
||||
|
||||
var args = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue