mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Add z-index support.
This commit is contained in:
parent
037f6c2cae
commit
abca00009c
2 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue