Commit a916cf2b authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Add IHTMLCSSStyleDeclaration2::columnSpan property semi-stub implementation.

parent fe146ac7
......@@ -564,6 +564,11 @@ static const style_tbl_entry_t style_tbl[] = {
DISPID_UNKNOWN
},
{
L"column-span",
DISPID_IHTMLCSSSTYLEDECLARATION2_COLUMNSPAN,
DISPID_UNKNOWN
},
{
L"column-width",
DISPID_IHTMLCSSSTYLEDECLARATION2_COLUMNWIDTH,
DISPID_UNKNOWN
......@@ -8870,15 +8875,15 @@ static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_columnFill(IHTMLCSSStyleDecla
static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_columnSpan(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
FIXME("(%p)->(%s)\n", This, debugstr_w(v));
return E_NOTIMPL;
WARN("(%p)->(%s) semi-stub\n", This, debugstr_w(v));
return set_style_property(This, STYLEID_COLUMN_SPAN, v);
}
static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_columnSpan(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL;
WARN("(%p)->(%p) semi-stub\n", This, p);
return get_style_property(This, STYLEID_COLUMN_SPAN, p);
}
static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_columns(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
......
......@@ -84,6 +84,7 @@ typedef enum {
STYLEID_COLUMN_COUNT,
STYLEID_COLUMN_FILL,
STYLEID_COLUMN_GAP,
STYLEID_COLUMN_SPAN,
STYLEID_COLUMN_WIDTH,
STYLEID_CURSOR,
STYLEID_DIRECTION,
......
......@@ -999,6 +999,24 @@ static void test_css_style_declaration2(IHTMLCSSStyleDeclaration2 *css_style)
todo_wine
ok(str && !lstrcmpW(str, L"auto"), "columnFill = %s\n", wine_dbgstr_w(str));
SysFreeString(str);
str = NULL;
hres = IHTMLCSSStyleDeclaration2_get_columnSpan(css_style, &str);
ok(hres == S_OK, "get_columnSpan failed: %08x\n", hres);
ok(!str, "columnSpan = %s\n", wine_dbgstr_w(str));
SysFreeString(str);
str = SysAllocString(L"all");
hres = IHTMLCSSStyleDeclaration2_put_columnSpan(css_style, str);
ok(hres == S_OK, "put_columnSpan failed: %08x\n", hres);
SysFreeString(str);
str = NULL;
hres = IHTMLCSSStyleDeclaration2_get_columnSpan(css_style, &str);
ok(hres == S_OK, "get_columnSpan failed: %08x\n", hres);
todo_wine
ok(str && !lstrcmpW(str, L"all"), "columnSpan = %s\n", wine_dbgstr_w(str));
SysFreeString(str);
}
static void test_body_style(IHTMLStyle *style)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment