winex11: add owned windows to taskbar if owner is not mapped
[wine] / dlls / mshtml / htmlstyle.c
1 /*
2  * Copyright 2006 Jacek Caban for CodeWeavers
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18
19 #include <stdarg.h>
20
21 #define COBJMACROS
22
23 #include "windef.h"
24 #include "winbase.h"
25 #include "winuser.h"
26 #include "ole2.h"
27
28 #include "wine/debug.h"
29 #include "wine/unicode.h"
30
31 #include "mshtml_private.h"
32
33 WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
34
35 typedef struct {
36     const IHTMLStyleVtbl *lpHTMLStyleVtbl;
37
38     LONG ref;
39
40     nsIDOMCSSStyleDeclaration *nsstyle;
41 } HTMLStyle;
42
43 #define HTMLSTYLE(x)  ((IHTMLStyle*) &(x)->lpHTMLStyleVtbl);
44
45 static const WCHAR attrBackgroundColor[] =
46     {'b','a','c','k','g','r','o','u','n','d','-','c','o','l','o','r',0};
47 static const WCHAR attrBorderLeft[] =
48     {'b','o','r','d','e','r','-','l','e','f','t',0};
49 static const WCHAR attrColor[] =
50     {'c','o','l','o','r',0};
51 static const WCHAR attrDisplay[] =
52     {'d','i','s','p','l','a','y',0};
53 static const WCHAR attrFontFamily[] =
54     {'f','o','n','t','-','f','a','m','i','l','y',0};
55 static const WCHAR attrFontSize[] =
56     {'f','o','n','t','-','s','i','z','e',0};
57 static const WCHAR attrFontStyle[] =
58     {'f','o','n','t','-','s','t','y','l','e',0};
59 static const WCHAR attrFontWeight[] =
60     {'f','o','n','t','-','w','e','i','g','h','t',0};
61 static const WCHAR attrMarginLeft[] =
62     {'m','a','r','g','i','n','-','l','e','f','t',0};
63 static const WCHAR attrMarginRight[] =
64     {'m','a','r','g','i','n','-','r','i','g','h','t',0};
65 static const WCHAR attrPaddingLeft[] =
66     {'p','a','d','d','i','n','g','-','l','e','f','t',0};
67 static const WCHAR attrTextDecoration[] =
68     {'t','e','x','t','-','d','e','c','o','r','a','t','i','o','n',0};
69 static const WCHAR attrVisibility[] =
70     {'v','i','s','i','b','i','l','i','t','y',0};
71
72 static const WCHAR valLineThrough[] =
73     {'l','i','n','e','-','t','h','r','o','u','g','h',0};
74 static const WCHAR valUnderline[] =
75     {'u','n','d','e','r','l','i','n','e',0};
76
77 static const WCHAR px_formatW[] = {'%','d','p','x',0};
78 static const WCHAR emptyW[] = {0};
79
80 static LPWSTR fix_px_value(LPCWSTR val)
81 {
82     LPCWSTR ptr = val;
83
84     while(*ptr) {
85         while(*ptr && isspaceW(*ptr))
86             ptr++;
87         if(!*ptr)
88             break;
89
90         while(*ptr && isdigitW(*ptr))
91             ptr++;
92
93         if(!*ptr || isspaceW(*ptr)) {
94             LPWSTR ret, p;
95             int len = strlenW(val)+1;
96
97             ret = heap_alloc((len+2)*sizeof(WCHAR));
98             memcpy(ret, val, (ptr-val)*sizeof(WCHAR));
99             p = ret + (ptr-val);
100             *p++ = 'p';
101             *p++ = 'x';
102             strcpyW(p, ptr);
103
104             TRACE("fixed %s -> %s\n", debugstr_w(val), debugstr_w(ret));
105
106             return ret;
107         }
108
109         while(*ptr && !isspaceW(*ptr))
110             ptr++;
111     }
112
113     return NULL;
114 }
115
116 #define ATTR_FIX_PX  1
117
118 static HRESULT set_style_attr(HTMLStyle *This, LPCWSTR name, LPCWSTR value, DWORD flags)
119 {
120     nsAString str_name, str_value, str_empty;
121     LPWSTR val = NULL;
122     nsresult nsres;
123
124     static const PRUnichar wszEmpty[] = {0};
125
126     TRACE("(%p)->(%s %s)\n", This, debugstr_w(name), debugstr_w(value));
127
128     if(flags & ATTR_FIX_PX)
129         val = fix_px_value(value);
130
131     nsAString_Init(&str_name, name);
132     nsAString_Init(&str_value, val ? val : value);
133     nsAString_Init(&str_empty, wszEmpty);
134     heap_free(val);
135
136     nsres = nsIDOMCSSStyleDeclaration_SetProperty(This->nsstyle, &str_name, &str_value, &str_empty);
137     if(NS_FAILED(nsres))
138         ERR("SetProperty failed: %08x\n", nsres);
139
140     nsAString_Finish(&str_name);
141     nsAString_Finish(&str_value);
142     nsAString_Finish(&str_empty);
143
144     return S_OK;
145 }
146
147 static HRESULT get_style_attr_nsval(HTMLStyle *This, LPCWSTR name, nsAString *value)
148 {
149     nsAString str_name;
150     nsresult nsres;
151
152     nsAString_Init(&str_name, name);
153
154     nsres = nsIDOMCSSStyleDeclaration_GetPropertyValue(This->nsstyle, &str_name, value);
155     if(NS_FAILED(nsres)) {
156         ERR("SetProperty failed: %08x\n", nsres);
157         return E_FAIL;
158     }
159
160     nsAString_Finish(&str_name);
161
162     return NS_OK;
163 }
164
165 static HRESULT get_style_attr(HTMLStyle *This, LPCWSTR name, BSTR *p)
166 {
167     nsAString str_value;
168     const PRUnichar *value;
169
170     nsAString_Init(&str_value, NULL);
171
172     get_style_attr_nsval(This, name, &str_value);
173
174     nsAString_GetData(&str_value, &value);
175     *p = *value ? SysAllocString(value) : NULL;
176
177     nsAString_Finish(&str_value);
178
179     TRACE("%s -> %s\n", debugstr_w(name), debugstr_w(*p));
180     return S_OK;
181 }
182
183 static HRESULT check_style_attr_value(HTMLStyle *This, LPCWSTR name, LPCWSTR exval, VARIANT_BOOL *p)
184 {
185     nsAString str_value;
186     const PRUnichar *value;
187
188     nsAString_Init(&str_value, NULL);
189
190     get_style_attr_nsval(This, name, &str_value);
191
192     nsAString_GetData(&str_value, &value);
193     *p = strcmpW(value, exval) ? VARIANT_FALSE : VARIANT_TRUE;
194     nsAString_Finish(&str_value);
195
196     TRACE("%s -> %x\n", debugstr_w(name), *p);
197     return S_OK;
198 }
199
200 #define HTMLSTYLE_THIS(iface) DEFINE_THIS(HTMLStyle, HTMLStyle, iface)
201
202 static HRESULT WINAPI HTMLStyle_QueryInterface(IHTMLStyle *iface, REFIID riid, void **ppv)
203 {
204     HTMLStyle *This = HTMLSTYLE_THIS(iface);
205
206     *ppv = NULL;
207
208     if(IsEqualGUID(&IID_IUnknown, riid)) {
209         TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
210         *ppv = HTMLSTYLE(This);
211     }else if(IsEqualGUID(&IID_IDispatch, riid)) {
212         TRACE("(%p)->(IID_IDispatch %p)\n", This, ppv);
213         *ppv = HTMLSTYLE(This);
214     }else if(IsEqualGUID(&IID_IHTMLStyle, riid)) {
215         TRACE("(%p)->(IID_IHTMLStyle %p)\n", This, ppv);
216         *ppv = HTMLSTYLE(This);
217     }
218
219     if(*ppv) {
220         IUnknown_AddRef((IUnknown*)*ppv);
221         return S_OK;
222     }
223
224     WARN("unsupported %s\n", debugstr_guid(riid));
225     return E_NOINTERFACE;
226 }
227
228 static ULONG WINAPI HTMLStyle_AddRef(IHTMLStyle *iface)
229 {
230     HTMLStyle *This = HTMLSTYLE_THIS(iface);
231     LONG ref = InterlockedIncrement(&This->ref);
232
233     TRACE("(%p) ref=%d\n", This, ref);
234
235     return ref;
236 }
237
238 static ULONG WINAPI HTMLStyle_Release(IHTMLStyle *iface)
239 {
240     HTMLStyle *This = HTMLSTYLE_THIS(iface);
241     LONG ref = InterlockedDecrement(&This->ref);
242
243     TRACE("(%p) ref=%d\n", This, ref);
244
245     if(!ref)
246         heap_free(This);
247
248     return ref;
249 }
250
251 static HRESULT WINAPI HTMLStyle_GetTypeInfoCount(IHTMLStyle *iface, UINT *pctinfo)
252 {
253     HTMLStyle *This = HTMLSTYLE_THIS(iface);
254     FIXME("(%p)->(%p)\n", This, pctinfo);
255     return E_NOTIMPL;
256 }
257
258 static HRESULT WINAPI HTMLStyle_GetTypeInfo(IHTMLStyle *iface, UINT iTInfo,
259                                               LCID lcid, ITypeInfo **ppTInfo)
260 {
261     HTMLStyle *This = HTMLSTYLE_THIS(iface);
262     FIXME("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo);
263     return E_NOTIMPL;
264 }
265
266 static HRESULT WINAPI HTMLStyle_GetIDsOfNames(IHTMLStyle *iface, REFIID riid,
267                                                 LPOLESTR *rgszNames, UINT cNames,
268                                                 LCID lcid, DISPID *rgDispId)
269 {
270     HTMLStyle *This = HTMLSTYLE_THIS(iface);
271     FIXME("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
272                                         lcid, rgDispId);
273     return E_NOTIMPL;
274 }
275
276 static HRESULT WINAPI HTMLStyle_Invoke(IHTMLStyle *iface, DISPID dispIdMember,
277                             REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
278                             VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
279 {
280     HTMLStyle *This = HTMLSTYLE_THIS(iface);
281     FIXME("(%p)->(%d %s %d %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
282             lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
283     return E_NOTIMPL;
284 }
285
286 static HRESULT WINAPI HTMLStyle_put_fontFamily(IHTMLStyle *iface, BSTR v)
287 {
288     HTMLStyle *This = HTMLSTYLE_THIS(iface);
289
290     TRACE("(%p)->(%s)\n", This, debugstr_w(v));
291
292     return set_style_attr(This, attrFontFamily, v, 0);
293 }
294
295 static HRESULT WINAPI HTMLStyle_get_fontFamily(IHTMLStyle *iface, BSTR *p)
296 {
297     HTMLStyle *This = HTMLSTYLE_THIS(iface);
298
299     TRACE("(%p)->(%p)\n", This, p);
300
301     return get_style_attr(This, attrFontFamily, p);
302 }
303
304 static HRESULT WINAPI HTMLStyle_put_fontStyle(IHTMLStyle *iface, BSTR v)
305 {
306     HTMLStyle *This = HTMLSTYLE_THIS(iface);
307     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
308     return E_NOTIMPL;
309 }
310
311 static HRESULT WINAPI HTMLStyle_get_fontStyle(IHTMLStyle *iface, BSTR *p)
312 {
313     HTMLStyle *This = HTMLSTYLE_THIS(iface);
314
315     TRACE("(%p)->(%p)\n", This, p);
316
317     return get_style_attr(This, attrFontStyle, p);
318 }
319
320 static HRESULT WINAPI HTMLStyle_put_fontVariant(IHTMLStyle *iface, BSTR v)
321 {
322     HTMLStyle *This = HTMLSTYLE_THIS(iface);
323     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
324     return E_NOTIMPL;
325 }
326
327 static HRESULT WINAPI HTMLStyle_get_fontVariant(IHTMLStyle *iface, BSTR *p)
328 {
329     HTMLStyle *This = HTMLSTYLE_THIS(iface);
330     FIXME("(%p)->(%p)\n", This, p);
331     return E_NOTIMPL;
332 }
333
334 static HRESULT WINAPI HTMLStyle_put_fontWeight(IHTMLStyle *iface, BSTR v)
335 {
336     HTMLStyle *This = HTMLSTYLE_THIS(iface);
337     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
338     return E_NOTIMPL;
339 }
340
341 static HRESULT WINAPI HTMLStyle_get_fontWeight(IHTMLStyle *iface, BSTR *p)
342 {
343     HTMLStyle *This = HTMLSTYLE_THIS(iface);
344
345     TRACE("(%p)->(%p)\n", This, p);
346
347     return get_style_attr(This, attrFontWeight, p);
348 }
349
350 static HRESULT WINAPI HTMLStyle_put_fontSize(IHTMLStyle *iface, VARIANT v)
351 {
352     HTMLStyle *This = HTMLSTYLE_THIS(iface);
353
354     TRACE("(%p)->(v%d)\n", This, V_VT(&v));
355
356     switch(V_VT(&v)) {
357     case VT_BSTR:
358         return set_style_attr(This, attrFontSize, V_BSTR(&v), 0);
359     default:
360         FIXME("not supported vt %d\n", V_VT(&v));
361     }
362
363     return S_OK;
364 }
365
366 static HRESULT WINAPI HTMLStyle_get_fontSize(IHTMLStyle *iface, VARIANT *p)
367 {
368     HTMLStyle *This = HTMLSTYLE_THIS(iface);
369
370     TRACE("(%p)->(%p)\n", This, p);
371
372     V_VT(p) = VT_BSTR;
373     return get_style_attr(This, attrFontSize, &V_BSTR(p));
374 }
375
376 static HRESULT WINAPI HTMLStyle_put_font(IHTMLStyle *iface, BSTR v)
377 {
378     HTMLStyle *This = HTMLSTYLE_THIS(iface);
379     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
380     return E_NOTIMPL;
381 }
382
383 static HRESULT WINAPI HTMLStyle_get_font(IHTMLStyle *iface, BSTR *p)
384 {
385     HTMLStyle *This = HTMLSTYLE_THIS(iface);
386     FIXME("(%p)->(%p)\n", This, p);
387     return E_NOTIMPL;
388 }
389
390 static HRESULT WINAPI HTMLStyle_put_color(IHTMLStyle *iface, VARIANT v)
391 {
392     HTMLStyle *This = HTMLSTYLE_THIS(iface);
393     FIXME("(%p)->(v%d)\n", This, V_VT(&v));
394     return E_NOTIMPL;
395 }
396
397 static HRESULT WINAPI HTMLStyle_get_color(IHTMLStyle *iface, VARIANT *p)
398 {
399     HTMLStyle *This = HTMLSTYLE_THIS(iface);
400
401     TRACE("(%p)->(%p)\n", This, p);
402
403     V_VT(p) = VT_BSTR;
404     return get_style_attr(This, attrColor, &V_BSTR(p));
405 }
406
407 static HRESULT WINAPI HTMLStyle_put_background(IHTMLStyle *iface, BSTR v)
408 {
409     HTMLStyle *This = HTMLSTYLE_THIS(iface);
410     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
411     return E_NOTIMPL;
412 }
413
414 static HRESULT WINAPI HTMLStyle_get_background(IHTMLStyle *iface, BSTR *p)
415 {
416     HTMLStyle *This = HTMLSTYLE_THIS(iface);
417     FIXME("(%p)->(%p)\n", This, p);
418     return E_NOTIMPL;
419 }
420
421 static HRESULT WINAPI HTMLStyle_put_backgroundColor(IHTMLStyle *iface, VARIANT v)
422 {
423     HTMLStyle *This = HTMLSTYLE_THIS(iface);
424
425     TRACE("(%p)->(v%d)\n", This, V_VT(&v));
426
427     switch(V_VT(&v)) {
428     case VT_BSTR:
429         return set_style_attr(This, attrBackgroundColor, V_BSTR(&v), 0);
430     case VT_I4: {
431         WCHAR value[10];
432         static const WCHAR format[] = {'#','%','0','6','x',0};
433
434         wsprintfW(value, format, V_I4(&v));
435         return set_style_attr(This, attrBackgroundColor, value, 0);
436     }
437     default:
438         FIXME("unsupported vt %d\n", V_VT(&v));
439     }
440
441     return S_OK;
442 }
443
444 static HRESULT WINAPI HTMLStyle_get_backgroundColor(IHTMLStyle *iface, VARIANT *p)
445 {
446     HTMLStyle *This = HTMLSTYLE_THIS(iface);
447     FIXME("(%p)->(%p)\n", This, p);
448     return E_NOTIMPL;
449 }
450
451 static HRESULT WINAPI HTMLStyle_put_backgroundImage(IHTMLStyle *iface, BSTR v)
452 {
453     HTMLStyle *This = HTMLSTYLE_THIS(iface);
454     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
455     return E_NOTIMPL;
456 }
457
458 static HRESULT WINAPI HTMLStyle_get_backgroundImage(IHTMLStyle *iface, BSTR *p)
459 {
460     HTMLStyle *This = HTMLSTYLE_THIS(iface);
461     FIXME("(%p)->(%p)\n", This, p);
462     return E_NOTIMPL;
463 }
464
465 static HRESULT WINAPI HTMLStyle_put_backgroundRepeat(IHTMLStyle *iface, BSTR v)
466 {
467     HTMLStyle *This = HTMLSTYLE_THIS(iface);
468     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
469     return E_NOTIMPL;
470 }
471
472 static HRESULT WINAPI HTMLStyle_get_backgroundRepeat(IHTMLStyle *iface, BSTR *p)
473 {
474     HTMLStyle *This = HTMLSTYLE_THIS(iface);
475     FIXME("(%p)->(%p)\n", This, p);
476     return E_NOTIMPL;
477 }
478
479 static HRESULT WINAPI HTMLStyle_put_backgroundAttachment(IHTMLStyle *iface, BSTR v)
480 {
481     HTMLStyle *This = HTMLSTYLE_THIS(iface);
482     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
483     return E_NOTIMPL;
484 }
485
486 static HRESULT WINAPI HTMLStyle_get_backgroundAttachment(IHTMLStyle *iface, BSTR *p)
487 {
488     HTMLStyle *This = HTMLSTYLE_THIS(iface);
489     FIXME("(%p)->(%p)\n", This, p);
490     return E_NOTIMPL;
491 }
492
493 static HRESULT WINAPI HTMLStyle_put_backgroundPosition(IHTMLStyle *iface, BSTR v)
494 {
495     HTMLStyle *This = HTMLSTYLE_THIS(iface);
496     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
497     return E_NOTIMPL;
498 }
499
500 static HRESULT WINAPI HTMLStyle_get_backgroundPosition(IHTMLStyle *iface, BSTR *p)
501 {
502     HTMLStyle *This = HTMLSTYLE_THIS(iface);
503     FIXME("(%p)->(%p)\n", This, p);
504     return E_NOTIMPL;
505 }
506
507 static HRESULT WINAPI HTMLStyle_put_backgroundPositionX(IHTMLStyle *iface, VARIANT v)
508 {
509     HTMLStyle *This = HTMLSTYLE_THIS(iface);
510     FIXME("(%p)->(v%d)\n", This, V_VT(&v));
511     return E_NOTIMPL;
512 }
513
514 static HRESULT WINAPI HTMLStyle_get_backgroundPositionX(IHTMLStyle *iface, VARIANT *p)
515 {
516     HTMLStyle *This = HTMLSTYLE_THIS(iface);
517     FIXME("(%p)->(%p)\n", This, p);
518     return E_NOTIMPL;
519 }
520
521 static HRESULT WINAPI HTMLStyle_put_backgroundPositionY(IHTMLStyle *iface, VARIANT v)
522 {
523     HTMLStyle *This = HTMLSTYLE_THIS(iface);
524     FIXME("(%p)->(v%d)\n", This, V_VT(&v));
525     return E_NOTIMPL;
526 }
527
528 static HRESULT WINAPI HTMLStyle_get_backgroundPositionY(IHTMLStyle *iface, VARIANT *p)
529 {
530     HTMLStyle *This = HTMLSTYLE_THIS(iface);
531     FIXME("(%p)->(%p)\n", This, p);
532     return E_NOTIMPL;
533 }
534
535 static HRESULT WINAPI HTMLStyle_put_wordSpacing(IHTMLStyle *iface, VARIANT v)
536 {
537     HTMLStyle *This = HTMLSTYLE_THIS(iface);
538     FIXME("(%p)->(v%d)\n", This, V_VT(&v));
539     return E_NOTIMPL;
540 }
541
542 static HRESULT WINAPI HTMLStyle_get_wordSpacing(IHTMLStyle *iface, VARIANT *p)
543 {
544     HTMLStyle *This = HTMLSTYLE_THIS(iface);
545     FIXME("(%p)->(%p)\n", This, p);
546     return E_NOTIMPL;
547 }
548
549 static HRESULT WINAPI HTMLStyle_put_letterSpacing(IHTMLStyle *iface, VARIANT v)
550 {
551     HTMLStyle *This = HTMLSTYLE_THIS(iface);
552     FIXME("(%p)->(v%d)\n", This, V_VT(&v));
553     return E_NOTIMPL;
554 }
555
556 static HRESULT WINAPI HTMLStyle_get_letterSpacing(IHTMLStyle *iface, VARIANT *p)
557 {
558     HTMLStyle *This = HTMLSTYLE_THIS(iface);
559     FIXME("(%p)->(%p)\n", This, p);
560     return E_NOTIMPL;
561 }
562
563 static HRESULT WINAPI HTMLStyle_put_textDecoration(IHTMLStyle *iface, BSTR v)
564 {
565     HTMLStyle *This = HTMLSTYLE_THIS(iface);
566     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
567     return E_NOTIMPL;
568 }
569
570 static HRESULT WINAPI HTMLStyle_get_textDecoration(IHTMLStyle *iface, BSTR *p)
571 {
572     HTMLStyle *This = HTMLSTYLE_THIS(iface);
573
574     TRACE("(%p)->(%p)\n", This, p);
575
576     return get_style_attr(This, attrTextDecoration, p);
577 }
578
579 static HRESULT WINAPI HTMLStyle_put_textDecorationNone(IHTMLStyle *iface, VARIANT_BOOL v)
580 {
581     HTMLStyle *This = HTMLSTYLE_THIS(iface);
582     FIXME("(%p)->(%x)\n", This, v);
583     return E_NOTIMPL;
584 }
585
586 static HRESULT WINAPI HTMLStyle_get_textDecorationNone(IHTMLStyle *iface, VARIANT_BOOL *p)
587 {
588     HTMLStyle *This = HTMLSTYLE_THIS(iface);
589     FIXME("(%p)->(%p)\n", This, p);
590     return E_NOTIMPL;
591 }
592
593 static HRESULT WINAPI HTMLStyle_put_textDecorationUnderline(IHTMLStyle *iface, VARIANT_BOOL v)
594 {
595     HTMLStyle *This = HTMLSTYLE_THIS(iface);
596     FIXME("(%p)->(%x)\n", This, v);
597     return E_NOTIMPL;
598 }
599
600 static HRESULT WINAPI HTMLStyle_get_textDecorationUnderline(IHTMLStyle *iface, VARIANT_BOOL *p)
601 {
602     HTMLStyle *This = HTMLSTYLE_THIS(iface);
603
604     TRACE("(%p)->(%p)\n", This, p);
605
606     return check_style_attr_value(This, attrTextDecoration, valUnderline, p);
607 }
608
609 static HRESULT WINAPI HTMLStyle_put_textDecorationOverline(IHTMLStyle *iface, VARIANT_BOOL v)
610 {
611     HTMLStyle *This = HTMLSTYLE_THIS(iface);
612     FIXME("(%p)->(%x)\n", This, v);
613     return E_NOTIMPL;
614 }
615
616 static HRESULT WINAPI HTMLStyle_get_textDecorationOverline(IHTMLStyle *iface, VARIANT_BOOL *p)
617 {
618     HTMLStyle *This = HTMLSTYLE_THIS(iface);
619     FIXME("(%p)->(%p)\n", This, p);
620     return E_NOTIMPL;
621 }
622
623 static HRESULT WINAPI HTMLStyle_put_textDecorationLineThrough(IHTMLStyle *iface, VARIANT_BOOL v)
624 {
625     HTMLStyle *This = HTMLSTYLE_THIS(iface);
626     FIXME("(%p)->(%x)\n", This, v);
627     return E_NOTIMPL;
628 }
629
630 static HRESULT WINAPI HTMLStyle_get_textDecorationLineThrough(IHTMLStyle *iface, VARIANT_BOOL *p)
631 {
632     HTMLStyle *This = HTMLSTYLE_THIS(iface);
633
634     TRACE("(%p)->(%p)\n", This, p);
635
636     return check_style_attr_value(This, attrTextDecoration, valLineThrough, p);
637 }
638
639 static HRESULT WINAPI HTMLStyle_put_textDecorationBlink(IHTMLStyle *iface, VARIANT_BOOL v)
640 {
641     HTMLStyle *This = HTMLSTYLE_THIS(iface);
642     FIXME("(%p)->(%x)\n", This, v);
643     return E_NOTIMPL;
644 }
645
646 static HRESULT WINAPI HTMLStyle_get_textDecorationBlink(IHTMLStyle *iface, VARIANT_BOOL *p)
647 {
648     HTMLStyle *This = HTMLSTYLE_THIS(iface);
649     FIXME("(%p)->(%p)\n", This, p);
650     return E_NOTIMPL;
651 }
652
653 static HRESULT WINAPI HTMLStyle_put_verticalAlign(IHTMLStyle *iface, VARIANT v)
654 {
655     HTMLStyle *This = HTMLSTYLE_THIS(iface);
656     FIXME("(%p)->(v%d)\n", This, V_VT(&v));
657     return E_NOTIMPL;
658 }
659
660 static HRESULT WINAPI HTMLStyle_get_verticalAlign(IHTMLStyle *iface, VARIANT *p)
661 {
662     HTMLStyle *This = HTMLSTYLE_THIS(iface);
663     FIXME("(%p)->(%p)\n", This, p);
664     return E_NOTIMPL;
665 }
666
667 static HRESULT WINAPI HTMLStyle_put_textTransform(IHTMLStyle *iface, BSTR v)
668 {
669     HTMLStyle *This = HTMLSTYLE_THIS(iface);
670     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
671     return E_NOTIMPL;
672 }
673
674 static HRESULT WINAPI HTMLStyle_get_textTransform(IHTMLStyle *iface, BSTR *p)
675 {
676     HTMLStyle *This = HTMLSTYLE_THIS(iface);
677     FIXME("(%p)->(%p)\n", This, p);
678     return E_NOTIMPL;
679 }
680
681 static HRESULT WINAPI HTMLStyle_put_textAlign(IHTMLStyle *iface, BSTR v)
682 {
683     HTMLStyle *This = HTMLSTYLE_THIS(iface);
684     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
685     return E_NOTIMPL;
686 }
687
688 static HRESULT WINAPI HTMLStyle_get_textAlign(IHTMLStyle *iface, BSTR *p)
689 {
690     HTMLStyle *This = HTMLSTYLE_THIS(iface);
691     FIXME("(%p)->(%p)\n", This, p);
692     return E_NOTIMPL;
693 }
694
695 static HRESULT WINAPI HTMLStyle_put_textIndent(IHTMLStyle *iface, VARIANT v)
696 {
697     HTMLStyle *This = HTMLSTYLE_THIS(iface);
698     FIXME("(%p)->(v%d)\n", This, V_VT(&v));
699     return E_NOTIMPL;
700 }
701
702 static HRESULT WINAPI HTMLStyle_get_textIndent(IHTMLStyle *iface, VARIANT *p)
703 {
704     HTMLStyle *This = HTMLSTYLE_THIS(iface);
705     FIXME("(%p)->(%p)\n", This, p);
706     return E_NOTIMPL;
707 }
708
709 static HRESULT WINAPI HTMLStyle_put_lineHeight(IHTMLStyle *iface, VARIANT v)
710 {
711     HTMLStyle *This = HTMLSTYLE_THIS(iface);
712     FIXME("(%p)->(v%d)\n", This, V_VT(&v));
713     return E_NOTIMPL;
714 }
715
716 static HRESULT WINAPI HTMLStyle_get_lineHeight(IHTMLStyle *iface, VARIANT *p)
717 {
718     HTMLStyle *This = HTMLSTYLE_THIS(iface);
719     FIXME("(%p)->(%p)\n", This, p);
720     return E_NOTIMPL;
721 }
722
723 static HRESULT WINAPI HTMLStyle_put_marginTop(IHTMLStyle *iface, VARIANT v)
724 {
725     HTMLStyle *This = HTMLSTYLE_THIS(iface);
726     FIXME("(%p)->(v%d)\n", This, V_VT(&v));
727     return E_NOTIMPL;
728 }
729
730 static HRESULT WINAPI HTMLStyle_get_marginTop(IHTMLStyle *iface, VARIANT *p)
731 {
732     HTMLStyle *This = HTMLSTYLE_THIS(iface);
733     FIXME("(%p)->(%p)\n", This, p);
734     return E_NOTIMPL;
735 }
736
737 static HRESULT WINAPI HTMLStyle_put_marginRight(IHTMLStyle *iface, VARIANT v)
738 {
739     HTMLStyle *This = HTMLSTYLE_THIS(iface);
740
741     TRACE("(%p)->(v(%d))\n", This, V_VT(&v));
742
743     switch(V_VT(&v)) {
744     case VT_NULL:
745         return set_style_attr(This, attrMarginRight, emptyW, 0);
746     case VT_I4: {
747         WCHAR buf[14];
748
749         wsprintfW(buf, px_formatW, V_I4(&v));
750         return set_style_attr(This, attrMarginRight, buf, 0);
751     }
752     case VT_BSTR:
753         return set_style_attr(This, attrMarginRight, V_BSTR(&v), 0);
754     default:
755         FIXME("Unsupported vt=%d\n", V_VT(&v));
756     }
757
758     return E_NOTIMPL;
759 }
760
761 static HRESULT WINAPI HTMLStyle_get_marginRight(IHTMLStyle *iface, VARIANT *p)
762 {
763     HTMLStyle *This = HTMLSTYLE_THIS(iface);
764     FIXME("(%p)->(%p)\n", This, p);
765     return E_NOTIMPL;
766 }
767
768 static HRESULT WINAPI HTMLStyle_put_marginBottom(IHTMLStyle *iface, VARIANT v)
769 {
770     HTMLStyle *This = HTMLSTYLE_THIS(iface);
771     FIXME("(%p)->(v%d)\n", This, V_VT(&v));
772     return E_NOTIMPL;
773 }
774
775 static HRESULT WINAPI HTMLStyle_get_marginBottom(IHTMLStyle *iface, VARIANT *p)
776 {
777     HTMLStyle *This = HTMLSTYLE_THIS(iface);
778     FIXME("(%p)->(%p)\n", This, p);
779     return E_NOTIMPL;
780 }
781
782 static HRESULT WINAPI HTMLStyle_put_marginLeft(IHTMLStyle *iface, VARIANT v)
783 {
784     HTMLStyle *This = HTMLSTYLE_THIS(iface);
785
786     switch(V_VT(&v)) {
787     case VT_NULL:
788         TRACE("(%p)->(NULL)\n", This);
789         return set_style_attr(This, attrMarginLeft, emptyW, 0);
790     case VT_I4: {
791         WCHAR buf[14];
792
793         TRACE("(%p)->(%d)\n", This, V_I4(&v));
794
795         wsprintfW(buf, px_formatW, V_I4(&v));
796         return set_style_attr(This, attrMarginLeft, buf, 0);
797     }
798     case VT_BSTR:
799         TRACE("(%p)->(%s)\n", This, debugstr_w(V_BSTR(&v)));
800         return set_style_attr(This, attrMarginLeft, V_BSTR(&v), 0);
801     default:
802         FIXME("Unsupported vt=%d\n", V_VT(&v));
803     }
804
805     return E_NOTIMPL;
806 }
807
808 static HRESULT WINAPI HTMLStyle_put_margin(IHTMLStyle *iface, BSTR v)
809 {
810     HTMLStyle *This = HTMLSTYLE_THIS(iface);
811     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
812     return E_NOTIMPL;
813 }
814
815 static HRESULT WINAPI HTMLStyle_get_margin(IHTMLStyle *iface, BSTR *p)
816 {
817     HTMLStyle *This = HTMLSTYLE_THIS(iface);
818     FIXME("(%p)->(%p)\n", This, p);
819     return E_NOTIMPL;
820 }
821
822 static HRESULT WINAPI HTMLStyle_get_marginLeft(IHTMLStyle *iface, VARIANT *p)
823 {
824     HTMLStyle *This = HTMLSTYLE_THIS(iface);
825     FIXME("(%p)->(%p)\n", This, p);
826     return E_NOTIMPL;
827 }
828
829 static HRESULT WINAPI HTMLStyle_put_paddingTop(IHTMLStyle *iface, VARIANT v)
830 {
831     HTMLStyle *This = HTMLSTYLE_THIS(iface);
832     FIXME("(%p)->(v%d)\n", This, V_VT(&v));
833     return E_NOTIMPL;
834 }
835
836 static HRESULT WINAPI HTMLStyle_get_paddingTop(IHTMLStyle *iface, VARIANT *p)
837 {
838     HTMLStyle *This = HTMLSTYLE_THIS(iface);
839     FIXME("(%p)->(%p)\n", This, p);
840     return E_NOTIMPL;
841 }
842
843 static HRESULT WINAPI HTMLStyle_put_paddingRight(IHTMLStyle *iface, VARIANT v)
844 {
845     HTMLStyle *This = HTMLSTYLE_THIS(iface);
846     FIXME("(%p)->(v%d)\n", This, V_VT(&v));
847     return E_NOTIMPL;
848 }
849
850 static HRESULT WINAPI HTMLStyle_get_paddingRight(IHTMLStyle *iface, VARIANT *p)
851 {
852     HTMLStyle *This = HTMLSTYLE_THIS(iface);
853     FIXME("(%p)->(%p)\n", This, p);
854     return E_NOTIMPL;
855 }
856
857 static HRESULT WINAPI HTMLStyle_put_paddingBottom(IHTMLStyle *iface, VARIANT v)
858 {
859     HTMLStyle *This = HTMLSTYLE_THIS(iface);
860     FIXME("(%p)->(v%d)\n", This, V_VT(&v));
861     return E_NOTIMPL;
862 }
863
864 static HRESULT WINAPI HTMLStyle_get_paddingBottom(IHTMLStyle *iface, VARIANT *p)
865 {
866     HTMLStyle *This = HTMLSTYLE_THIS(iface);
867     FIXME("(%p)->(%p)\n", This, p);
868     return E_NOTIMPL;
869 }
870
871 static HRESULT WINAPI HTMLStyle_put_paddingLeft(IHTMLStyle *iface, VARIANT v)
872 {
873     HTMLStyle *This = HTMLSTYLE_THIS(iface);
874
875     TRACE("(%p)->(vt=%d)\n", This, V_VT(&v));
876
877     switch(V_VT(&v)) {
878     case VT_I4: {
879         WCHAR buf[14];
880
881         wsprintfW(buf, px_formatW, V_I4(&v));
882         return set_style_attr(This, attrPaddingLeft, buf, 0);
883     }
884     case VT_BSTR:
885         return set_style_attr(This, attrPaddingLeft, V_BSTR(&v), 0);
886     default:
887         FIXME("unsupported vt=%d\n", V_VT(&v));
888     }
889
890     return E_NOTIMPL;
891 }
892
893 static HRESULT WINAPI HTMLStyle_get_paddingLeft(IHTMLStyle *iface, VARIANT *p)
894 {
895     HTMLStyle *This = HTMLSTYLE_THIS(iface);
896     FIXME("(%p)->(%p)\n", This, p);
897     return E_NOTIMPL;
898 }
899
900 static HRESULT WINAPI HTMLStyle_put_padding(IHTMLStyle *iface, BSTR v)
901 {
902     HTMLStyle *This = HTMLSTYLE_THIS(iface);
903     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
904     return E_NOTIMPL;
905 }
906
907 static HRESULT WINAPI HTMLStyle_get_padding(IHTMLStyle *iface, BSTR *p)
908 {
909     HTMLStyle *This = HTMLSTYLE_THIS(iface);
910     FIXME("(%p)->(%p)\n", This, p);
911     return E_NOTIMPL;
912 }
913
914 static HRESULT WINAPI HTMLStyle_put_border(IHTMLStyle *iface, BSTR v)
915 {
916     HTMLStyle *This = HTMLSTYLE_THIS(iface);
917     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
918     return E_NOTIMPL;
919 }
920
921 static HRESULT WINAPI HTMLStyle_get_border(IHTMLStyle *iface, BSTR *p)
922 {
923     HTMLStyle *This = HTMLSTYLE_THIS(iface);
924     FIXME("(%p)->(%p)\n", This, p);
925     return E_NOTIMPL;
926 }
927
928 static HRESULT WINAPI HTMLStyle_put_borderTop(IHTMLStyle *iface, BSTR v)
929 {
930     HTMLStyle *This = HTMLSTYLE_THIS(iface);
931     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
932     return E_NOTIMPL;
933 }
934
935 static HRESULT WINAPI HTMLStyle_get_borderTop(IHTMLStyle *iface, BSTR *p)
936 {
937     HTMLStyle *This = HTMLSTYLE_THIS(iface);
938     FIXME("(%p)->(%p)\n", This, p);
939     return E_NOTIMPL;
940 }
941
942 static HRESULT WINAPI HTMLStyle_put_borderRight(IHTMLStyle *iface, BSTR v)
943 {
944     HTMLStyle *This = HTMLSTYLE_THIS(iface);
945     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
946     return E_NOTIMPL;
947 }
948
949 static HRESULT WINAPI HTMLStyle_get_borderRight(IHTMLStyle *iface, BSTR *p)
950 {
951     HTMLStyle *This = HTMLSTYLE_THIS(iface);
952     FIXME("(%p)->(%p)\n", This, p);
953     return E_NOTIMPL;
954 }
955
956 static HRESULT WINAPI HTMLStyle_put_borderBottom(IHTMLStyle *iface, BSTR v)
957 {
958     HTMLStyle *This = HTMLSTYLE_THIS(iface);
959     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
960     return E_NOTIMPL;
961 }
962
963 static HRESULT WINAPI HTMLStyle_get_borderBottom(IHTMLStyle *iface, BSTR *p)
964 {
965     HTMLStyle *This = HTMLSTYLE_THIS(iface);
966     FIXME("(%p)->(%p)\n", This, p);
967     return E_NOTIMPL;
968 }
969
970 static HRESULT WINAPI HTMLStyle_put_borderLeft(IHTMLStyle *iface, BSTR v)
971 {
972     HTMLStyle *This = HTMLSTYLE_THIS(iface);
973
974     TRACE("(%p)->(%s)\n", This, debugstr_w(v));
975
976     return set_style_attr(This, attrBorderLeft, v, ATTR_FIX_PX);
977 }
978
979 static HRESULT WINAPI HTMLStyle_get_borderLeft(IHTMLStyle *iface, BSTR *p)
980 {
981     HTMLStyle *This = HTMLSTYLE_THIS(iface);
982     FIXME("(%p)->(%p)\n", This, p);
983     return E_NOTIMPL;
984 }
985
986 static HRESULT WINAPI HTMLStyle_put_borderColor(IHTMLStyle *iface, BSTR v)
987 {
988     HTMLStyle *This = HTMLSTYLE_THIS(iface);
989     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
990     return E_NOTIMPL;
991 }
992
993 static HRESULT WINAPI HTMLStyle_get_borderColor(IHTMLStyle *iface, BSTR *p)
994 {
995     HTMLStyle *This = HTMLSTYLE_THIS(iface);
996     FIXME("(%p)->(%p)\n", This, p);
997     return E_NOTIMPL;
998 }
999
1000 static HRESULT WINAPI HTMLStyle_put_borderTopColor(IHTMLStyle *iface, VARIANT v)
1001 {
1002     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1003     FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1004     return E_NOTIMPL;
1005 }
1006
1007 static HRESULT WINAPI HTMLStyle_get_borderTopColor(IHTMLStyle *iface, VARIANT *p)
1008 {
1009     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1010     FIXME("(%p)->(%p)\n", This, p);
1011     return E_NOTIMPL;
1012 }
1013
1014 static HRESULT WINAPI HTMLStyle_put_borderRightColor(IHTMLStyle *iface, VARIANT v)
1015 {
1016     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1017     FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1018     return E_NOTIMPL;
1019 }
1020
1021 static HRESULT WINAPI HTMLStyle_get_borderRightColor(IHTMLStyle *iface, VARIANT *p)
1022 {
1023     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1024     FIXME("(%p)->(%p)\n", This, p);
1025     return E_NOTIMPL;
1026 }
1027
1028 static HRESULT WINAPI HTMLStyle_put_borderBottomColor(IHTMLStyle *iface, VARIANT v)
1029 {
1030     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1031     FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1032     return E_NOTIMPL;
1033 }
1034
1035 static HRESULT WINAPI HTMLStyle_get_borderBottomColor(IHTMLStyle *iface, VARIANT *p)
1036 {
1037     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1038     FIXME("(%p)->(%p)\n", This, p);
1039     return E_NOTIMPL;
1040 }
1041
1042 static HRESULT WINAPI HTMLStyle_put_borderLeftColor(IHTMLStyle *iface, VARIANT v)
1043 {
1044     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1045     FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1046     return E_NOTIMPL;
1047 }
1048
1049 static HRESULT WINAPI HTMLStyle_get_borderLeftColor(IHTMLStyle *iface, VARIANT *p)
1050 {
1051     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1052     FIXME("(%p)->(%p)\n", This, p);
1053     return E_NOTIMPL;
1054 }
1055
1056 static HRESULT WINAPI HTMLStyle_put_borderWidth(IHTMLStyle *iface, BSTR v)
1057 {
1058     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1059     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1060     return E_NOTIMPL;
1061 }
1062
1063 static HRESULT WINAPI HTMLStyle_get_borderWidth(IHTMLStyle *iface, BSTR *p)
1064 {
1065     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1066     FIXME("(%p)->(%p)\n", This, p);
1067     return E_NOTIMPL;
1068 }
1069
1070 static HRESULT WINAPI HTMLStyle_put_borderTopWidth(IHTMLStyle *iface, VARIANT v)
1071 {
1072     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1073     FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1074     return E_NOTIMPL;
1075 }
1076
1077 static HRESULT WINAPI HTMLStyle_get_borderTopWidth(IHTMLStyle *iface, VARIANT *p)
1078 {
1079     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1080     FIXME("(%p)->(%p)\n", This, p);
1081     return E_NOTIMPL;
1082 }
1083
1084 static HRESULT WINAPI HTMLStyle_put_borderRightWidth(IHTMLStyle *iface, VARIANT v)
1085 {
1086     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1087     FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1088     return E_NOTIMPL;
1089 }
1090
1091 static HRESULT WINAPI HTMLStyle_get_borderRightWidth(IHTMLStyle *iface, VARIANT *p)
1092 {
1093     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1094     FIXME("(%p)->(%p)\n", This, p);
1095     return E_NOTIMPL;
1096 }
1097
1098 static HRESULT WINAPI HTMLStyle_put_borderBottomWidth(IHTMLStyle *iface, VARIANT v)
1099 {
1100     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1101     FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1102     return E_NOTIMPL;
1103 }
1104
1105 static HRESULT WINAPI HTMLStyle_get_borderBottomWidth(IHTMLStyle *iface, VARIANT *p)
1106 {
1107     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1108     FIXME("(%p)->(%p)\n", This, p);
1109     return E_NOTIMPL;
1110 }
1111
1112 static HRESULT WINAPI HTMLStyle_put_borderLeftWidth(IHTMLStyle *iface, VARIANT v)
1113 {
1114     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1115     FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1116     return E_NOTIMPL;
1117 }
1118
1119 static HRESULT WINAPI HTMLStyle_get_borderLeftWidth(IHTMLStyle *iface, VARIANT *p)
1120 {
1121     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1122     FIXME("(%p)->(%p)\n", This, p);
1123     return E_NOTIMPL;
1124 }
1125
1126 static HRESULT WINAPI HTMLStyle_put_borderStyle(IHTMLStyle *iface, BSTR v)
1127 {
1128     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1129     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1130     return E_NOTIMPL;
1131 }
1132
1133 static HRESULT WINAPI HTMLStyle_get_borderStyle(IHTMLStyle *iface, BSTR *p)
1134 {
1135     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1136     FIXME("(%p)->(%p)\n", This, p);
1137     return E_NOTIMPL;
1138 }
1139
1140 static HRESULT WINAPI HTMLStyle_put_borderTopStyle(IHTMLStyle *iface, BSTR v)
1141 {
1142     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1143     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1144     return E_NOTIMPL;
1145 }
1146
1147 static HRESULT WINAPI HTMLStyle_get_borderTopStyle(IHTMLStyle *iface, BSTR *p)
1148 {
1149     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1150     FIXME("(%p)->(%p)\n", This, p);
1151     return E_NOTIMPL;
1152 }
1153
1154 static HRESULT WINAPI HTMLStyle_put_borderRightStyle(IHTMLStyle *iface, BSTR v)
1155 {
1156     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1157     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1158     return E_NOTIMPL;
1159 }
1160
1161 static HRESULT WINAPI HTMLStyle_get_borderRightStyle(IHTMLStyle *iface, BSTR *p)
1162 {
1163     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1164     FIXME("(%p)->(%p)\n", This, p);
1165     return E_NOTIMPL;
1166 }
1167
1168 static HRESULT WINAPI HTMLStyle_put_borderBottomStyle(IHTMLStyle *iface, BSTR v)
1169 {
1170     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1171     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1172     return E_NOTIMPL;
1173 }
1174
1175 static HRESULT WINAPI HTMLStyle_get_borderBottomStyle(IHTMLStyle *iface, BSTR *p)
1176 {
1177     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1178     FIXME("(%p)->(%p)\n", This, p);
1179     return E_NOTIMPL;
1180 }
1181
1182 static HRESULT WINAPI HTMLStyle_put_borderLeftStyle(IHTMLStyle *iface, BSTR v)
1183 {
1184     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1185     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1186     return E_NOTIMPL;
1187 }
1188
1189 static HRESULT WINAPI HTMLStyle_get_borderLeftStyle(IHTMLStyle *iface, BSTR *p)
1190 {
1191     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1192     FIXME("(%p)->(%p)\n", This, p);
1193     return E_NOTIMPL;
1194 }
1195
1196 static HRESULT WINAPI HTMLStyle_put_width(IHTMLStyle *iface, VARIANT v)
1197 {
1198     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1199     FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1200     return E_NOTIMPL;
1201 }
1202
1203 static HRESULT WINAPI HTMLStyle_get_width(IHTMLStyle *iface, VARIANT *p)
1204 {
1205     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1206     FIXME("(%p)->(%p)\n", This, p);
1207     return E_NOTIMPL;
1208 }
1209
1210 static HRESULT WINAPI HTMLStyle_put_height(IHTMLStyle *iface, VARIANT v)
1211 {
1212     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1213     FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1214     return E_NOTIMPL;
1215 }
1216
1217 static HRESULT WINAPI HTMLStyle_get_height(IHTMLStyle *iface, VARIANT *p)
1218 {
1219     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1220     FIXME("(%p)->(%p)\n", This, p);
1221     return E_NOTIMPL;
1222 }
1223
1224 static HRESULT WINAPI HTMLStyle_put_styleFloat(IHTMLStyle *iface, BSTR v)
1225 {
1226     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1227     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1228     return E_NOTIMPL;
1229 }
1230
1231 static HRESULT WINAPI HTMLStyle_get_styleFloat(IHTMLStyle *iface, BSTR *p)
1232 {
1233     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1234     FIXME("(%p)->(%p)\n", This, p);
1235     return E_NOTIMPL;
1236 }
1237
1238 static HRESULT WINAPI HTMLStyle_put_clear(IHTMLStyle *iface, BSTR v)
1239 {
1240     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1241     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1242     return E_NOTIMPL;
1243 }
1244
1245 static HRESULT WINAPI HTMLStyle_get_clear(IHTMLStyle *iface, BSTR *p)
1246 {
1247     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1248     FIXME("(%p)->(%p)\n", This, p);
1249     return E_NOTIMPL;
1250 }
1251
1252 static HRESULT WINAPI HTMLStyle_put_display(IHTMLStyle *iface, BSTR v)
1253 {
1254     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1255
1256     TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1257
1258     return set_style_attr(This, attrDisplay, v, 0);
1259 }
1260
1261 static HRESULT WINAPI HTMLStyle_get_display(IHTMLStyle *iface, BSTR *p)
1262 {
1263     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1264
1265     TRACE("(%p)->(%p)\n", This, p);
1266
1267     return get_style_attr(This, attrDisplay, p);
1268 }
1269
1270 static HRESULT WINAPI HTMLStyle_put_visibility(IHTMLStyle *iface, BSTR v)
1271 {
1272     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1273
1274     TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1275
1276     return set_style_attr(This, attrVisibility, v, 0);
1277 }
1278
1279 static HRESULT WINAPI HTMLStyle_get_visibility(IHTMLStyle *iface, BSTR *p)
1280 {
1281     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1282
1283     TRACE("(%p)->(%p)\n", This, p);
1284
1285     return get_style_attr(This, attrVisibility, p);
1286 }
1287
1288 static HRESULT WINAPI HTMLStyle_put_listStyleType(IHTMLStyle *iface, BSTR v)
1289 {
1290     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1291     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1292     return E_NOTIMPL;
1293 }
1294
1295 static HRESULT WINAPI HTMLStyle_get_listStyleType(IHTMLStyle *iface, BSTR *p)
1296 {
1297     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1298     FIXME("(%p)->(%p)\n", This, p);
1299     return E_NOTIMPL;
1300 }
1301
1302 static HRESULT WINAPI HTMLStyle_put_listStylePosition(IHTMLStyle *iface, BSTR v)
1303 {
1304     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1305     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1306     return E_NOTIMPL;
1307 }
1308
1309 static HRESULT WINAPI HTMLStyle_get_listStylePosition(IHTMLStyle *iface, BSTR *p)
1310 {
1311     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1312     FIXME("(%p)->(%p)\n", This, p);
1313     return E_NOTIMPL;
1314 }
1315
1316 static HRESULT WINAPI HTMLStyle_put_listStyleImage(IHTMLStyle *iface, BSTR v)
1317 {
1318     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1319     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1320     return E_NOTIMPL;
1321 }
1322
1323 static HRESULT WINAPI HTMLStyle_get_listStyleImage(IHTMLStyle *iface, BSTR *p)
1324 {
1325     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1326     FIXME("(%p)->(%p)\n", This, p);
1327     return E_NOTIMPL;
1328 }
1329
1330 static HRESULT WINAPI HTMLStyle_put_listStyle(IHTMLStyle *iface, BSTR v)
1331 {
1332     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1333     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1334     return E_NOTIMPL;
1335 }
1336
1337 static HRESULT WINAPI HTMLStyle_get_listStyle(IHTMLStyle *iface, BSTR *p)
1338 {
1339     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1340     FIXME("(%p)->(%p)\n", This, p);
1341     return E_NOTIMPL;
1342 }
1343
1344 static HRESULT WINAPI HTMLStyle_put_whiteSpace(IHTMLStyle *iface, BSTR v)
1345 {
1346     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1347     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1348     return E_NOTIMPL;
1349 }
1350
1351 static HRESULT WINAPI HTMLStyle_get_whiteSpace(IHTMLStyle *iface, BSTR *p)
1352 {
1353     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1354     FIXME("(%p)->(%p)\n", This, p);
1355     return E_NOTIMPL;
1356 }
1357
1358 static HRESULT WINAPI HTMLStyle_put_top(IHTMLStyle *iface, VARIANT v)
1359 {
1360     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1361     FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1362     return E_NOTIMPL;
1363 }
1364
1365 static HRESULT WINAPI HTMLStyle_get_top(IHTMLStyle *iface, VARIANT *p)
1366 {
1367     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1368     FIXME("(%p)->(%p)\n", This, p);
1369     return E_NOTIMPL;
1370 }
1371
1372 static HRESULT WINAPI HTMLStyle_put_left(IHTMLStyle *iface, VARIANT v)
1373 {
1374     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1375     FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1376     return E_NOTIMPL;
1377 }
1378
1379 static HRESULT WINAPI HTMLStyle_get_left(IHTMLStyle *iface, VARIANT *p)
1380 {
1381     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1382     FIXME("(%p)->(%p)\n", This, p);
1383     return E_NOTIMPL;
1384 }
1385
1386 static HRESULT WINAPI HTMLStyle_get_position(IHTMLStyle *iface, BSTR *p)
1387 {
1388     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1389     FIXME("(%p)->(%p)\n", This, p);
1390     return E_NOTIMPL;
1391 }
1392
1393 static HRESULT WINAPI HTMLStyle_put_zIndex(IHTMLStyle *iface, VARIANT v)
1394 {
1395     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1396     FIXME("(%p)->(v%d)\n", This, V_VT(&v));
1397     return E_NOTIMPL;
1398 }
1399
1400 static HRESULT WINAPI HTMLStyle_get_zIndex(IHTMLStyle *iface, VARIANT *p)
1401 {
1402     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1403     FIXME("(%p)->(%p)\n", This, p);
1404     return E_NOTIMPL;
1405 }
1406
1407 static HRESULT WINAPI HTMLStyle_put_overflow(IHTMLStyle *iface, BSTR v)
1408 {
1409     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1410     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1411     return E_NOTIMPL;
1412 }
1413
1414 static HRESULT WINAPI HTMLStyle_get_overflow(IHTMLStyle *iface, BSTR *p)
1415 {
1416     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1417     FIXME("(%p)->(%p)\n", This, p);
1418     return E_NOTIMPL;
1419 }
1420
1421 static HRESULT WINAPI HTMLStyle_put_pageBreakBefore(IHTMLStyle *iface, BSTR v)
1422 {
1423     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1424     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1425     return E_NOTIMPL;
1426 }
1427
1428 static HRESULT WINAPI HTMLStyle_get_pageBreakBefore(IHTMLStyle *iface, BSTR *p)
1429 {
1430     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1431     FIXME("(%p)->(%p)\n", This, p);
1432     return E_NOTIMPL;
1433 }
1434
1435 static HRESULT WINAPI HTMLStyle_put_pageBreakAfter(IHTMLStyle *iface, BSTR v)
1436 {
1437     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1438     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1439     return E_NOTIMPL;
1440 }
1441
1442 static HRESULT WINAPI HTMLStyle_get_pageBreakAfter(IHTMLStyle *iface, BSTR *p)
1443 {
1444     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1445     FIXME("(%p)->(%p)\n", This, p);
1446     return E_NOTIMPL;
1447 }
1448
1449 static HRESULT WINAPI HTMLStyle_put_cssText(IHTMLStyle *iface, BSTR v)
1450 {
1451     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1452     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1453     return E_NOTIMPL;
1454 }
1455
1456 static HRESULT WINAPI HTMLStyle_get_cssText(IHTMLStyle *iface, BSTR *p)
1457 {
1458     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1459     FIXME("(%p)->(%p)\n", This, p);
1460     return E_NOTIMPL;
1461 }
1462
1463 static HRESULT WINAPI HTMLStyle_put_pixelTop(IHTMLStyle *iface, long v)
1464 {
1465     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1466     FIXME("(%p)->()\n", This);
1467     return E_NOTIMPL;
1468 }
1469
1470 static HRESULT WINAPI HTMLStyle_get_pixelTop(IHTMLStyle *iface, long *p)
1471 {
1472     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1473     FIXME("(%p)->()\n", This);
1474     return E_NOTIMPL;
1475 }
1476
1477 static HRESULT WINAPI HTMLStyle_put_pixelLeft(IHTMLStyle *iface, long v)
1478 {
1479     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1480     FIXME("(%p)->()\n", This);
1481     return E_NOTIMPL;
1482 }
1483
1484 static HRESULT WINAPI HTMLStyle_get_pixelLeft(IHTMLStyle *iface, long *p)
1485 {
1486     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1487     FIXME("(%p)->()\n", This);
1488     return E_NOTIMPL;
1489 }
1490
1491 static HRESULT WINAPI HTMLStyle_put_pixelWidth(IHTMLStyle *iface, long v)
1492 {
1493     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1494     FIXME("(%p)->()\n", This);
1495     return E_NOTIMPL;
1496 }
1497
1498 static HRESULT WINAPI HTMLStyle_get_pixelWidth(IHTMLStyle *iface, long *p)
1499 {
1500     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1501     FIXME("(%p)->()\n", This);
1502     return E_NOTIMPL;
1503 }
1504
1505 static HRESULT WINAPI HTMLStyle_put_pixelHeight(IHTMLStyle *iface, long v)
1506 {
1507     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1508     FIXME("(%p)->()\n", This);
1509     return E_NOTIMPL;
1510 }
1511
1512 static HRESULT WINAPI HTMLStyle_get_pixelHeight(IHTMLStyle *iface, long *p)
1513 {
1514     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1515     FIXME("(%p)->()\n", This);
1516     return E_NOTIMPL;
1517 }
1518
1519 static HRESULT WINAPI HTMLStyle_put_posTop(IHTMLStyle *iface, float v)
1520 {
1521     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1522     FIXME("(%p)->()\n", This);
1523     return E_NOTIMPL;
1524 }
1525
1526 static HRESULT WINAPI HTMLStyle_get_posTop(IHTMLStyle *iface, float *p)
1527 {
1528     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1529     FIXME("(%p)->()\n", This);
1530     return E_NOTIMPL;
1531 }
1532
1533 static HRESULT WINAPI HTMLStyle_put_posLeft(IHTMLStyle *iface, float v)
1534 {
1535     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1536     FIXME("(%p)->()\n", This);
1537     return E_NOTIMPL;
1538 }
1539
1540 static HRESULT WINAPI HTMLStyle_get_posLeft(IHTMLStyle *iface, float *p)
1541 {
1542     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1543     FIXME("(%p)->()\n", This);
1544     return E_NOTIMPL;
1545 }
1546
1547 static HRESULT WINAPI HTMLStyle_put_posWidth(IHTMLStyle *iface, float v)
1548 {
1549     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1550     FIXME("(%p)->()\n", This);
1551     return E_NOTIMPL;
1552 }
1553
1554 static HRESULT WINAPI HTMLStyle_get_posWidth(IHTMLStyle *iface, float *p)
1555 {
1556     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1557     FIXME("(%p)->()\n", This);
1558     return E_NOTIMPL;
1559 }
1560
1561 static HRESULT WINAPI HTMLStyle_put_posHeight(IHTMLStyle *iface, float v)
1562 {
1563     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1564     FIXME("(%p)->()\n", This);
1565     return E_NOTIMPL;
1566 }
1567
1568 static HRESULT WINAPI HTMLStyle_get_posHeight(IHTMLStyle *iface, float *p)
1569 {
1570     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1571     FIXME("(%p)->()\n", This);
1572     return E_NOTIMPL;
1573 }
1574
1575 static HRESULT WINAPI HTMLStyle_put_cursor(IHTMLStyle *iface, BSTR v)
1576 {
1577     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1578     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1579     return E_NOTIMPL;
1580 }
1581
1582 static HRESULT WINAPI HTMLStyle_get_cursor(IHTMLStyle *iface, BSTR *p)
1583 {
1584     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1585     FIXME("(%p)->(%p)\n", This, p);
1586     return E_NOTIMPL;
1587 }
1588
1589 static HRESULT WINAPI HTMLStyle_put_clip(IHTMLStyle *iface, BSTR v)
1590 {
1591     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1592     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1593     return E_NOTIMPL;
1594 }
1595
1596 static HRESULT WINAPI HTMLStyle_get_clip(IHTMLStyle *iface, BSTR *p)
1597 {
1598     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1599     FIXME("(%p)->(%p)\n", This, p);
1600     return E_NOTIMPL;
1601 }
1602
1603 static HRESULT WINAPI HTMLStyle_put_filter(IHTMLStyle *iface, BSTR v)
1604 {
1605     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1606     FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1607     return E_NOTIMPL;
1608 }
1609
1610 static HRESULT WINAPI HTMLStyle_get_filter(IHTMLStyle *iface, BSTR *p)
1611 {
1612     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1613     FIXME("(%p)->(%p)\n", This, p);
1614     return E_NOTIMPL;
1615 }
1616
1617 static HRESULT WINAPI HTMLStyle_setAttribute(IHTMLStyle *iface, BSTR strAttributeName,
1618         VARIANT AttributeValue, LONG lFlags)
1619 {
1620     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1621     FIXME("(%p)->(%s v%d %08x)\n", This, debugstr_w(strAttributeName),
1622           V_VT(&AttributeValue), lFlags);
1623     return E_NOTIMPL;
1624 }
1625
1626 static HRESULT WINAPI HTMLStyle_getAttribute(IHTMLStyle *iface, BSTR strAttributeName,
1627         LONG lFlags, VARIANT *AttributeValue)
1628 {
1629     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1630     FIXME("(%p)->(%s %08x %p)\n", This, debugstr_w(strAttributeName),
1631          lFlags, AttributeValue);
1632     return E_NOTIMPL;
1633 }
1634
1635 static HRESULT WINAPI HTMLStyle_removeAttribute(IHTMLStyle *iface, BSTR strAttributeName,
1636                                                 LONG lFlags, VARIANT_BOOL *pfSuccess)
1637 {
1638     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1639     FIXME("(%p)->(%s %08x %p)\n", This, debugstr_w(strAttributeName),
1640          lFlags, pfSuccess);
1641     return E_NOTIMPL;
1642 }
1643
1644 static HRESULT WINAPI HTMLStyle_toString(IHTMLStyle *iface, BSTR *String)
1645 {
1646     HTMLStyle *This = HTMLSTYLE_THIS(iface);
1647     FIXME("(%p)->(%p)\n", This, String);
1648     return E_NOTIMPL;
1649 }
1650
1651 static const IHTMLStyleVtbl HTMLStyleVtbl = {
1652     HTMLStyle_QueryInterface,
1653     HTMLStyle_AddRef,
1654     HTMLStyle_Release,
1655     HTMLStyle_GetTypeInfoCount,
1656     HTMLStyle_GetTypeInfo,
1657     HTMLStyle_GetIDsOfNames,
1658     HTMLStyle_Invoke,
1659     HTMLStyle_put_fontFamily,
1660     HTMLStyle_get_fontFamily,
1661     HTMLStyle_put_fontStyle,
1662     HTMLStyle_get_fontStyle,
1663     HTMLStyle_put_fontVariant,
1664     HTMLStyle_get_fontVariant,
1665     HTMLStyle_put_fontWeight,
1666     HTMLStyle_get_fontWeight,
1667     HTMLStyle_put_fontSize,
1668     HTMLStyle_get_fontSize,
1669     HTMLStyle_put_font,
1670     HTMLStyle_get_font,
1671     HTMLStyle_put_color,
1672     HTMLStyle_get_color,
1673     HTMLStyle_put_background,
1674     HTMLStyle_get_background,
1675     HTMLStyle_put_backgroundColor,
1676     HTMLStyle_get_backgroundColor,
1677     HTMLStyle_put_backgroundImage,
1678     HTMLStyle_get_backgroundImage,
1679     HTMLStyle_put_backgroundRepeat,
1680     HTMLStyle_get_backgroundRepeat,
1681     HTMLStyle_put_backgroundAttachment,
1682     HTMLStyle_get_backgroundAttachment,
1683     HTMLStyle_put_backgroundPosition,
1684     HTMLStyle_get_backgroundPosition,
1685     HTMLStyle_put_backgroundPositionX,
1686     HTMLStyle_get_backgroundPositionX,
1687     HTMLStyle_put_backgroundPositionY,
1688     HTMLStyle_get_backgroundPositionY,
1689     HTMLStyle_put_wordSpacing,
1690     HTMLStyle_get_wordSpacing,
1691     HTMLStyle_put_letterSpacing,
1692     HTMLStyle_get_letterSpacing,
1693     HTMLStyle_put_textDecoration,
1694     HTMLStyle_get_textDecoration,
1695     HTMLStyle_put_textDecorationNone,
1696     HTMLStyle_get_textDecorationNone,
1697     HTMLStyle_put_textDecorationUnderline,
1698     HTMLStyle_get_textDecorationUnderline,
1699     HTMLStyle_put_textDecorationOverline,
1700     HTMLStyle_get_textDecorationOverline,
1701     HTMLStyle_put_textDecorationLineThrough,
1702     HTMLStyle_get_textDecorationLineThrough,
1703     HTMLStyle_put_textDecorationBlink,
1704     HTMLStyle_get_textDecorationBlink,
1705     HTMLStyle_put_verticalAlign,
1706     HTMLStyle_get_verticalAlign,
1707     HTMLStyle_put_textTransform,
1708     HTMLStyle_get_textTransform,
1709     HTMLStyle_put_textAlign,
1710     HTMLStyle_get_textAlign,
1711     HTMLStyle_put_textIndent,
1712     HTMLStyle_get_textIndent,
1713     HTMLStyle_put_lineHeight,
1714     HTMLStyle_get_lineHeight,
1715     HTMLStyle_put_marginTop,
1716     HTMLStyle_get_marginTop,
1717     HTMLStyle_put_marginRight,
1718     HTMLStyle_get_marginRight,
1719     HTMLStyle_put_marginBottom,
1720     HTMLStyle_get_marginBottom,
1721     HTMLStyle_put_marginLeft,
1722     HTMLStyle_get_marginLeft,
1723     HTMLStyle_put_margin,
1724     HTMLStyle_get_margin,
1725     HTMLStyle_put_paddingTop,
1726     HTMLStyle_get_paddingTop,
1727     HTMLStyle_put_paddingRight,
1728     HTMLStyle_get_paddingRight,
1729     HTMLStyle_put_paddingBottom,
1730     HTMLStyle_get_paddingBottom,
1731     HTMLStyle_put_paddingLeft,
1732     HTMLStyle_get_paddingLeft,
1733     HTMLStyle_put_padding,
1734     HTMLStyle_get_padding,
1735     HTMLStyle_put_border,
1736     HTMLStyle_get_border,
1737     HTMLStyle_put_borderTop,
1738     HTMLStyle_get_borderTop,
1739     HTMLStyle_put_borderRight,
1740     HTMLStyle_get_borderRight,
1741     HTMLStyle_put_borderBottom,
1742     HTMLStyle_get_borderBottom,
1743     HTMLStyle_put_borderLeft,
1744     HTMLStyle_get_borderLeft,
1745     HTMLStyle_put_borderColor,
1746     HTMLStyle_get_borderColor,
1747     HTMLStyle_put_borderTopColor,
1748     HTMLStyle_get_borderTopColor,
1749     HTMLStyle_put_borderRightColor,
1750     HTMLStyle_get_borderRightColor,
1751     HTMLStyle_put_borderBottomColor,
1752     HTMLStyle_get_borderBottomColor,
1753     HTMLStyle_put_borderLeftColor,
1754     HTMLStyle_get_borderLeftColor,
1755     HTMLStyle_put_borderWidth,
1756     HTMLStyle_get_borderWidth,
1757     HTMLStyle_put_borderTopWidth,
1758     HTMLStyle_get_borderTopWidth,
1759     HTMLStyle_put_borderRightWidth,
1760     HTMLStyle_get_borderRightWidth,
1761     HTMLStyle_put_borderBottomWidth,
1762     HTMLStyle_get_borderBottomWidth,
1763     HTMLStyle_put_borderLeftWidth,
1764     HTMLStyle_get_borderLeftWidth,
1765     HTMLStyle_put_borderStyle,
1766     HTMLStyle_get_borderStyle,
1767     HTMLStyle_put_borderTopStyle,
1768     HTMLStyle_get_borderTopStyle,
1769     HTMLStyle_put_borderRightStyle,
1770     HTMLStyle_get_borderRightStyle,
1771     HTMLStyle_put_borderBottomStyle,
1772     HTMLStyle_get_borderBottomStyle,
1773     HTMLStyle_put_borderLeftStyle,
1774     HTMLStyle_get_borderLeftStyle,
1775     HTMLStyle_put_width,
1776     HTMLStyle_get_width,
1777     HTMLStyle_put_height,
1778     HTMLStyle_get_height,
1779     HTMLStyle_put_styleFloat,
1780     HTMLStyle_get_styleFloat,
1781     HTMLStyle_put_clear,
1782     HTMLStyle_get_clear,
1783     HTMLStyle_put_display,
1784     HTMLStyle_get_display,
1785     HTMLStyle_put_visibility,
1786     HTMLStyle_get_visibility,
1787     HTMLStyle_put_listStyleType,
1788     HTMLStyle_get_listStyleType,
1789     HTMLStyle_put_listStylePosition,
1790     HTMLStyle_get_listStylePosition,
1791     HTMLStyle_put_listStyleImage,
1792     HTMLStyle_get_listStyleImage,
1793     HTMLStyle_put_listStyle,
1794     HTMLStyle_get_listStyle,
1795     HTMLStyle_put_whiteSpace,
1796     HTMLStyle_get_whiteSpace,
1797     HTMLStyle_put_top,
1798     HTMLStyle_get_top,
1799     HTMLStyle_put_left,
1800     HTMLStyle_get_left,
1801     HTMLStyle_get_position,
1802     HTMLStyle_put_zIndex,
1803     HTMLStyle_get_zIndex,
1804     HTMLStyle_put_overflow,
1805     HTMLStyle_get_overflow,
1806     HTMLStyle_put_pageBreakBefore,
1807     HTMLStyle_get_pageBreakBefore,
1808     HTMLStyle_put_pageBreakAfter,
1809     HTMLStyle_get_pageBreakAfter,
1810     HTMLStyle_put_cssText,
1811     HTMLStyle_get_cssText,
1812     HTMLStyle_put_pixelTop,
1813     HTMLStyle_get_pixelTop,
1814     HTMLStyle_put_pixelLeft,
1815     HTMLStyle_get_pixelLeft,
1816     HTMLStyle_put_pixelWidth,
1817     HTMLStyle_get_pixelWidth,
1818     HTMLStyle_put_pixelHeight,
1819     HTMLStyle_get_pixelHeight,
1820     HTMLStyle_put_posTop,
1821     HTMLStyle_get_posTop,
1822     HTMLStyle_put_posLeft,
1823     HTMLStyle_get_posLeft,
1824     HTMLStyle_put_posWidth,
1825     HTMLStyle_get_posWidth,
1826     HTMLStyle_put_posHeight,
1827     HTMLStyle_get_posHeight,
1828     HTMLStyle_put_cursor,
1829     HTMLStyle_get_cursor,
1830     HTMLStyle_put_clip,
1831     HTMLStyle_get_clip,
1832     HTMLStyle_put_filter,
1833     HTMLStyle_get_filter,
1834     HTMLStyle_setAttribute,
1835     HTMLStyle_getAttribute,
1836     HTMLStyle_removeAttribute,
1837     HTMLStyle_toString
1838 };
1839
1840 IHTMLStyle *HTMLStyle_Create(nsIDOMCSSStyleDeclaration *nsstyle)
1841 {
1842     HTMLStyle *ret = heap_alloc(sizeof(HTMLStyle));
1843
1844     ret->lpHTMLStyleVtbl = &HTMLStyleVtbl;
1845     ret->ref = 1;
1846     ret->nsstyle = nsstyle;
1847
1848     nsIDOMCSSStyleDeclaration_AddRef(nsstyle);
1849
1850     return HTMLSTYLE(ret);
1851 }