Add z-index support.

This commit is contained in:
Josh Matthews 2014-11-27 15:33:36 -05:00
parent 037f6c2cae
commit abca00009c
2 changed files with 5 additions and 0 deletions

View file

@ -256,6 +256,9 @@ impl<'a> CSS2PropertiesMethods for JSRef<'a, CSS2Properties> {
css_getter!(Right, "right")
css_setter!(SetRight, "right")
css_getter!(ZIndex, "z-index")
css_setter!(SetZIndex, "z-index")
fn IndexedGetter(self, index: u32, found: &mut bool) -> DOMString {
let decl: JSRef<CSSStyleDeclaration> = CSSStyleDeclarationCast::from_ref(self);
decl.IndexedGetter(index, found)

View file

@ -100,4 +100,6 @@ interface CSS2Properties : CSSStyleDeclaration {
[TreatNullAs=EmptyString] attribute DOMString width;
[TreatNullAs=EmptyString] attribute DOMString minWidth;
[TreatNullAs=EmptyString] attribute DOMString maxWidth;
[TreatNullAs=EmptyString] attribute DOMString zIndex;
};