From a4d92f6ec2a1bf92c1f0bc408a7060a774bd027d Mon Sep 17 00:00:00 2001 From: Sebastian Geerken Date: Mon, 15 Sep 2014 13:45:37 +0200 Subject: Extended CSS parser and dw::core::Style by 'z-index'. --- src/styleengine.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/styleengine.cc') diff --git a/src/styleengine.cc b/src/styleengine.cc index f5f0a315..706340b6 100644 --- a/src/styleengine.cc +++ b/src/styleengine.cc @@ -725,6 +725,12 @@ void StyleEngine::apply (int i, StyleAttrs *attrs, CssPropertyList *props, case CSS_PROPERTY_MAX_HEIGHT: computeLength (&attrs->maxHeight, p->value.intVal, attrs->font); break; + case CSS_PROPERTY_Z_INDEX: + if (p->type == CSS_LENGTH_TYPE_AUTO) + attrs->zIndex = dw::core::style::Z_INDEX_AUTO; + else + attrs->zIndex = p->value.intVal; + break; case PROPERTY_X_LINK: attrs->x_link = p->value.intVal; break; -- cgit v1.2.3