diff --git a/dlls/mshtml/htmlstyle.c b/dlls/mshtml/htmlstyle.c
index 7dd7000bab0..2cbd8a55789 100644
--- a/dlls/mshtml/htmlstyle.c
+++ b/dlls/mshtml/htmlstyle.c
@@ -3025,8 +3025,10 @@ static HRESULT WINAPI HTMLStyle_removeAttribute(IHTMLStyle *iface, BSTR strAttri
static HRESULT WINAPI HTMLStyle_toString(IHTMLStyle *iface, BSTR *String)
{
HTMLStyle *This = impl_from_IHTMLStyle(iface);
- FIXME("(%p)->(%p)\n", This, String);
- return E_NOTIMPL;
+
+ TRACE("(%p)->(%p)\n", This, String);
+
+ return dispex_to_string(&This->css_style.dispex, String);
}
static const IHTMLStyleVtbl HTMLStyleVtbl = {
diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js
index cf0d7bf0f4b..91e50c76fc0 100644
--- a/dlls/mshtml/tests/documentmode.js
+++ b/dlls/mshtml/tests/documentmode.js
@@ -218,6 +218,7 @@ sync_test("builtin_toString", function() {
test("navigator", window.navigator, "Navigator");
test("screen", window.screen, "Screen");
test("sessionStorage", window.sessionStorage, "Storage");
+ test("style", document.body.style, "MSStyleCSSProperties");
test("styleSheet", sheet, "CSSStyleSheet");
test("styleSheetRule", sheet.rules.item(0), "CSSStyleRule");
test("styleSheetRules", sheet.rules, "MSCSSRuleList");