htmlstyle.c 330 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
/*
 * Copyright 2006 Jacek Caban for CodeWeavers
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
 */

#include <stdarg.h>
20
#include <math.h>
21 22 23 24 25 26 27

#define COBJMACROS

#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "ole2.h"
28
#include "mshtmdid.h"
29

30 31 32
#include "mshtml_private.h"
#include "htmlstyle.h"

33 34 35 36
#include "wine/debug.h"

WINE_DEFAULT_DEBUG_CHANNEL(mshtml);

37
static const WCHAR *font_style_values[] = {
38 39 40
    L"italic",
    L"normal",
    L"oblique",
41 42 43
    NULL
};

44
static const WCHAR *font_variant_values[] = {
45 46
    L"small-caps",
    L"normal",
47 48 49
    NULL
};

50
static const WCHAR *font_weight_values[] = {
51 52 53 54 55 56 57 58 59 60 61 62 63
    L"100",
    L"200",
    L"300",
    L"400",
    L"500",
    L"600",
    L"700",
    L"800",
    L"900",
    L"bold",
    L"bolder",
    L"lighter",
    L"normal",
64 65 66
    NULL
};

67
static const WCHAR *background_repeat_values[] = {
68 69 70 71
    L"no-repeat",
    L"repeat",
    L"repeat-x",
    L"repeat-y",
72 73 74
    NULL
};

75
static const WCHAR *text_decoration_values[] = {
76 77 78 79 80
    L"blink",
    L"line-through",
    L"none",
    L"overline",
    L"underline",
81 82 83
    NULL
};

84
static const WCHAR *border_style_values[] = {
85 86 87 88 89 90 91 92 93
    L"dashed",
    L"dotted",
    L"double",
    L"groove",
    L"inset",
    L"none",
    L"outset",
    L"ridge",
    L"solid",
94 95 96
    NULL
};

97
static const WCHAR *overflow_values[] = {
98 99 100 101
    L"auto",
    L"hidden",
    L"scroll",
    L"visible",
102 103 104
    NULL
};

105 106 107 108 109 110
#define ATTR_FIX_PX         0x0001
#define ATTR_FIX_URL        0x0002
#define ATTR_STR_TO_INT     0x0004
#define ATTR_HEX_INT        0x0008
#define ATTR_REMOVE_COMMA   0x0010
#define ATTR_NO_NULL        0x0020
111
#define ATTR_COMPAT_IE10    0x0040
112

113
typedef struct {
114 115
    const WCHAR *name;
    DISPID dispid;
116
    DISPID compat_dispid;
117
    unsigned flags;
118
    const WCHAR **allowed_values;
119 120 121
} style_tbl_entry_t;

static const style_tbl_entry_t style_tbl[] = {
122 123 124 125 126 127
    {
        L"animation",
        DISPID_IHTMLCSSSTYLEDECLARATION2_ANIMATION,
        DISPID_UNKNOWN,
        ATTR_COMPAT_IE10
    },
128 129
    {
        L"animation-name",
130
        DISPID_IHTMLCSSSTYLEDECLARATION2_ANIMATIONNAME,
131 132
        DISPID_UNKNOWN,
        ATTR_COMPAT_IE10
133
    },
134
    {
135
        L"background",
136
        DISPID_IHTMLCSSSTYLEDECLARATION_BACKGROUND,
137
        DISPID_A_BACKGROUND
138 139
    },
    {
140
        L"background-attachment",
141
        DISPID_IHTMLCSSSTYLEDECLARATION_BACKGROUNDATTACHMENT,
142
        DISPID_A_BACKGROUNDATTACHMENT
143 144
    },
    {
145
        L"background-clip",
146 147 148 149
        DISPID_IHTMLCSSSTYLEDECLARATION_BACKGROUNDCLIP,
        DISPID_UNKNOWN
    },
    {
150
        L"background-color",
151
        DISPID_IHTMLCSSSTYLEDECLARATION_BACKGROUNDCOLOR,
152
        DISPID_BACKCOLOR,
153 154 155
        ATTR_HEX_INT
    },
    {
156
        L"background-image",
157
        DISPID_IHTMLCSSSTYLEDECLARATION_BACKGROUNDIMAGE,
158
        DISPID_A_BACKGROUNDIMAGE,
159 160 161
        ATTR_FIX_URL
    },
    {
162
        L"background-position",
163
        DISPID_IHTMLCSSSTYLEDECLARATION_BACKGROUNDPOSITION,
164
        DISPID_A_BACKGROUNDPOSITION
165 166
    },
    {
167
        L"background-position-x",
168
        DISPID_IHTMLCSSSTYLEDECLARATION_BACKGROUNDPOSITIONX,
169
        DISPID_A_BACKGROUNDPOSX,
170 171 172
        ATTR_FIX_PX
    },
    {
173
        L"background-position-y",
174
        DISPID_IHTMLCSSSTYLEDECLARATION_BACKGROUNDPOSITIONY,
175
        DISPID_A_BACKGROUNDPOSY,
176 177 178
        ATTR_FIX_PX
    },
    {
179
        L"background-repeat",
180
        DISPID_IHTMLCSSSTYLEDECLARATION_BACKGROUNDREPEAT,
181
        DISPID_A_BACKGROUNDREPEAT,
182 183 184
        0, background_repeat_values
    },
    {
185
        L"border",
186
        DISPID_IHTMLCSSSTYLEDECLARATION_BORDER,
187
        DISPID_A_BORDER
188 189
    },
    {
190
        L"border-bottom",
191
        DISPID_IHTMLCSSSTYLEDECLARATION_BORDERBOTTOM,
192
        DISPID_A_BORDERBOTTOM,
193 194 195
        ATTR_FIX_PX
    },
    {
196
        L"border-bottom-color",
197
        DISPID_IHTMLCSSSTYLEDECLARATION_BORDERBOTTOMCOLOR,
198
        DISPID_A_BORDERBOTTOMCOLOR,
199 200 201
        ATTR_HEX_INT
    },
    {
202
        L"border-bottom-style",
203
        DISPID_IHTMLCSSSTYLEDECLARATION_BORDERBOTTOMSTYLE,
204
        DISPID_A_BORDERBOTTOMSTYLE,
205 206 207
        0, border_style_values
    },
    {
208
        L"border-bottom-width",
209
        DISPID_IHTMLCSSSTYLEDECLARATION_BORDERBOTTOMWIDTH,
210
        DISPID_A_BORDERBOTTOMWIDTH,
211 212
        ATTR_FIX_PX
    },
213
    {
214
        L"border-collapse",
215
        DISPID_IHTMLCSSSTYLEDECLARATION_BORDERCOLLAPSE,
216
        DISPID_A_BORDERCOLLAPSE
217
    },
218
    {
219
        L"border-color",
220
        DISPID_IHTMLCSSSTYLEDECLARATION_BORDERCOLOR,
221
        DISPID_A_BORDERCOLOR
222 223
    },
    {
224
        L"border-left",
225
        DISPID_IHTMLCSSSTYLEDECLARATION_BORDERLEFT,
226
        DISPID_A_BORDERLEFT,
227 228 229
        ATTR_FIX_PX
    },
    {
230
        L"border-left-color",
231
        DISPID_IHTMLCSSSTYLEDECLARATION_BORDERLEFTCOLOR,
232
        DISPID_A_BORDERLEFTCOLOR,
233 234 235
        ATTR_HEX_INT
    },
    {
236
        L"border-left-style",
237
        DISPID_IHTMLCSSSTYLEDECLARATION_BORDERLEFTSTYLE,
238
        DISPID_A_BORDERLEFTSTYLE,
239 240 241
        0, border_style_values
    },
    {
242
        L"border-left-width",
243
        DISPID_IHTMLCSSSTYLEDECLARATION_BORDERLEFTWIDTH,
244
        DISPID_A_BORDERLEFTWIDTH,
245 246 247
        ATTR_FIX_PX
    },
    {
248
        L"border-right",
249
        DISPID_IHTMLCSSSTYLEDECLARATION_BORDERRIGHT,
250
        DISPID_A_BORDERRIGHT,
251 252 253
        ATTR_FIX_PX
    },
    {
254
        L"border-right-color",
255
        DISPID_IHTMLCSSSTYLEDECLARATION_BORDERRIGHTCOLOR,
256
        DISPID_A_BORDERRIGHTCOLOR,
257 258 259
        ATTR_HEX_INT
    },
    {
260
        L"border-right-style",
261
        DISPID_IHTMLCSSSTYLEDECLARATION_BORDERRIGHTSTYLE,
262
        DISPID_A_BORDERRIGHTSTYLE,
263 264 265
        0, border_style_values
    },
    {
266
        L"border-right-width",
267
        DISPID_IHTMLCSSSTYLEDECLARATION_BORDERRIGHTWIDTH,
268
        DISPID_A_BORDERRIGHTWIDTH,
269 270
        ATTR_FIX_PX
    },
271
    {
272
        L"border-spacing",
273
        DISPID_IHTMLCSSSTYLEDECLARATION_BORDERSPACING,
274
        DISPID_A_BORDERSPACING
275
    },
276
    {
277
        L"border-style",
278
        DISPID_IHTMLCSSSTYLEDECLARATION_BORDERSTYLE,
279
        DISPID_A_BORDERSTYLE
280 281
    },
    {
282
        L"border-top",
283
        DISPID_IHTMLCSSSTYLEDECLARATION_BORDERTOP,
284
        DISPID_A_BORDERTOP,
285 286 287
        ATTR_FIX_PX
    },
    {
288
        L"border-top-color",
289
        DISPID_IHTMLCSSSTYLEDECLARATION_BORDERTOPCOLOR,
290
        DISPID_A_BORDERTOPCOLOR,
291 292 293
        ATTR_HEX_INT
    },
    {
294
        L"border-top-style",
295
        DISPID_IHTMLCSSSTYLEDECLARATION_BORDERTOPSTYLE,
296
        DISPID_A_BORDERTOPSTYLE,
297 298 299
        0, border_style_values
    },
    {
300
        L"border-top-width",
301
        DISPID_IHTMLCSSSTYLEDECLARATION_BORDERTOPWIDTH,
302
        DISPID_A_BORDERTOPWIDTH
303 304
    },
    {
305
        L"border-width",
306
        DISPID_IHTMLCSSSTYLEDECLARATION_BORDERWIDTH,
307
        DISPID_A_BORDERWIDTH
308 309
    },
    {
310
        L"bottom",
311
        DISPID_IHTMLCSSSTYLEDECLARATION_BOTTOM,
312
        STDPROPID_XOBJ_BOTTOM,
313 314 315
        ATTR_FIX_PX
    },
    {
316
        L"-moz-box-sizing",
317
        DISPID_IHTMLCSSSTYLEDECLARATION_BOXSIZING,
318
        DISPID_A_BOXSIZING
319 320
    },
    {
321
        L"clear",
322
        DISPID_IHTMLCSSSTYLEDECLARATION_CLEAR,
323
        DISPID_A_CLEAR
324 325
    },
    {
326
        L"clip",
327
        DISPID_IHTMLCSSSTYLEDECLARATION_CLIP,
328
        DISPID_A_CLIP,
329 330 331
        ATTR_REMOVE_COMMA
    },
    {
332
        L"color",
333
        DISPID_IHTMLCSSSTYLEDECLARATION_COLOR,
334
        DISPID_A_COLOR,
335 336
        ATTR_HEX_INT
    },
337 338 339
    {
        L"column-count",
        DISPID_IHTMLCSSSTYLEDECLARATION2_COLUMNCOUNT,
340 341
        DISPID_UNKNOWN,
        ATTR_COMPAT_IE10
342
    },
343 344 345
    {
        L"column-fill",
        DISPID_IHTMLCSSSTYLEDECLARATION2_COLUMNFILL,
346 347
        DISPID_UNKNOWN,
        ATTR_COMPAT_IE10
348
    },
349 350 351
    {
        L"column-gap",
        DISPID_IHTMLCSSSTYLEDECLARATION2_COLUMNGAP,
352 353
        DISPID_UNKNOWN,
        ATTR_COMPAT_IE10
354
    },
355 356 357
    {
        L"column-rule",
        DISPID_IHTMLCSSSTYLEDECLARATION2_COLUMNRULE,
358 359
        DISPID_UNKNOWN,
        ATTR_COMPAT_IE10
360
    },
361 362 363
    {
        L"column-rule-color",
        DISPID_IHTMLCSSSTYLEDECLARATION2_COLUMNRULECOLOR,
364 365
        DISPID_UNKNOWN,
        ATTR_COMPAT_IE10
366
    },
367 368 369
    {
        L"column-rule-style",
        DISPID_IHTMLCSSSTYLEDECLARATION2_COLUMNRULESTYLE,
370 371
        DISPID_UNKNOWN,
        ATTR_COMPAT_IE10
372
    },
373 374 375
    {
        L"column-rule-width",
        DISPID_IHTMLCSSSTYLEDECLARATION2_COLUMNRULEWIDTH,
376 377
        DISPID_UNKNOWN,
        ATTR_COMPAT_IE10
378
    },
379 380 381
    {
        L"column-span",
        DISPID_IHTMLCSSSTYLEDECLARATION2_COLUMNSPAN,
382 383
        DISPID_UNKNOWN,
        ATTR_COMPAT_IE10
384
    },
385 386 387
    {
        L"column-width",
        DISPID_IHTMLCSSSTYLEDECLARATION2_COLUMNWIDTH,
388 389
        DISPID_UNKNOWN,
        ATTR_COMPAT_IE10
390
    },
391
    {
392
        L"cursor",
393
        DISPID_IHTMLCSSSTYLEDECLARATION_CURSOR,
394
        DISPID_A_CURSOR
395 396
    },
    {
397
        L"direction",
398
        DISPID_IHTMLCSSSTYLEDECLARATION_DIRECTION,
399
        DISPID_A_DIRECTION
400 401
    },
    {
402
        L"display",
403
        DISPID_IHTMLCSSSTYLEDECLARATION_DISPLAY,
404
        DISPID_A_DISPLAY
405 406
    },
    {
407
        L"filter",
408
        DISPID_IHTMLCSSSTYLEDECLARATION_FILTER,
409
        DISPID_A_FILTER
410 411
    },
    {
412
        L"float",
413
        DISPID_IHTMLCSSSTYLEDECLARATION_CSSFLOAT,
414
        DISPID_A_FLOAT
415 416
    },
    {
417
        L"font-family",
418
        DISPID_IHTMLCSSSTYLEDECLARATION_FONTFAMILY,
419
        DISPID_A_FONTFACE
420 421
    },
    {
422
        L"font-size",
423
        DISPID_IHTMLCSSSTYLEDECLARATION_FONTSIZE,
424
        DISPID_A_FONTSIZE,
425 426 427
        ATTR_FIX_PX
    },
    {
428
        L"font-style",
429
        DISPID_IHTMLCSSSTYLEDECLARATION_FONTSTYLE,
430
        DISPID_A_FONTSTYLE,
431 432 433
        0, font_style_values
    },
    {
434
        L"font-variant",
435
        DISPID_IHTMLCSSSTYLEDECLARATION_FONTVARIANT,
436
        DISPID_A_FONTVARIANT,
437 438 439
        0, font_variant_values
    },
    {
440
        L"font-weight",
441
        DISPID_IHTMLCSSSTYLEDECLARATION_FONTWEIGHT,
442
        DISPID_A_FONTWEIGHT,
443 444 445
        ATTR_STR_TO_INT, font_weight_values
    },
    {
446
        L"height",
447
        DISPID_IHTMLCSSSTYLEDECLARATION_HEIGHT,
448
        STDPROPID_XOBJ_HEIGHT,
449 450 451
        ATTR_FIX_PX
    },
    {
452
        L"left",
453
        DISPID_IHTMLCSSSTYLEDECLARATION_LEFT,
454
        STDPROPID_XOBJ_LEFT
455 456
    },
    {
457
        L"letter-spacing",
458
        DISPID_IHTMLCSSSTYLEDECLARATION_LETTERSPACING,
459
        DISPID_A_LETTERSPACING
460 461
    },
    {
462
        L"line-height",
463
        DISPID_IHTMLCSSSTYLEDECLARATION_LINEHEIGHT,
464
        DISPID_A_LINEHEIGHT
465 466
    },
    {
467
        L"list-style",
468
        DISPID_IHTMLCSSSTYLEDECLARATION_LISTSTYLE,
469
        DISPID_A_LISTSTYLE
470 471
    },
    {
472
        L"list-style-position",
473
        DISPID_IHTMLCSSSTYLEDECLARATION_LISTSTYLEPOSITION,
474
        DISPID_A_LISTSTYLEPOSITION
475 476
    },
    {
477
        L"list-style-type",
478
        DISPID_IHTMLCSSSTYLEDECLARATION_LISTSTYLETYPE,
479
        DISPID_A_LISTSTYLETYPE
480 481
    },
    {
482
        L"margin",
483
        DISPID_IHTMLCSSSTYLEDECLARATION_MARGIN,
484
        DISPID_A_MARGIN
485 486
    },
    {
487
        L"margin-bottom",
488
        DISPID_IHTMLCSSSTYLEDECLARATION_MARGINBOTTOM,
489
        DISPID_A_MARGINBOTTOM,
490 491 492
        ATTR_FIX_PX
    },
    {
493
        L"margin-left",
494
        DISPID_IHTMLCSSSTYLEDECLARATION_MARGINLEFT,
495
        DISPID_A_MARGINLEFT,
496 497 498
        ATTR_FIX_PX
    },
    {
499
        L"margin-right",
500
        DISPID_IHTMLCSSSTYLEDECLARATION_MARGINRIGHT,
501
        DISPID_A_MARGINRIGHT,
502 503 504
        ATTR_FIX_PX
    },
    {
505
        L"margin-top",
506
        DISPID_IHTMLCSSSTYLEDECLARATION_MARGINTOP,
507
        DISPID_A_MARGINTOP,
508 509 510
        ATTR_FIX_PX
    },
    {
511
        L"max-height",
512
        DISPID_IHTMLCSSSTYLEDECLARATION_MAXHEIGHT,
513
        DISPID_A_MAXHEIGHT,
514 515 516
        ATTR_FIX_PX
    },
    {
517
        L"max-width",
518
        DISPID_IHTMLCSSSTYLEDECLARATION_MAXWIDTH,
519
        DISPID_A_MAXWIDTH,
520 521 522
        ATTR_FIX_PX
    },
    {
523
        L"min-height",
524
        DISPID_IHTMLCSSSTYLEDECLARATION_MINHEIGHT,
525
        DISPID_A_MINHEIGHT
526 527
    },
    {
528
        L"min-width",
529
        DISPID_IHTMLCSSSTYLEDECLARATION_MINWIDTH,
530
        DISPID_A_MINWIDTH,
531 532 533
        ATTR_FIX_PX
    },
    {
534
        L"opacity",
535 536 537 538
        DISPID_IHTMLCSSSTYLEDECLARATION_OPACITY,
        DISPID_UNKNOWN
    },
    {
539
        L"outline",
540
        DISPID_IHTMLCSSSTYLEDECLARATION_OUTLINE,
541
        DISPID_A_OUTLINE,
542 543 544
        ATTR_NO_NULL
    },
    {
545
        L"overflow",
546
        DISPID_IHTMLCSSSTYLEDECLARATION_OVERFLOW,
547
        DISPID_A_OVERFLOW,
548 549 550
        0, overflow_values
    },
    {
551
        L"overflow-x",
552
        DISPID_IHTMLCSSSTYLEDECLARATION_OVERFLOWX,
553
        DISPID_A_OVERFLOWX
554 555
    },
    {
556
        L"overflow-y",
557
        DISPID_IHTMLCSSSTYLEDECLARATION_OVERFLOWY,
558
        DISPID_A_OVERFLOWY
559 560
    },
    {
561
        L"padding",
562
        DISPID_IHTMLCSSSTYLEDECLARATION_PADDING,
563
        DISPID_A_PADDING
564 565
    },
    {
566
        L"padding-bottom",
567
        DISPID_IHTMLCSSSTYLEDECLARATION_PADDINGBOTTOM,
568
        DISPID_A_PADDINGBOTTOM,
569 570 571
        ATTR_FIX_PX
    },
    {
572
        L"padding-left",
573
        DISPID_IHTMLCSSSTYLEDECLARATION_PADDINGLEFT,
574
        DISPID_A_PADDINGLEFT,
575 576 577
        ATTR_FIX_PX
    },
    {
578
        L"padding-right",
579
        DISPID_IHTMLCSSSTYLEDECLARATION_PADDINGRIGHT,
580
        DISPID_A_PADDINGRIGHT,
581 582 583
        ATTR_FIX_PX
    },
    {
584
        L"padding-top",
585
        DISPID_IHTMLCSSSTYLEDECLARATION_PADDINGTOP,
586
        DISPID_A_PADDINGTOP,
587 588 589
        ATTR_FIX_PX
    },
    {
590
        L"page-break-after",
591
        DISPID_IHTMLCSSSTYLEDECLARATION_PAGEBREAKAFTER,
592
        DISPID_A_PAGEBREAKAFTER
593 594
    },
    {
595
        L"page-break-before",
596
        DISPID_IHTMLCSSSTYLEDECLARATION_PAGEBREAKBEFORE,
597
        DISPID_A_PAGEBREAKBEFORE
598
    },
599 600 601 602 603
    {
        L"perspective",
        DISPID_IHTMLCSSSTYLEDECLARATION2_PERSPECTIVE,
        DISPID_UNKNOWN
    },
604
    {
605
        L"position",
606
        DISPID_IHTMLCSSSTYLEDECLARATION_POSITION,
607
        DISPID_A_POSITION
608 609
    },
    {
610
        L"right",
611
        DISPID_IHTMLCSSSTYLEDECLARATION_RIGHT,
612
        STDPROPID_XOBJ_RIGHT
613 614
    },
    {
615
        L"table-layout",
616
        DISPID_IHTMLCSSSTYLEDECLARATION_TABLELAYOUT,
617
        DISPID_A_TABLELAYOUT
618 619
    },
    {
620
        L"text-align",
621
        DISPID_IHTMLCSSSTYLEDECLARATION_TEXTALIGN,
622
        STDPROPID_XOBJ_BLOCKALIGN
623 624
    },
    {
625
        L"text-decoration",
626
        DISPID_IHTMLCSSSTYLEDECLARATION_TEXTDECORATION,
627
        DISPID_A_TEXTDECORATION,
628 629 630
        0, text_decoration_values
    },
    {
631
        L"text-indent",
632
        DISPID_IHTMLCSSSTYLEDECLARATION_TEXTINDENT,
633
        DISPID_A_TEXTINDENT,
634 635 636
        ATTR_FIX_PX
    },
    {
637
        L"text-transform",
638
        DISPID_IHTMLCSSSTYLEDECLARATION_TEXTTRANSFORM,
639
        DISPID_A_TEXTTRANSFORM
640 641
    },
    {
642
        L"top",
643
        DISPID_IHTMLCSSSTYLEDECLARATION_TOP,
644
        STDPROPID_XOBJ_TOP
645
    },
646 647
    {
        L"transform",
648
        DISPID_IHTMLCSSSTYLEDECLARATION2_TRANSFORM,
649 650
        DISPID_UNKNOWN,
        ATTR_COMPAT_IE10
651
    },
652 653
    {
        L"transition",
654
        DISPID_IHTMLCSSSTYLEDECLARATION2_TRANSITION,
655 656
        DISPID_UNKNOWN,
        ATTR_COMPAT_IE10
657
    },
658
    {
659
        L"vertical-align",
660
        DISPID_IHTMLCSSSTYLEDECLARATION_VERTICALALIGN,
661
        DISPID_A_VERTICALALIGN,
662 663 664
        ATTR_FIX_PX
    },
    {
665
        L"visibility",
666
        DISPID_IHTMLCSSSTYLEDECLARATION_VISIBILITY,
667
        DISPID_A_VISIBILITY
668 669
    },
    {
670
        L"white-space",
671
        DISPID_IHTMLCSSSTYLEDECLARATION_WHITESPACE,
672
        DISPID_A_WHITESPACE
673 674
    },
    {
675
        L"width",
676
        DISPID_IHTMLCSSSTYLEDECLARATION_WIDTH,
677
        STDPROPID_XOBJ_WIDTH,
678 679 680
        ATTR_FIX_PX
    },
    {
681
        L"word-spacing",
682
        DISPID_IHTMLCSSSTYLEDECLARATION_WORDSPACING,
683
        DISPID_A_WORDSPACING
684 685
    },
    {
686
        L"word-wrap",
687
        DISPID_IHTMLCSSSTYLEDECLARATION_WORDWRAP,
688
        DISPID_A_WORDWRAP
689 690
    },
    {
691
        L"z-index",
692
        DISPID_IHTMLCSSSTYLEDECLARATION_ZINDEX,
693
        DISPID_A_ZINDEX,
694 695
        ATTR_STR_TO_INT
    }
696 697
};

698
C_ASSERT(ARRAY_SIZE(style_tbl) == STYLEID_MAX_VALUE);
699

700
static const style_tbl_entry_t *lookup_style_tbl(CSSStyle *style, const WCHAR *name)
701
{
702
    int c, i, min = 0, max = ARRAY_SIZE(style_tbl)-1;
703 704 705 706

    while(min <= max) {
        i = (min+max)/2;

707
        c = wcscmp(style_tbl[i].name, name);
708 709 710
        if(!c) {
            if((style_tbl[i].flags & ATTR_COMPAT_IE10) && dispex_compat_mode(&style->dispex) < COMPAT_MODE_IE10)
                return NULL;
711
            return style_tbl+i;
712
        }
713 714 715 716 717 718 719 720 721 722

        if(c > 0)
            max = i-1;
        else
            min = i+1;
    }

    return NULL;
}

723
static void fix_px_value(nsAString *nsstr)
724
{
725 726 727 728
    const WCHAR *val, *ptr;

    nsAString_GetData(nsstr, &val);
    ptr = val;
729 730

    while(*ptr) {
731
        while(*ptr && iswspace(*ptr))
732 733 734 735
            ptr++;
        if(!*ptr)
            break;

736
        while(*ptr && is_digit(*ptr))
737 738
            ptr++;

739
        if(!*ptr || iswspace(*ptr)) {
740
            LPWSTR ret, p;
741
            int len = lstrlenW(val)+1;
742 743 744 745 746 747

            ret = heap_alloc((len+2)*sizeof(WCHAR));
            memcpy(ret, val, (ptr-val)*sizeof(WCHAR));
            p = ret + (ptr-val);
            *p++ = 'p';
            *p++ = 'x';
748
            lstrcpyW(p, ptr);
749 750 751

            TRACE("fixed %s -> %s\n", debugstr_w(val), debugstr_w(ret));

752 753 754
            nsAString_SetData(nsstr, ret);
            heap_free(ret);
            break;
755 756
        }

757
        while(*ptr && !iswspace(*ptr))
758 759 760 761
            ptr++;
    }
}

762 763 764 765 766 767
static LPWSTR fix_url_value(LPCWSTR val)
{
    WCHAR *ret, *ptr;

    static const WCHAR urlW[] = {'u','r','l','('};

768
    if(wcsncmp(val, urlW, ARRAY_SIZE(urlW)) || !wcschr(val, '\\'))
769 770 771 772 773 774 775 776 777 778 779 780
        return NULL;

    ret = heap_strdupW(val);

    for(ptr = ret; *ptr; ptr++) {
        if(*ptr == '\\')
            *ptr = '/';
    }

    return ret;
}

781
static HRESULT set_nsstyle_property(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, const nsAString *value)
782
{
783
    nsAString str_name, str_empty;
784
    nsresult nsres;
785

786
    nsAString_InitDepend(&str_name, style_tbl[sid].name);
787
    nsAString_InitDepend(&str_empty, L"");
788
    nsres = nsIDOMCSSStyleDeclaration_SetProperty(nsstyle, &str_name, value, &str_empty);
789 790
    nsAString_Finish(&str_name);
    nsAString_Finish(&str_empty);
791 792 793
    if(NS_FAILED(nsres))
        WARN("SetProperty failed: %08x\n", nsres);
    return map_nsresult(nsres);
794 795
}

796
static HRESULT var_to_styleval(CSSStyle *style, VARIANT *v, const style_tbl_entry_t *entry, nsAString *nsstr)
797
{
798
    HRESULT hres;
799 800 801
    unsigned flags = entry && dispex_compat_mode(&style->dispex) < COMPAT_MODE_IE9
        ? entry->flags : 0;

802 803
    hres = variant_to_nsstr(v, !!(flags & ATTR_HEX_INT), nsstr);
    if(SUCCEEDED(hres) && (flags & ATTR_FIX_PX))
804
        fix_px_value(nsstr);
805
    return hres;
806
}
807

808
static inline HRESULT set_style_property(CSSStyle *style, styleid_t sid, const WCHAR *value)
809
{
810
    nsAString value_str;
811
    unsigned flags = 0;
812 813 814
    WCHAR *val = NULL;
    HRESULT hres;

815
    if(value && *value && dispex_compat_mode(&style->dispex) < COMPAT_MODE_IE9) {
816
        flags = style_tbl[sid].flags;
817 818 819 820

        if(style_tbl[sid].allowed_values) {
            const WCHAR **iter;
            for(iter = style_tbl[sid].allowed_values; *iter; iter++) {
821
                if(!wcsicmp(*iter, value))
822 823 824 825
                    break;
            }
            if(!*iter) {
                WARN("invalid value %s\n", debugstr_w(value));
826
                nsAString_InitDepend(&value_str, L"");
827 828
                set_nsstyle_property(style->nsstyle, sid, &value_str);
                nsAString_Finish(&value_str);
829 830 831 832
                return E_INVALIDARG;
            }
        }

833
        if(flags & ATTR_FIX_URL)
834 835 836
            val = fix_url_value(value);
    }

837
    nsAString_InitDepend(&value_str, val ? val : value);
838 839
    if(flags & ATTR_FIX_PX)
        fix_px_value(&value_str);
840 841
    hres = set_nsstyle_property(style->nsstyle, sid, &value_str);
    nsAString_Finish(&value_str);
842 843 844 845
    heap_free(val);
    return hres;
}

846
static HRESULT set_style_property_var(CSSStyle *style, styleid_t sid, VARIANT *value)
847
{
848
    nsAString val;
849 850
    HRESULT hres;

851
    hres = var_to_styleval(style, value, &style_tbl[sid], &val);
852 853 854
    if(FAILED(hres))
        return hres;

855 856 857
    hres = set_nsstyle_property(style->nsstyle, sid, &val);
    nsAString_Finish(&val);
    return hres;
858 859
}

860
static HRESULT get_nsstyle_attr_nsval(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, nsAString *value)
861
{
862
    nsAString str_name;
863 864
    nsresult nsres;

865
    nsAString_InitDepend(&str_name, style_tbl[sid].name);
866
    nsres = nsIDOMCSSStyleDeclaration_GetPropertyValue(nsstyle, &str_name, value);
867
    nsAString_Finish(&str_name);
868 869 870
    if(NS_FAILED(nsres))
        WARN("GetPropertyValue failed: %08x\n", nsres);
    return map_nsresult(nsres);
871 872
}

873 874 875
static HRESULT nsstyle_to_bstr(const WCHAR *val, DWORD flags, BSTR *p)
{
    BSTR ret;
876
    DWORD len;
877 878

    if(!*val) {
879
        *p = (flags & ATTR_NO_NULL) ? SysAllocStringLen(NULL, 0) : NULL;
880 881 882 883 884 885 886
        return S_OK;
    }

    ret = SysAllocString(val);
    if(!ret)
        return E_OUTOFMEMORY;

887 888 889 890 891 892
    len = SysStringLen(ret);

    if(flags & ATTR_REMOVE_COMMA) {
        DWORD new_len = len;
        WCHAR *ptr, *ptr2;

893
        for(ptr = ret; (ptr = wcschr(ptr, ',')); ptr++)
894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914
            new_len--;

        if(new_len != len) {
            BSTR new_ret;

            new_ret = SysAllocStringLen(NULL, new_len);
            if(!new_ret) {
                SysFreeString(ret);
                return E_OUTOFMEMORY;
            }

            for(ptr2 = new_ret, ptr = ret; *ptr; ptr++) {
                if(*ptr != ',')
                    *ptr2++ = *ptr;
            }

            SysFreeString(ret);
            ret = new_ret;
        }
    }

915 916 917 918
    *p = ret;
    return S_OK;
}

919
static HRESULT get_nsstyle_property(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, compat_mode_t compat_mode, BSTR *p)
920 921 922
{
    nsAString str_value;
    const PRUnichar *value;
923
    HRESULT hres;
924 925 926

    nsAString_Init(&str_value, NULL);

927
    get_nsstyle_attr_nsval(nsstyle, sid, &str_value);
928

929
    nsAString_GetData(&str_value, &value);
930
    hres = nsstyle_to_bstr(value, compat_mode < COMPAT_MODE_IE9 ? style_tbl[sid].flags : 0, p);
931 932
    nsAString_Finish(&str_value);

933
    TRACE("%s -> %s\n", debugstr_w(style_tbl[sid].name), debugstr_w(*p));
934
    return hres;
935 936
}

937
static HRESULT get_nsstyle_property_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, compat_mode_t compat_mode, VARIANT *p)
938
{
939
    unsigned flags = style_tbl[sid].flags;
940 941 942
    nsAString str_value;
    const PRUnichar *value;
    BOOL set = FALSE;
943
    HRESULT hres = S_OK;
944 945 946 947 948 949 950

    nsAString_Init(&str_value, NULL);

    get_nsstyle_attr_nsval(nsstyle, sid, &str_value);

    nsAString_GetData(&str_value, &value);

951
    if((flags & ATTR_STR_TO_INT) && (*value || compat_mode < COMPAT_MODE_IE9)) {
952 953 954 955 956 957 958 959 960
        const PRUnichar *ptr = value;
        BOOL neg = FALSE;
        INT i = 0;

        if(*ptr == '-') {
            neg = TRUE;
            ptr++;
        }

961
        while(is_digit(*ptr))
962 963 964 965 966 967 968 969 970 971
            i = i*10 + (*ptr++ - '0');

        if(!*ptr) {
            V_VT(p) = VT_I4;
            V_I4(p) = neg ? -i : i;
            set = TRUE;
        }
    }

    if(!set) {
972
        BSTR str;
973

974
        hres = nsstyle_to_bstr(value, compat_mode < COMPAT_MODE_IE9 ? flags : 0, &str);
975 976 977
        if(SUCCEEDED(hres)) {
            V_VT(p) = VT_BSTR;
            V_BSTR(p) = str;
978 979 980 981 982
        }
    }

    nsAString_Finish(&str_value);

983
    TRACE("%s -> %s\n", debugstr_w(style_tbl[sid].name), debugstr_variant(p));
984
    return S_OK;
985 986
}

987
HRESULT get_style_property(CSSStyle *style, styleid_t sid, BSTR *p)
988
{
989
    return get_nsstyle_property(style->nsstyle, sid, dispex_compat_mode(&style->dispex), p);
990 991
}

992
HRESULT get_style_property_var(CSSStyle *style, styleid_t sid, VARIANT *v)
993
{
994
    return get_nsstyle_property_var(style->nsstyle, sid, dispex_compat_mode(&style->dispex), v);
995 996
}

997
static HRESULT check_style_attr_value(HTMLStyle *This, styleid_t sid, LPCWSTR exval, VARIANT_BOOL *p)
998 999 1000 1001 1002
{
    nsAString str_value;
    const PRUnichar *value;

    nsAString_Init(&str_value, NULL);
1003

1004
    get_nsstyle_attr_nsval(This->css_style.nsstyle, sid, &str_value);
1005

1006
    nsAString_GetData(&str_value, &value);
1007
    *p = variant_bool(!wcscmp(value, exval));
1008 1009
    nsAString_Finish(&str_value);

1010
    TRACE("%s -> %x\n", debugstr_w(style_tbl[sid].name), *p);
1011 1012 1013
    return S_OK;
}

1014 1015 1016 1017 1018 1019
static inline HRESULT set_style_pos(HTMLStyle *This, styleid_t sid, float value)
{
    WCHAR szValue[25];

    value = floor(value);

1020
    swprintf(szValue, ARRAY_SIZE(szValue), L"%.0fpx", value);
1021

1022
    return set_style_property(&This->css_style, sid, szValue);
1023 1024
}

1025
static HRESULT set_style_pxattr(HTMLStyle *style, styleid_t sid, LONG value)
1026 1027 1028
{
    WCHAR value_str[16];

1029
    swprintf(value_str, ARRAY_SIZE(value_str), L"%dpx", value);
1030

1031
    return set_style_property(&style->css_style, sid, value_str);
1032 1033
}

1034
static HRESULT get_nsstyle_pos(HTMLStyle *This, styleid_t sid, float *p)
1035 1036 1037 1038 1039 1040 1041 1042 1043 1044
{
    nsAString str_value;
    HRESULT hres;

    TRACE("%p %d %p\n", This, sid, p);

    *p = 0.0f;

    nsAString_Init(&str_value, NULL);

1045
    hres = get_nsstyle_attr_nsval(This->css_style.nsstyle, sid, &str_value);
1046 1047 1048 1049 1050 1051 1052 1053
    if(hres == S_OK)
    {
        WCHAR *ptr;
        const PRUnichar *value;

        nsAString_GetData(&str_value, &value);
        if(value)
        {
1054
            *p = wcstol(value, &ptr, 10);
1055

1056
            if(*ptr && wcscmp(ptr, L"px"))
1057 1058 1059
            {
                nsAString_Finish(&str_value);
                FIXME("only px values are currently supported\n");
1060
                hres = E_FAIL;
1061 1062 1063 1064 1065 1066 1067 1068 1069 1070
            }
        }
    }

    TRACE("ret %f\n", *p);

    nsAString_Finish(&str_value);
    return hres;
}

1071 1072 1073 1074 1075
static HRESULT get_nsstyle_pixel_val(HTMLStyle *This, styleid_t sid, LONG *p)
{
    nsAString str_value;
    HRESULT hres;

1076 1077 1078
    if(!p)
        return E_POINTER;

1079 1080
    nsAString_Init(&str_value, NULL);

1081
    hres = get_nsstyle_attr_nsval(This->css_style.nsstyle, sid, &str_value);
1082
    if(hres == S_OK) {
1083
        WCHAR *ptr = NULL;
1084 1085 1086 1087
        const PRUnichar *value;

        nsAString_GetData(&str_value, &value);
        if(value) {
1088
            *p = wcstol(value, &ptr, 10);
1089

1090 1091
            if(*ptr == '.') {
                /* Skip all digits. We have tests showing that we should not round the value. */
1092
                while(is_digit(*++ptr));
1093
            }
1094
        }
1095

1096
        if(!ptr || (*ptr && wcscmp(ptr, L"px")))
1097 1098 1099 1100 1101 1102 1103
            *p = 0;
    }

    nsAString_Finish(&str_value);
    return hres;
}

1104 1105
static BOOL is_valid_border_style(BSTR v)
{
1106 1107 1108 1109 1110
    return !v || wcsicmp(v, L"none")   == 0 || wcsicmp(v, L"dotted") == 0 ||
        wcsicmp(v, L"dashed") == 0 || wcsicmp(v, L"solid")  == 0 ||
        wcsicmp(v, L"double") == 0 || wcsicmp(v, L"groove") == 0 ||
        wcsicmp(v, L"ridge")  == 0 || wcsicmp(v, L"inset")  == 0 ||
        wcsicmp(v, L"outset") == 0;
1111 1112
}

1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131
static void *HTMLStyle_QI(CSSStyle *css_style, REFIID riid)
{
    HTMLStyle *This = CONTAINING_RECORD(css_style, HTMLStyle, css_style);

    if(IsEqualGUID(&IID_IHTMLStyle, riid))
        return &This->IHTMLStyle_iface;
    if(IsEqualGUID(&IID_IHTMLStyle2, riid))
        return &This->IHTMLStyle2_iface;
    if(IsEqualGUID(&IID_IHTMLStyle3, riid))
        return &This->IHTMLStyle3_iface;
    if(IsEqualGUID(&IID_IHTMLStyle4, riid))
        return &This->IHTMLStyle4_iface;
    if(IsEqualGUID(&IID_IHTMLStyle5, riid))
        return &This->IHTMLStyle5_iface;
    if(IsEqualGUID(&IID_IHTMLStyle6, riid))
        return &This->IHTMLStyle6_iface;
    return NULL;
}

1132 1133 1134 1135
static inline HTMLStyle *impl_from_IHTMLStyle(IHTMLStyle *iface)
{
    return CONTAINING_RECORD(iface, HTMLStyle, IHTMLStyle_iface);
}
1136 1137 1138

static HRESULT WINAPI HTMLStyle_QueryInterface(IHTMLStyle *iface, REFIID riid, void **ppv)
{
1139
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1140
    return IHTMLCSSStyleDeclaration_QueryInterface(&This->css_style.IHTMLCSSStyleDeclaration_iface, riid, ppv);
1141 1142 1143 1144
}

static ULONG WINAPI HTMLStyle_AddRef(IHTMLStyle *iface)
{
1145
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1146
    return IHTMLCSSStyleDeclaration_AddRef(&This->css_style.IHTMLCSSStyleDeclaration_iface);
1147 1148 1149 1150
}

static ULONG WINAPI HTMLStyle_Release(IHTMLStyle *iface)
{
1151
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1152
    return IHTMLCSSStyleDeclaration_Release(&This->css_style.IHTMLCSSStyleDeclaration_iface);
1153 1154 1155 1156
}

static HRESULT WINAPI HTMLStyle_GetTypeInfoCount(IHTMLStyle *iface, UINT *pctinfo)
{
1157
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1158
    return IDispatchEx_GetTypeInfoCount(&This->css_style.dispex.IDispatchEx_iface, pctinfo);
1159 1160 1161 1162 1163
}

static HRESULT WINAPI HTMLStyle_GetTypeInfo(IHTMLStyle *iface, UINT iTInfo,
                                              LCID lcid, ITypeInfo **ppTInfo)
{
1164
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1165
    return IDispatchEx_GetTypeInfo(&This->css_style.dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
1166 1167 1168 1169 1170 1171
}

static HRESULT WINAPI HTMLStyle_GetIDsOfNames(IHTMLStyle *iface, REFIID riid,
                                                LPOLESTR *rgszNames, UINT cNames,
                                                LCID lcid, DISPID *rgDispId)
{
1172
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1173
    return IDispatchEx_GetIDsOfNames(&This->css_style.dispex.IDispatchEx_iface, riid, rgszNames, cNames,
1174
            lcid, rgDispId);
1175 1176 1177 1178 1179 1180
}

static HRESULT WINAPI HTMLStyle_Invoke(IHTMLStyle *iface, DISPID dispIdMember,
                            REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
                            VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
{
1181
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1182
    return IDispatchEx_Invoke(&This->css_style.dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
1183
            wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
1184 1185 1186 1187
}

static HRESULT WINAPI HTMLStyle_put_fontFamily(IHTMLStyle *iface, BSTR v)
{
1188
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1189 1190 1191

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

1192
    return set_style_property(&This->css_style, STYLEID_FONT_FAMILY, v);
1193 1194 1195 1196
}

static HRESULT WINAPI HTMLStyle_get_fontFamily(IHTMLStyle *iface, BSTR *p)
{
1197
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1198 1199 1200

    TRACE("(%p)->(%p)\n", This, p);

1201
    return get_style_property(&This->css_style, STYLEID_FONT_FAMILY, p);
1202 1203 1204 1205
}

static HRESULT WINAPI HTMLStyle_put_fontStyle(IHTMLStyle *iface, BSTR v)
{
1206
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1207 1208 1209

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

1210
    return set_style_property(&This->css_style, STYLEID_FONT_STYLE, v);
1211 1212 1213 1214
}

static HRESULT WINAPI HTMLStyle_get_fontStyle(IHTMLStyle *iface, BSTR *p)
{
1215
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1216 1217 1218

    TRACE("(%p)->(%p)\n", This, p);

1219
    return get_style_property(&This->css_style, STYLEID_FONT_STYLE, p);
1220 1221 1222 1223
}

static HRESULT WINAPI HTMLStyle_put_fontVariant(IHTMLStyle *iface, BSTR v)
{
1224
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1225 1226 1227

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

1228
    return set_style_property(&This->css_style, STYLEID_FONT_VARIANT, v);
1229 1230 1231 1232
}

static HRESULT WINAPI HTMLStyle_get_fontVariant(IHTMLStyle *iface, BSTR *p)
{
1233
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1234 1235 1236 1237 1238
    TRACE("(%p)->(%p)\n", This, p);

    if(!p)
       return E_INVALIDARG;

1239
    return get_style_property(&This->css_style, STYLEID_FONT_VARIANT, p);
1240 1241 1242 1243
}

static HRESULT WINAPI HTMLStyle_put_fontWeight(IHTMLStyle *iface, BSTR v)
{
1244
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1245 1246 1247

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

1248
    return set_style_property(&This->css_style, STYLEID_FONT_WEIGHT, v);
1249 1250 1251 1252
}

static HRESULT WINAPI HTMLStyle_get_fontWeight(IHTMLStyle *iface, BSTR *p)
{
1253
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1254 1255 1256

    TRACE("(%p)->(%p)\n", This, p);

1257
    return get_style_property(&This->css_style, STYLEID_FONT_WEIGHT, p);
1258 1259 1260 1261
}

static HRESULT WINAPI HTMLStyle_put_fontSize(IHTMLStyle *iface, VARIANT v)
{
1262
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1263

1264
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1265

1266
    return set_style_property_var(&This->css_style, STYLEID_FONT_SIZE, &v);
1267 1268 1269 1270
}

static HRESULT WINAPI HTMLStyle_get_fontSize(IHTMLStyle *iface, VARIANT *p)
{
1271
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1272 1273 1274

    TRACE("(%p)->(%p)\n", This, p);

1275
    return get_style_property_var(&This->css_style, STYLEID_FONT_SIZE, p);
1276 1277 1278 1279
}

static HRESULT WINAPI HTMLStyle_put_font(IHTMLStyle *iface, BSTR v)
{
1280
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1281 1282 1283 1284 1285 1286
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle_get_font(IHTMLStyle *iface, BSTR *p)
{
1287
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1288 1289 1290 1291 1292 1293
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle_put_color(IHTMLStyle *iface, VARIANT v)
{
1294
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1295

1296
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1297

1298
    return set_style_property_var(&This->css_style, STYLEID_COLOR, &v);
1299 1300 1301 1302
}

static HRESULT WINAPI HTMLStyle_get_color(IHTMLStyle *iface, VARIANT *p)
{
1303
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1304 1305 1306

    TRACE("(%p)->(%p)\n", This, p);

1307
    return get_style_property_var(&This->css_style, STYLEID_COLOR, p);
1308 1309 1310 1311
}

static HRESULT WINAPI HTMLStyle_put_background(IHTMLStyle *iface, BSTR v)
{
1312
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1313 1314 1315

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

1316
    return set_style_property(&This->css_style, STYLEID_BACKGROUND, v);
1317 1318 1319 1320
}

static HRESULT WINAPI HTMLStyle_get_background(IHTMLStyle *iface, BSTR *p)
{
1321
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1322 1323 1324

    TRACE("(%p)->(%p)\n", This, p);

1325
    return get_style_property(&This->css_style, STYLEID_BACKGROUND, p);
1326 1327 1328 1329
}

static HRESULT WINAPI HTMLStyle_put_backgroundColor(IHTMLStyle *iface, VARIANT v)
{
1330
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1331

1332
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1333

1334
    return set_style_property_var(&This->css_style, STYLEID_BACKGROUND_COLOR, &v);
1335 1336 1337 1338
}

static HRESULT WINAPI HTMLStyle_get_backgroundColor(IHTMLStyle *iface, VARIANT *p)
{
1339
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1340

1341 1342
    TRACE("(%p)->(%p)\n", This, p);

1343
    return get_style_property_var(&This->css_style, STYLEID_BACKGROUND_COLOR, p);
1344 1345 1346 1347
}

static HRESULT WINAPI HTMLStyle_put_backgroundImage(IHTMLStyle *iface, BSTR v)
{
1348
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1349 1350 1351

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

1352
    return set_style_property(&This->css_style, STYLEID_BACKGROUND_IMAGE, v);
1353 1354 1355 1356
}

static HRESULT WINAPI HTMLStyle_get_backgroundImage(IHTMLStyle *iface, BSTR *p)
{
1357
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1358 1359 1360

    TRACE("(%p)->(%p)\n", This, p);

1361
    return get_style_property(&This->css_style, STYLEID_BACKGROUND_IMAGE, p);
1362 1363 1364 1365
}

static HRESULT WINAPI HTMLStyle_put_backgroundRepeat(IHTMLStyle *iface, BSTR v)
{
1366
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1367 1368 1369

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

1370
    return set_style_property(&This->css_style, STYLEID_BACKGROUND_REPEAT , v);
1371 1372 1373 1374
}

static HRESULT WINAPI HTMLStyle_get_backgroundRepeat(IHTMLStyle *iface, BSTR *p)
{
1375
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1376 1377 1378

    TRACE("(%p)->(%p)\n", This, p);

1379
    return get_style_property(&This->css_style, STYLEID_BACKGROUND_REPEAT, p);
1380 1381 1382 1383
}

static HRESULT WINAPI HTMLStyle_put_backgroundAttachment(IHTMLStyle *iface, BSTR v)
{
1384
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1385 1386 1387

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

1388
    return set_style_property(&This->css_style, STYLEID_BACKGROUND_ATTACHMENT, v);
1389 1390 1391 1392
}

static HRESULT WINAPI HTMLStyle_get_backgroundAttachment(IHTMLStyle *iface, BSTR *p)
{
1393
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1394 1395 1396

    TRACE("(%p)->(%p)\n", This, p);

1397
    return get_style_property(&This->css_style, STYLEID_BACKGROUND_ATTACHMENT, p);
1398 1399 1400 1401
}

static HRESULT WINAPI HTMLStyle_put_backgroundPosition(IHTMLStyle *iface, BSTR v)
{
1402
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1403 1404 1405

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

1406
    return set_style_property(&This->css_style, STYLEID_BACKGROUND_POSITION, v);
1407 1408 1409 1410
}

static HRESULT WINAPI HTMLStyle_get_backgroundPosition(IHTMLStyle *iface, BSTR *p)
{
1411
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1412 1413 1414

    TRACE("(%p)->(%p)\n", This, p);

1415
    return get_style_property(&This->css_style, STYLEID_BACKGROUND_POSITION, p);
1416 1417 1418 1419
}

static HRESULT WINAPI HTMLStyle_put_backgroundPositionX(IHTMLStyle *iface, VARIANT v)
{
1420
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1421
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1422
    return IHTMLCSSStyleDeclaration_put_backgroundPositionX(&This->css_style.IHTMLCSSStyleDeclaration_iface, v);
1423 1424 1425 1426
}

static HRESULT WINAPI HTMLStyle_get_backgroundPositionX(IHTMLStyle *iface, VARIANT *p)
{
1427
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1428
    TRACE("(%p)->(%p)\n", This, p);
1429
    return IHTMLCSSStyleDeclaration_get_backgroundPositionX(&This->css_style.IHTMLCSSStyleDeclaration_iface, p);
1430 1431 1432 1433
}

static HRESULT WINAPI HTMLStyle_put_backgroundPositionY(IHTMLStyle *iface, VARIANT v)
{
1434
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1435
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1436
    return IHTMLCSSStyleDeclaration_put_backgroundPositionY(&This->css_style.IHTMLCSSStyleDeclaration_iface, v);
1437 1438 1439 1440
}

static HRESULT WINAPI HTMLStyle_get_backgroundPositionY(IHTMLStyle *iface, VARIANT *p)
{
1441
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1442
    TRACE("(%p)->(%p)\n", This, p);
1443
    return IHTMLCSSStyleDeclaration_get_backgroundPositionY(&This->css_style.IHTMLCSSStyleDeclaration_iface, p);
1444 1445 1446 1447
}

static HRESULT WINAPI HTMLStyle_put_wordSpacing(IHTMLStyle *iface, VARIANT v)
{
1448
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1449 1450 1451

    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));

1452
    return set_style_property_var(&This->css_style, STYLEID_WORD_SPACING, &v);
1453 1454 1455 1456
}

static HRESULT WINAPI HTMLStyle_get_wordSpacing(IHTMLStyle *iface, VARIANT *p)
{
1457
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1458
    TRACE("(%p)->(%p)\n", This, p);
1459
    return get_style_property_var(&This->css_style, STYLEID_WORD_SPACING, p);
1460 1461 1462 1463
}

static HRESULT WINAPI HTMLStyle_put_letterSpacing(IHTMLStyle *iface, VARIANT v)
{
1464
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1465 1466 1467

    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));

1468
    return set_style_property_var(&This->css_style, STYLEID_LETTER_SPACING, &v);
1469 1470 1471 1472
}

static HRESULT WINAPI HTMLStyle_get_letterSpacing(IHTMLStyle *iface, VARIANT *p)
{
1473
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1474
    TRACE("(%p)->(%p)\n", This, p);
1475
    return get_style_property_var(&This->css_style, STYLEID_LETTER_SPACING, p);
1476 1477 1478 1479
}

static HRESULT WINAPI HTMLStyle_put_textDecoration(IHTMLStyle *iface, BSTR v)
{
1480
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1481 1482 1483

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

1484
    return set_style_property(&This->css_style, STYLEID_TEXT_DECORATION , v);
1485 1486 1487 1488
}

static HRESULT WINAPI HTMLStyle_get_textDecoration(IHTMLStyle *iface, BSTR *p)
{
1489
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1490 1491 1492

    TRACE("(%p)->(%p)\n", This, p);

1493
    return get_style_property(&This->css_style, STYLEID_TEXT_DECORATION, p);
1494 1495 1496 1497
}

static HRESULT WINAPI HTMLStyle_put_textDecorationNone(IHTMLStyle *iface, VARIANT_BOOL v)
{
1498
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1499 1500 1501

    TRACE("(%p)->(%x)\n", This, v);

1502
    return set_style_property(&This->css_style, STYLEID_TEXT_DECORATION, v ? L"none" : L"");
1503 1504 1505 1506
}

static HRESULT WINAPI HTMLStyle_get_textDecorationNone(IHTMLStyle *iface, VARIANT_BOOL *p)
{
1507
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1508 1509 1510

    TRACE("(%p)->(%p)\n", This, p);

1511
    return check_style_attr_value(This, STYLEID_TEXT_DECORATION, L"none", p);
1512 1513 1514 1515
}

static HRESULT WINAPI HTMLStyle_put_textDecorationUnderline(IHTMLStyle *iface, VARIANT_BOOL v)
{
1516
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1517 1518 1519

    TRACE("(%p)->(%x)\n", This, v);

1520
    return set_style_property(&This->css_style, STYLEID_TEXT_DECORATION, v ? L"underline" : L"");
1521 1522 1523 1524
}

static HRESULT WINAPI HTMLStyle_get_textDecorationUnderline(IHTMLStyle *iface, VARIANT_BOOL *p)
{
1525
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1526 1527 1528

    TRACE("(%p)->(%p)\n", This, p);

1529
    return check_style_attr_value(This, STYLEID_TEXT_DECORATION, L"underline", p);
1530 1531 1532 1533
}

static HRESULT WINAPI HTMLStyle_put_textDecorationOverline(IHTMLStyle *iface, VARIANT_BOOL v)
{
1534
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1535 1536 1537

    TRACE("(%p)->(%x)\n", This, v);

1538
    return set_style_property(&This->css_style, STYLEID_TEXT_DECORATION, v ? L"overline" : L"");
1539 1540 1541 1542
}

static HRESULT WINAPI HTMLStyle_get_textDecorationOverline(IHTMLStyle *iface, VARIANT_BOOL *p)
{
1543
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1544 1545 1546

    TRACE("(%p)->(%p)\n", This, p);

1547
    return check_style_attr_value(This, STYLEID_TEXT_DECORATION, L"overline", p);
1548 1549 1550 1551
}

static HRESULT WINAPI HTMLStyle_put_textDecorationLineThrough(IHTMLStyle *iface, VARIANT_BOOL v)
{
1552
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1553 1554 1555

    TRACE("(%p)->(%x)\n", This, v);

1556
    return set_style_property(&This->css_style, STYLEID_TEXT_DECORATION, v ? L"line-through" : L"");
1557 1558 1559 1560
}

static HRESULT WINAPI HTMLStyle_get_textDecorationLineThrough(IHTMLStyle *iface, VARIANT_BOOL *p)
{
1561
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1562 1563 1564

    TRACE("(%p)->(%p)\n", This, p);

1565
    return check_style_attr_value(This, STYLEID_TEXT_DECORATION, L"line-through", p);
1566 1567 1568 1569
}

static HRESULT WINAPI HTMLStyle_put_textDecorationBlink(IHTMLStyle *iface, VARIANT_BOOL v)
{
1570
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1571 1572 1573

    TRACE("(%p)->(%x)\n", This, v);

1574
    return set_style_property(&This->css_style, STYLEID_TEXT_DECORATION, v ? L"blink" : L"");
1575 1576 1577 1578
}

static HRESULT WINAPI HTMLStyle_get_textDecorationBlink(IHTMLStyle *iface, VARIANT_BOOL *p)
{
1579
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1580 1581 1582

    TRACE("(%p)->(%p)\n", This, p);

1583
    return check_style_attr_value(This, STYLEID_TEXT_DECORATION, L"blink", p);
1584 1585 1586 1587
}

static HRESULT WINAPI HTMLStyle_put_verticalAlign(IHTMLStyle *iface, VARIANT v)
{
1588
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1589 1590 1591

    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));

1592
    return set_style_property_var(&This->css_style, STYLEID_VERTICAL_ALIGN, &v);
1593 1594 1595 1596
}

static HRESULT WINAPI HTMLStyle_get_verticalAlign(IHTMLStyle *iface, VARIANT *p)
{
1597
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1598 1599 1600

    TRACE("(%p)->(%p)\n", This, p);

1601
    return get_style_property_var(&This->css_style, STYLEID_VERTICAL_ALIGN, p);
1602 1603 1604 1605
}

static HRESULT WINAPI HTMLStyle_put_textTransform(IHTMLStyle *iface, BSTR v)
{
1606
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1607 1608 1609

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

1610
    return set_style_property(&This->css_style, STYLEID_TEXT_TRANSFORM, v);
1611 1612 1613 1614
}

static HRESULT WINAPI HTMLStyle_get_textTransform(IHTMLStyle *iface, BSTR *p)
{
1615
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1616 1617 1618

    TRACE("(%p)->(%p)\n", This, p);

1619
    return get_style_property(&This->css_style, STYLEID_TEXT_TRANSFORM, p);
1620 1621 1622 1623
}

static HRESULT WINAPI HTMLStyle_put_textAlign(IHTMLStyle *iface, BSTR v)
{
1624
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1625 1626 1627

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

1628
    return set_style_property(&This->css_style, STYLEID_TEXT_ALIGN, v);
1629 1630 1631 1632
}

static HRESULT WINAPI HTMLStyle_get_textAlign(IHTMLStyle *iface, BSTR *p)
{
1633
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1634 1635 1636

    TRACE("(%p)->(%p)\n", This, p);

1637
    return get_style_property(&This->css_style, STYLEID_TEXT_ALIGN, p);
1638 1639 1640 1641
}

static HRESULT WINAPI HTMLStyle_put_textIndent(IHTMLStyle *iface, VARIANT v)
{
1642
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1643 1644 1645

    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));

1646
    return set_style_property_var(&This->css_style, STYLEID_TEXT_INDENT, &v);
1647 1648 1649 1650
}

static HRESULT WINAPI HTMLStyle_get_textIndent(IHTMLStyle *iface, VARIANT *p)
{
1651
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1652 1653 1654

    TRACE("(%p)->(%p)\n", This, p);

1655
    return get_style_property_var(&This->css_style, STYLEID_TEXT_INDENT, p);
1656 1657 1658 1659
}

static HRESULT WINAPI HTMLStyle_put_lineHeight(IHTMLStyle *iface, VARIANT v)
{
1660
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1661 1662 1663

    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));

1664
    return set_style_property_var(&This->css_style, STYLEID_LINE_HEIGHT, &v);
1665 1666 1667 1668
}

static HRESULT WINAPI HTMLStyle_get_lineHeight(IHTMLStyle *iface, VARIANT *p)
{
1669
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1670 1671 1672

    TRACE("(%p)->(%p)\n", This, p);

1673
    return get_style_property_var(&This->css_style, STYLEID_LINE_HEIGHT, p);
1674 1675 1676 1677
}

static HRESULT WINAPI HTMLStyle_put_marginTop(IHTMLStyle *iface, VARIANT v)
{
1678
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1679

1680
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1681

1682
    return set_style_property_var(&This->css_style, STYLEID_MARGIN_TOP, &v);
1683 1684 1685 1686
}

static HRESULT WINAPI HTMLStyle_get_marginTop(IHTMLStyle *iface, VARIANT *p)
{
1687
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1688 1689 1690

    TRACE("(%p)->(%p)\n", This, p);

1691
    return get_style_property_var(&This->css_style, STYLEID_MARGIN_TOP, p);
1692 1693 1694 1695
}

static HRESULT WINAPI HTMLStyle_put_marginRight(IHTMLStyle *iface, VARIANT v)
{
1696
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1697

1698
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1699

1700
    return set_style_property_var(&This->css_style, STYLEID_MARGIN_RIGHT, &v);
1701 1702 1703 1704
}

static HRESULT WINAPI HTMLStyle_get_marginRight(IHTMLStyle *iface, VARIANT *p)
{
1705
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1706
    TRACE("(%p)->(%p)\n", This, p);
1707
    return get_style_property_var(&This->css_style, STYLEID_MARGIN_RIGHT, p);
1708 1709 1710 1711
}

static HRESULT WINAPI HTMLStyle_put_marginBottom(IHTMLStyle *iface, VARIANT v)
{
1712
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1713

1714
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1715

1716
    return set_style_property_var(&This->css_style, STYLEID_MARGIN_BOTTOM, &v);
1717 1718 1719 1720
}

static HRESULT WINAPI HTMLStyle_get_marginBottom(IHTMLStyle *iface, VARIANT *p)
{
1721
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1722 1723 1724

    TRACE("(%p)->(%p)\n", This, p);

1725
    return get_style_property_var(&This->css_style, STYLEID_MARGIN_BOTTOM, p);
1726 1727 1728 1729
}

static HRESULT WINAPI HTMLStyle_put_marginLeft(IHTMLStyle *iface, VARIANT v)
{
1730
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1731

1732
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1733

1734
    return set_style_property_var(&This->css_style, STYLEID_MARGIN_LEFT, &v);
1735 1736 1737 1738
}

static HRESULT WINAPI HTMLStyle_put_margin(IHTMLStyle *iface, BSTR v)
{
1739
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1740 1741 1742

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

1743
    return set_style_property(&This->css_style, STYLEID_MARGIN, v);
1744 1745 1746 1747
}

static HRESULT WINAPI HTMLStyle_get_margin(IHTMLStyle *iface, BSTR *p)
{
1748
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1749 1750 1751

    TRACE("(%p)->(%p)\n", This, p);

1752
    return get_style_property(&This->css_style, STYLEID_MARGIN, p);
1753 1754 1755 1756
}

static HRESULT WINAPI HTMLStyle_get_marginLeft(IHTMLStyle *iface, VARIANT *p)
{
1757
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1758
    TRACE("(%p)->(%p)\n", This, p);
1759
    return get_style_property_var(&This->css_style, STYLEID_MARGIN_LEFT, p);
1760 1761 1762 1763
}

static HRESULT WINAPI HTMLStyle_put_paddingTop(IHTMLStyle *iface, VARIANT v)
{
1764
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1765

1766
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1767

1768
    return set_style_property_var(&This->css_style, STYLEID_PADDING_TOP, &v);
1769 1770 1771 1772
}

static HRESULT WINAPI HTMLStyle_get_paddingTop(IHTMLStyle *iface, VARIANT *p)
{
1773
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1774 1775 1776

    TRACE("(%p)->(%p)\n", This, p);

1777
    return get_style_property_var(&This->css_style, STYLEID_PADDING_TOP, p);
1778 1779 1780 1781
}

static HRESULT WINAPI HTMLStyle_put_paddingRight(IHTMLStyle *iface, VARIANT v)
{
1782
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1783

1784
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1785

1786
    return set_style_property_var(&This->css_style, STYLEID_PADDING_RIGHT, &v);
1787 1788 1789 1790
}

static HRESULT WINAPI HTMLStyle_get_paddingRight(IHTMLStyle *iface, VARIANT *p)
{
1791
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1792 1793 1794

    TRACE("(%p)->(%p)\n", This, p);

1795
    return get_style_property_var(&This->css_style, STYLEID_PADDING_RIGHT, p);
1796 1797 1798 1799
}

static HRESULT WINAPI HTMLStyle_put_paddingBottom(IHTMLStyle *iface, VARIANT v)
{
1800
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1801

1802
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1803

1804
    return set_style_property_var(&This->css_style, STYLEID_PADDING_BOTTOM, &v);
1805 1806 1807 1808
}

static HRESULT WINAPI HTMLStyle_get_paddingBottom(IHTMLStyle *iface, VARIANT *p)
{
1809
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1810 1811 1812

    TRACE("(%p)->(%p)\n", This, p);

1813
    return get_style_property_var(&This->css_style, STYLEID_PADDING_BOTTOM, p);
1814 1815 1816 1817
}

static HRESULT WINAPI HTMLStyle_put_paddingLeft(IHTMLStyle *iface, VARIANT v)
{
1818
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1819

1820
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1821

1822
    return set_style_property_var(&This->css_style, STYLEID_PADDING_LEFT, &v);
1823 1824 1825 1826
}

static HRESULT WINAPI HTMLStyle_get_paddingLeft(IHTMLStyle *iface, VARIANT *p)
{
1827
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1828 1829 1830

    TRACE("(%p)->(%p)\n", This, p);

1831
    return get_style_property_var(&This->css_style, STYLEID_PADDING_LEFT, p);
1832 1833 1834 1835
}

static HRESULT WINAPI HTMLStyle_put_padding(IHTMLStyle *iface, BSTR v)
{
1836
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1837 1838 1839

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

1840
    return set_style_property(&This->css_style, STYLEID_PADDING, v);
1841 1842 1843 1844
}

static HRESULT WINAPI HTMLStyle_get_padding(IHTMLStyle *iface, BSTR *p)
{
1845
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1846 1847 1848

    TRACE("(%p)->(%p)\n", This, p);

1849
    return get_style_property(&This->css_style, STYLEID_PADDING, p);
1850 1851 1852 1853
}

static HRESULT WINAPI HTMLStyle_put_border(IHTMLStyle *iface, BSTR v)
{
1854
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1855 1856 1857

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

1858
    return set_style_property(&This->css_style, STYLEID_BORDER, v);
1859 1860 1861 1862
}

static HRESULT WINAPI HTMLStyle_get_border(IHTMLStyle *iface, BSTR *p)
{
1863
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1864 1865 1866

    TRACE("(%p)->(%p)\n", This, p);

1867
    return get_style_property(&This->css_style, STYLEID_BORDER, p);
1868 1869 1870 1871
}

static HRESULT WINAPI HTMLStyle_put_borderTop(IHTMLStyle *iface, BSTR v)
{
1872
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1873
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1874
    return set_style_property(&This->css_style, STYLEID_BORDER_TOP, v);
1875 1876 1877 1878
}

static HRESULT WINAPI HTMLStyle_get_borderTop(IHTMLStyle *iface, BSTR *p)
{
1879
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1880
    TRACE("(%p)->(%p)\n", This, p);
1881
    return get_style_property(&This->css_style, STYLEID_BORDER_TOP, p);
1882 1883 1884 1885
}

static HRESULT WINAPI HTMLStyle_put_borderRight(IHTMLStyle *iface, BSTR v)
{
1886
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1887
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1888
    return set_style_property(&This->css_style, STYLEID_BORDER_RIGHT, v);
1889 1890 1891 1892
}

static HRESULT WINAPI HTMLStyle_get_borderRight(IHTMLStyle *iface, BSTR *p)
{
1893
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1894
    TRACE("(%p)->(%p)\n", This, p);
1895
    return get_style_property(&This->css_style, STYLEID_BORDER_RIGHT, p);
1896 1897 1898 1899
}

static HRESULT WINAPI HTMLStyle_put_borderBottom(IHTMLStyle *iface, BSTR v)
{
1900
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1901
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1902
    return set_style_property(&This->css_style, STYLEID_BORDER_BOTTOM, v);
1903 1904 1905 1906
}

static HRESULT WINAPI HTMLStyle_get_borderBottom(IHTMLStyle *iface, BSTR *p)
{
1907
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1908
    TRACE("(%p)->(%p)\n", This, p);
1909
    return get_style_property(&This->css_style, STYLEID_BORDER_BOTTOM, p);
1910 1911 1912 1913
}

static HRESULT WINAPI HTMLStyle_put_borderLeft(IHTMLStyle *iface, BSTR v)
{
1914
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1915 1916 1917

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

1918
    return set_style_property(&This->css_style, STYLEID_BORDER_LEFT, v);
1919 1920 1921 1922
}

static HRESULT WINAPI HTMLStyle_get_borderLeft(IHTMLStyle *iface, BSTR *p)
{
1923
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1924 1925 1926

    TRACE("(%p)->(%p)\n", This, p);

1927
    return get_style_property(&This->css_style, STYLEID_BORDER_LEFT, p);
1928 1929 1930 1931
}

static HRESULT WINAPI HTMLStyle_put_borderColor(IHTMLStyle *iface, BSTR v)
{
1932
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1933 1934 1935

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

1936
    return set_style_property(&This->css_style, STYLEID_BORDER_COLOR, v);
1937 1938 1939 1940
}

static HRESULT WINAPI HTMLStyle_get_borderColor(IHTMLStyle *iface, BSTR *p)
{
1941
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1942 1943 1944

    TRACE("(%p)->(%p)\n", This, p);

1945
    return get_style_property(&This->css_style, STYLEID_BORDER_COLOR, p);
1946 1947 1948 1949
}

static HRESULT WINAPI HTMLStyle_put_borderTopColor(IHTMLStyle *iface, VARIANT v)
{
1950
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1951

1952
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1953

1954
    return set_style_property_var(&This->css_style, STYLEID_BORDER_TOP_COLOR, &v);
1955 1956 1957 1958
}

static HRESULT WINAPI HTMLStyle_get_borderTopColor(IHTMLStyle *iface, VARIANT *p)
{
1959
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1960 1961 1962

    TRACE("(%p)->(%p)\n", This, p);

1963
    return get_style_property_var(&This->css_style, STYLEID_BORDER_TOP_COLOR, p);
1964 1965 1966 1967
}

static HRESULT WINAPI HTMLStyle_put_borderRightColor(IHTMLStyle *iface, VARIANT v)
{
1968
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1969

1970
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1971

1972
    return set_style_property_var(&This->css_style, STYLEID_BORDER_RIGHT_COLOR, &v);
1973 1974 1975 1976
}

static HRESULT WINAPI HTMLStyle_get_borderRightColor(IHTMLStyle *iface, VARIANT *p)
{
1977
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1978 1979 1980

    TRACE("(%p)->(%p)\n", This, p);

1981
    return get_style_property_var(&This->css_style, STYLEID_BORDER_RIGHT_COLOR, p);
1982 1983 1984 1985
}

static HRESULT WINAPI HTMLStyle_put_borderBottomColor(IHTMLStyle *iface, VARIANT v)
{
1986
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1987

1988
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1989

1990
    return set_style_property_var(&This->css_style, STYLEID_BORDER_BOTTOM_COLOR, &v);
1991 1992 1993 1994
}

static HRESULT WINAPI HTMLStyle_get_borderBottomColor(IHTMLStyle *iface, VARIANT *p)
{
1995
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
1996 1997 1998

    TRACE("(%p)->(%p)\n", This, p);

1999
    return get_style_property_var(&This->css_style, STYLEID_BORDER_BOTTOM_COLOR, p);
2000 2001 2002 2003
}

static HRESULT WINAPI HTMLStyle_put_borderLeftColor(IHTMLStyle *iface, VARIANT v)
{
2004
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2005

2006
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
2007

2008
    return set_style_property_var(&This->css_style, STYLEID_BORDER_LEFT_COLOR, &v);
2009 2010 2011 2012
}

static HRESULT WINAPI HTMLStyle_get_borderLeftColor(IHTMLStyle *iface, VARIANT *p)
{
2013
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2014 2015 2016

    TRACE("(%p)->(%p)\n", This, p);

2017
    return get_style_property_var(&This->css_style, STYLEID_BORDER_LEFT_COLOR, p);
2018 2019 2020 2021
}

static HRESULT WINAPI HTMLStyle_put_borderWidth(IHTMLStyle *iface, BSTR v)
{
2022
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2023
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
2024
    return set_style_property(&This->css_style, STYLEID_BORDER_WIDTH, v);
2025 2026 2027 2028
}

static HRESULT WINAPI HTMLStyle_get_borderWidth(IHTMLStyle *iface, BSTR *p)
{
2029
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2030
    TRACE("(%p)->(%p)\n", This, p);
2031
    return get_style_property(&This->css_style, STYLEID_BORDER_WIDTH, p);
2032 2033 2034 2035
}

static HRESULT WINAPI HTMLStyle_put_borderTopWidth(IHTMLStyle *iface, VARIANT v)
{
2036
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2037 2038 2039

    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));

2040
    return set_style_property_var(&This->css_style, STYLEID_BORDER_TOP_WIDTH, &v);
2041 2042 2043 2044
}

static HRESULT WINAPI HTMLStyle_get_borderTopWidth(IHTMLStyle *iface, VARIANT *p)
{
2045
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2046 2047 2048

    TRACE("(%p)->(%p)\n", This, p);

2049
    return get_style_property_var(&This->css_style, STYLEID_BORDER_TOP_WIDTH, p);
2050 2051 2052 2053
}

static HRESULT WINAPI HTMLStyle_put_borderRightWidth(IHTMLStyle *iface, VARIANT v)
{
2054
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2055 2056 2057

    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));

2058
    return set_style_property_var(&This->css_style, STYLEID_BORDER_RIGHT_WIDTH, &v);
2059 2060 2061 2062
}

static HRESULT WINAPI HTMLStyle_get_borderRightWidth(IHTMLStyle *iface, VARIANT *p)
{
2063
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2064

2065
    TRACE("(%p)->(%p)\n", This, p);
2066

2067
    return get_style_property_var(&This->css_style, STYLEID_BORDER_RIGHT_WIDTH, p);
2068 2069 2070 2071
}

static HRESULT WINAPI HTMLStyle_put_borderBottomWidth(IHTMLStyle *iface, VARIANT v)
{
2072
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2073

2074 2075
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));

2076
    return set_style_property_var(&This->css_style, STYLEID_BORDER_BOTTOM_WIDTH, &v);
2077 2078 2079 2080
}

static HRESULT WINAPI HTMLStyle_get_borderBottomWidth(IHTMLStyle *iface, VARIANT *p)
{
2081
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2082
    TRACE("(%p)->(%p)\n", This, p);
2083
    return get_style_property_var(&This->css_style, STYLEID_BORDER_BOTTOM_WIDTH, p);
2084 2085 2086 2087
}

static HRESULT WINAPI HTMLStyle_put_borderLeftWidth(IHTMLStyle *iface, VARIANT v)
{
2088
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2089 2090 2091

    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));

2092
    return set_style_property_var(&This->css_style, STYLEID_BORDER_LEFT_WIDTH, &v);
2093 2094 2095 2096
}

static HRESULT WINAPI HTMLStyle_get_borderLeftWidth(IHTMLStyle *iface, VARIANT *p)
{
2097
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2098
    TRACE("(%p)->(%p)\n", This, p);
2099
    return get_style_property_var(&This->css_style, STYLEID_BORDER_LEFT_WIDTH, p);
2100 2101 2102 2103
}

static HRESULT WINAPI HTMLStyle_put_borderStyle(IHTMLStyle *iface, BSTR v)
{
2104
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116
    HRESULT hres = S_OK;
    BSTR pstyle;
    int i=0;
    int last = 0;

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

    while(v[i] && hres == S_OK)
    {
        if(v[i] == (WCHAR)' ')
        {
            pstyle = SysAllocStringLen(&v[last], (i-last));
2117
            if( !(is_valid_border_style(pstyle) || wcsicmp(L"window-inset", pstyle) == 0))
2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130
            {
                TRACE("1. Invalid style (%s)\n", debugstr_w(pstyle));
                hres = E_INVALIDARG;
            }
            SysFreeString(pstyle);
            last = i+1;
        }
        i++;
    }

    if(hres == S_OK)
    {
        pstyle = SysAllocStringLen(&v[last], i-last);
2131
        if( !(is_valid_border_style(pstyle) || wcsicmp(L"window-inset", pstyle) == 0))
2132 2133 2134 2135 2136 2137 2138 2139
        {
            TRACE("2. Invalid style (%s)\n", debugstr_w(pstyle));
            hres = E_INVALIDARG;
        }
        SysFreeString(pstyle);
    }

    if(hres == S_OK)
2140
        hres = set_style_property(&This->css_style, STYLEID_BORDER_STYLE, v);
2141 2142

    return hres;
2143 2144 2145 2146
}

static HRESULT WINAPI HTMLStyle_get_borderStyle(IHTMLStyle *iface, BSTR *p)
{
2147
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2148
    TRACE("(%p)->(%p)\n", This, p);
2149
    return get_style_property(&This->css_style, STYLEID_BORDER_STYLE, p);
2150 2151 2152 2153
}

static HRESULT WINAPI HTMLStyle_put_borderTopStyle(IHTMLStyle *iface, BSTR v)
{
2154
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2155
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
2156
    return set_style_property(&This->css_style, STYLEID_BORDER_TOP_STYLE, v);
2157 2158 2159 2160
}

static HRESULT WINAPI HTMLStyle_get_borderTopStyle(IHTMLStyle *iface, BSTR *p)
{
2161
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2162
    TRACE("(%p)->(%p)\n", This, p);
2163
    return get_style_property(&This->css_style, STYLEID_BORDER_TOP_STYLE, p);
2164 2165 2166 2167
}

static HRESULT WINAPI HTMLStyle_put_borderRightStyle(IHTMLStyle *iface, BSTR v)
{
2168
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2169
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
2170
    return set_style_property(&This->css_style, STYLEID_BORDER_RIGHT_STYLE, v);
2171 2172 2173 2174
}

static HRESULT WINAPI HTMLStyle_get_borderRightStyle(IHTMLStyle *iface, BSTR *p)
{
2175
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2176
    TRACE("(%p)->(%p)\n", This, p);
2177
    return get_style_property(&This->css_style, STYLEID_BORDER_RIGHT_STYLE, p);
2178 2179 2180 2181
}

static HRESULT WINAPI HTMLStyle_put_borderBottomStyle(IHTMLStyle *iface, BSTR v)
{
2182
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2183
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
2184
    return set_style_property(&This->css_style, STYLEID_BORDER_BOTTOM_STYLE, v);
2185 2186 2187 2188
}

static HRESULT WINAPI HTMLStyle_get_borderBottomStyle(IHTMLStyle *iface, BSTR *p)
{
2189
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2190
    TRACE("(%p)->(%p)\n", This, p);
2191
    return get_style_property(&This->css_style, STYLEID_BORDER_BOTTOM_STYLE, p);
2192 2193 2194 2195
}

static HRESULT WINAPI HTMLStyle_put_borderLeftStyle(IHTMLStyle *iface, BSTR v)
{
2196
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2197
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
2198
    return set_style_property(&This->css_style, STYLEID_BORDER_LEFT_STYLE, v);
2199 2200 2201 2202
}

static HRESULT WINAPI HTMLStyle_get_borderLeftStyle(IHTMLStyle *iface, BSTR *p)
{
2203
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2204
    TRACE("(%p)->(%p)\n", This, p);
2205
    return get_style_property(&This->css_style, STYLEID_BORDER_LEFT_STYLE, p);
2206 2207 2208 2209
}

static HRESULT WINAPI HTMLStyle_put_width(IHTMLStyle *iface, VARIANT v)
{
2210
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2211

2212
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
2213

2214
    return set_style_property_var(&This->css_style, STYLEID_WIDTH, &v);
2215 2216 2217 2218
}

static HRESULT WINAPI HTMLStyle_get_width(IHTMLStyle *iface, VARIANT *p)
{
2219
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2220 2221 2222

    TRACE("(%p)->(%p)\n", This, p);

2223
    return get_style_property_var(&This->css_style, STYLEID_WIDTH, p);
2224 2225 2226 2227
}

static HRESULT WINAPI HTMLStyle_put_height(IHTMLStyle *iface, VARIANT v)
{
2228
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2229 2230 2231

    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));

2232
    return set_style_property_var(&This->css_style, STYLEID_HEIGHT, &v);
2233 2234 2235 2236
}

static HRESULT WINAPI HTMLStyle_get_height(IHTMLStyle *iface, VARIANT *p)
{
2237
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2238 2239 2240

    TRACE("(%p)->(%p)\n", This, p);

2241
    return get_style_property_var(&This->css_style, STYLEID_HEIGHT, p);
2242 2243 2244 2245
}

static HRESULT WINAPI HTMLStyle_put_styleFloat(IHTMLStyle *iface, BSTR v)
{
2246
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2247 2248 2249

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

2250
    return set_style_property(&This->css_style, STYLEID_FLOAT, v);
2251 2252 2253 2254
}

static HRESULT WINAPI HTMLStyle_get_styleFloat(IHTMLStyle *iface, BSTR *p)
{
2255
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2256 2257 2258

    TRACE("(%p)->(%p)\n", This, p);

2259
    return get_style_property(&This->css_style, STYLEID_FLOAT, p);
2260 2261 2262 2263
}

static HRESULT WINAPI HTMLStyle_put_clear(IHTMLStyle *iface, BSTR v)
{
2264
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2265 2266 2267

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

2268
    return set_style_property(&This->css_style, STYLEID_CLEAR, v);
2269 2270 2271 2272
}

static HRESULT WINAPI HTMLStyle_get_clear(IHTMLStyle *iface, BSTR *p)
{
2273
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2274 2275 2276

    TRACE("(%p)->(%p)\n", This, p);

2277
    return get_style_property(&This->css_style, STYLEID_CLEAR, p);
2278 2279 2280 2281
}

static HRESULT WINAPI HTMLStyle_put_display(IHTMLStyle *iface, BSTR v)
{
2282
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2283 2284 2285

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

2286
    return set_style_property(&This->css_style, STYLEID_DISPLAY, v);
2287 2288 2289 2290
}

static HRESULT WINAPI HTMLStyle_get_display(IHTMLStyle *iface, BSTR *p)
{
2291
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2292 2293 2294

    TRACE("(%p)->(%p)\n", This, p);

2295
    return get_style_property(&This->css_style, STYLEID_DISPLAY, p);
2296 2297 2298 2299
}

static HRESULT WINAPI HTMLStyle_put_visibility(IHTMLStyle *iface, BSTR v)
{
2300
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2301 2302 2303

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

2304
    return set_style_property(&This->css_style, STYLEID_VISIBILITY, v);
2305 2306 2307 2308
}

static HRESULT WINAPI HTMLStyle_get_visibility(IHTMLStyle *iface, BSTR *p)
{
2309
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2310 2311 2312

    TRACE("(%p)->(%p)\n", This, p);

2313
    return get_style_property(&This->css_style, STYLEID_VISIBILITY, p);
2314 2315 2316 2317
}

static HRESULT WINAPI HTMLStyle_put_listStyleType(IHTMLStyle *iface, BSTR v)
{
2318
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2319 2320 2321

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

2322
    return set_style_property(&This->css_style, STYLEID_LISTSTYLETYPE, v);
2323 2324 2325 2326
}

static HRESULT WINAPI HTMLStyle_get_listStyleType(IHTMLStyle *iface, BSTR *p)
{
2327
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2328 2329 2330

    TRACE("(%p)->(%p)\n", This, p);

2331
    return get_style_property(&This->css_style, STYLEID_LISTSTYLETYPE, p);
2332 2333 2334 2335
}

static HRESULT WINAPI HTMLStyle_put_listStylePosition(IHTMLStyle *iface, BSTR v)
{
2336
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2337 2338 2339

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

2340
    return set_style_property(&This->css_style, STYLEID_LISTSTYLEPOSITION, v);
2341 2342 2343 2344
}

static HRESULT WINAPI HTMLStyle_get_listStylePosition(IHTMLStyle *iface, BSTR *p)
{
2345
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2346 2347 2348

    TRACE("(%p)->(%p)\n", This, p);

2349
    return get_style_property(&This->css_style, STYLEID_LISTSTYLEPOSITION, p);
2350 2351 2352 2353
}

static HRESULT WINAPI HTMLStyle_put_listStyleImage(IHTMLStyle *iface, BSTR v)
{
2354
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2355 2356 2357 2358 2359 2360
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle_get_listStyleImage(IHTMLStyle *iface, BSTR *p)
{
2361
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2362 2363 2364 2365 2366 2367
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle_put_listStyle(IHTMLStyle *iface, BSTR v)
{
2368
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2369 2370 2371

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

2372
    return set_style_property(&This->css_style, STYLEID_LIST_STYLE, v);
2373 2374 2375 2376
}

static HRESULT WINAPI HTMLStyle_get_listStyle(IHTMLStyle *iface, BSTR *p)
{
2377
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2378 2379 2380

    TRACE("(%p)->(%p)\n", This, p);

2381
    return get_style_property(&This->css_style, STYLEID_LIST_STYLE, p);
2382 2383 2384 2385
}

static HRESULT WINAPI HTMLStyle_put_whiteSpace(IHTMLStyle *iface, BSTR v)
{
2386
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2387 2388 2389

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

2390
    return set_style_property(&This->css_style, STYLEID_WHITE_SPACE, v);
2391 2392 2393 2394
}

static HRESULT WINAPI HTMLStyle_get_whiteSpace(IHTMLStyle *iface, BSTR *p)
{
2395
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2396 2397 2398

    TRACE("(%p)->(%p)\n", This, p);

2399
    return get_style_property(&This->css_style, STYLEID_WHITE_SPACE, p);
2400 2401 2402 2403
}

static HRESULT WINAPI HTMLStyle_put_top(IHTMLStyle *iface, VARIANT v)
{
2404
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2405 2406 2407

    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));

2408
    return set_style_property_var(&This->css_style, STYLEID_TOP, &v);
2409 2410 2411 2412
}

static HRESULT WINAPI HTMLStyle_get_top(IHTMLStyle *iface, VARIANT *p)
{
2413
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2414 2415 2416

    TRACE("(%p)->(%p)\n", This, p);

2417
    return get_style_property_var(&This->css_style, STYLEID_TOP, p);
2418 2419 2420 2421
}

static HRESULT WINAPI HTMLStyle_put_left(IHTMLStyle *iface, VARIANT v)
{
2422
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2423 2424 2425

    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));

2426
    return set_style_property_var(&This->css_style, STYLEID_LEFT, &v);
2427 2428 2429 2430
}

static HRESULT WINAPI HTMLStyle_get_left(IHTMLStyle *iface, VARIANT *p)
{
2431
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2432 2433 2434

    TRACE("(%p)->(%p)\n", This, p);

2435
    return get_style_property_var(&This->css_style, STYLEID_LEFT, p);
2436 2437 2438 2439
}

static HRESULT WINAPI HTMLStyle_get_position(IHTMLStyle *iface, BSTR *p)
{
2440
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2441
    TRACE("(%p)->(%p)\n", This, p);
2442
    return IHTMLStyle2_get_position(&This->IHTMLStyle2_iface, p);
2443 2444 2445 2446
}

static HRESULT WINAPI HTMLStyle_put_zIndex(IHTMLStyle *iface, VARIANT v)
{
2447
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2448 2449 2450

    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));

2451
    return set_style_property_var(&This->css_style, STYLEID_Z_INDEX, &v);
2452 2453 2454 2455
}

static HRESULT WINAPI HTMLStyle_get_zIndex(IHTMLStyle *iface, VARIANT *p)
{
2456
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2457 2458 2459

    TRACE("(%p)->(%p)\n", This, p);

2460
    return get_style_property_var(&This->css_style, STYLEID_Z_INDEX, p);
2461 2462 2463 2464
}

static HRESULT WINAPI HTMLStyle_put_overflow(IHTMLStyle *iface, BSTR v)
{
2465
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2466 2467 2468

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

2469
    return set_style_property(&This->css_style, STYLEID_OVERFLOW, v);
2470 2471
}

2472

2473 2474
static HRESULT WINAPI HTMLStyle_get_overflow(IHTMLStyle *iface, BSTR *p)
{
2475
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2476 2477 2478 2479 2480 2481

    TRACE("(%p)->(%p)\n", This, p);

    if(!p)
       return E_INVALIDARG;

2482
    return get_style_property(&This->css_style, STYLEID_OVERFLOW, p);
2483 2484 2485 2486
}

static HRESULT WINAPI HTMLStyle_put_pageBreakBefore(IHTMLStyle *iface, BSTR v)
{
2487
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2488 2489 2490

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

2491
    return set_style_property(&This->css_style, STYLEID_PAGE_BREAK_BEFORE, v);
2492 2493 2494 2495
}

static HRESULT WINAPI HTMLStyle_get_pageBreakBefore(IHTMLStyle *iface, BSTR *p)
{
2496
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2497 2498 2499

    TRACE("(%p)->(%p)\n", This, p);

2500
    return get_style_property(&This->css_style, STYLEID_PAGE_BREAK_BEFORE, p);
2501 2502 2503 2504
}

static HRESULT WINAPI HTMLStyle_put_pageBreakAfter(IHTMLStyle *iface, BSTR v)
{
2505
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2506 2507 2508

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

2509
    return set_style_property(&This->css_style, STYLEID_PAGE_BREAK_AFTER, v);
2510 2511 2512 2513
}

static HRESULT WINAPI HTMLStyle_get_pageBreakAfter(IHTMLStyle *iface, BSTR *p)
{
2514
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2515 2516 2517

    TRACE("(%p)->(%p)\n", This, p);

2518
    return get_style_property(&This->css_style, STYLEID_PAGE_BREAK_AFTER, p);
2519 2520 2521 2522
}

static HRESULT WINAPI HTMLStyle_put_cssText(IHTMLStyle *iface, BSTR v)
{
2523
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2524 2525 2526

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

2527
    return IHTMLCSSStyleDeclaration_put_cssText(&This->css_style.IHTMLCSSStyleDeclaration_iface, v);
2528 2529 2530 2531
}

static HRESULT WINAPI HTMLStyle_get_cssText(IHTMLStyle *iface, BSTR *p)
{
2532
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2533 2534 2535

    TRACE("(%p)->(%p)\n", This, p);

2536
    return IHTMLCSSStyleDeclaration_get_cssText(&This->css_style.IHTMLCSSStyleDeclaration_iface, p);
2537 2538
}

2539
static HRESULT WINAPI HTMLStyle_put_pixelTop(IHTMLStyle *iface, LONG v)
2540
{
2541
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2542 2543 2544

    TRACE("(%p)->(%d)\n", This, v);

2545
    return set_style_pxattr(This, STYLEID_TOP, v);
2546 2547
}

2548
static HRESULT WINAPI HTMLStyle_get_pixelTop(IHTMLStyle *iface, LONG *p)
2549
{
2550
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2551 2552 2553 2554

    TRACE("(%p)->(%p)\n", This, p);

    return get_nsstyle_pixel_val(This, STYLEID_TOP, p);
2555 2556
}

2557
static HRESULT WINAPI HTMLStyle_put_pixelLeft(IHTMLStyle *iface, LONG v)
2558
{
2559
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2560 2561 2562

    TRACE("(%p)->(%d)\n", This, v);

2563
    return set_style_pxattr(This, STYLEID_LEFT, v);
2564 2565
}

2566
static HRESULT WINAPI HTMLStyle_get_pixelLeft(IHTMLStyle *iface, LONG *p)
2567
{
2568
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2569 2570 2571 2572

    TRACE("(%p)->(%p)\n", This, p);

    return get_nsstyle_pixel_val(This, STYLEID_LEFT, p);
2573 2574
}

2575
static HRESULT WINAPI HTMLStyle_put_pixelWidth(IHTMLStyle *iface, LONG v)
2576
{
2577
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2578 2579 2580

    TRACE("(%p)->()\n", This);

2581
    return set_style_pxattr(This, STYLEID_WIDTH, v);
2582 2583
}

2584
static HRESULT WINAPI HTMLStyle_get_pixelWidth(IHTMLStyle *iface, LONG *p)
2585
{
2586
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2587 2588 2589 2590

    TRACE("(%p)->(%p)\n", This, p);

    return get_nsstyle_pixel_val(This, STYLEID_WIDTH, p);
2591 2592
}

2593
static HRESULT WINAPI HTMLStyle_put_pixelHeight(IHTMLStyle *iface, LONG v)
2594
{
2595
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2596 2597 2598

    TRACE("(%p)->(%d)\n", This, v);

2599
    return set_style_pxattr(This, STYLEID_HEIGHT, v);
2600 2601
}

2602
static HRESULT WINAPI HTMLStyle_get_pixelHeight(IHTMLStyle *iface, LONG *p)
2603
{
2604
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2605 2606 2607 2608

    TRACE("(%p)->(%p)\n", This, p);

    return get_nsstyle_pixel_val(This, STYLEID_HEIGHT, p);
2609 2610 2611 2612
}

static HRESULT WINAPI HTMLStyle_put_posTop(IHTMLStyle *iface, float v)
{
2613
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2614 2615 2616 2617

    TRACE("(%p)->(%f)\n", This, v);

    return set_style_pos(This, STYLEID_TOP, v);
2618 2619 2620 2621
}

static HRESULT WINAPI HTMLStyle_get_posTop(IHTMLStyle *iface, float *p)
{
2622
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2623 2624 2625 2626 2627 2628 2629

    TRACE("(%p)->(%p)\n", This, p);

    if(!p)
        return E_POINTER;

    return get_nsstyle_pos(This, STYLEID_TOP, p);
2630 2631 2632 2633
}

static HRESULT WINAPI HTMLStyle_put_posLeft(IHTMLStyle *iface, float v)
{
2634
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2635 2636 2637 2638

    TRACE("(%p)->(%f)\n", This, v);

    return set_style_pos(This, STYLEID_LEFT, v);
2639 2640 2641 2642
}

static HRESULT WINAPI HTMLStyle_get_posLeft(IHTMLStyle *iface, float *p)
{
2643
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2644 2645 2646 2647 2648 2649 2650

    TRACE("(%p)->(%p)\n", This, p);

    if(!p)
        return E_POINTER;

    return get_nsstyle_pos(This, STYLEID_LEFT, p);
2651 2652 2653 2654
}

static HRESULT WINAPI HTMLStyle_put_posWidth(IHTMLStyle *iface, float v)
{
2655
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2656 2657 2658 2659

    TRACE("(%p)->(%f)\n", This, v);

    return set_style_pos(This, STYLEID_WIDTH, v);
2660 2661 2662 2663
}

static HRESULT WINAPI HTMLStyle_get_posWidth(IHTMLStyle *iface, float *p)
{
2664
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2665 2666 2667 2668 2669 2670 2671 2672 2673 2674

    TRACE("(%p)->(%p)\n", This, p);

    if(!p)
        return E_POINTER;

    if(get_nsstyle_pos(This, STYLEID_WIDTH, p) != S_OK)
        *p = 0.0f;

    return S_OK;
2675 2676 2677 2678
}

static HRESULT WINAPI HTMLStyle_put_posHeight(IHTMLStyle *iface, float v)
{
2679
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2680 2681 2682 2683

    TRACE("(%p)->(%f)\n", This, v);

    return set_style_pos(This, STYLEID_HEIGHT, v);
2684 2685 2686 2687
}

static HRESULT WINAPI HTMLStyle_get_posHeight(IHTMLStyle *iface, float *p)
{
2688
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2689 2690 2691 2692 2693 2694 2695 2696 2697 2698

    TRACE("(%p)->(%p)\n", This, p);

    if(!p)
        return E_POINTER;

    if(get_nsstyle_pos(This, STYLEID_HEIGHT, p) != S_OK)
        *p = 0.0f;

    return S_OK;
2699 2700 2701 2702
}

static HRESULT WINAPI HTMLStyle_put_cursor(IHTMLStyle *iface, BSTR v)
{
2703
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2704 2705 2706

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

2707
    return set_style_property(&This->css_style, STYLEID_CURSOR, v);
2708 2709 2710 2711
}

static HRESULT WINAPI HTMLStyle_get_cursor(IHTMLStyle *iface, BSTR *p)
{
2712
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2713 2714 2715

    TRACE("(%p)->(%p)\n", This, p);

2716
    return get_style_property(&This->css_style, STYLEID_CURSOR, p);
2717 2718 2719 2720
}

static HRESULT WINAPI HTMLStyle_put_clip(IHTMLStyle *iface, BSTR v)
{
2721
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2722 2723 2724

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

2725
    return set_style_property(&This->css_style, STYLEID_CLIP, v);
2726 2727 2728 2729
}

static HRESULT WINAPI HTMLStyle_get_clip(IHTMLStyle *iface, BSTR *p)
{
2730
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2731 2732 2733

    TRACE("(%p)->(%p)\n", This, p);

2734
    return get_style_property(&This->css_style, STYLEID_CLIP, p);
2735 2736
}

2737 2738 2739 2740 2741 2742 2743
static void set_opacity(HTMLStyle *This, const WCHAR *val)
{
    nsAString name_str, val_str, empty_str;
    nsresult nsres;

    TRACE("%s\n", debugstr_w(val));

2744
    nsAString_InitDepend(&name_str, L"opacity");
2745
    nsAString_InitDepend(&val_str, val);
2746
    nsAString_InitDepend(&empty_str, L"");
2747

2748
    nsres = nsIDOMCSSStyleDeclaration_SetProperty(This->css_style.nsstyle, &name_str, &val_str, &empty_str);
2749 2750 2751 2752 2753 2754 2755 2756 2757 2758
    if(NS_FAILED(nsres))
        ERR("SetProperty failed: %08x\n", nsres);

    nsAString_Finish(&name_str);
    nsAString_Finish(&val_str);
    nsAString_Finish(&empty_str);
}

static void update_filter(HTMLStyle *This)
{
2759
    const WCHAR *ptr, *ptr2;
2760 2761 2762

    static const WCHAR alphaW[] = {'a','l','p','h','a'};

2763
    if(dispex_compat_mode(&This->css_style.dispex) >= COMPAT_MODE_IE10)
2764 2765 2766 2767
        return;

    ptr = This->elem->filter;
    TRACE("%s\n", debugstr_w(ptr));
2768
    if(!ptr) {
2769
        set_opacity(This, L"");
2770 2771 2772 2773
        return;
    }

    while(1) {
2774
        while(iswspace(*ptr))
2775 2776 2777 2778 2779
            ptr++;
        if(!*ptr)
            break;

        ptr2 = ptr;
2780
        while(iswalnum(*ptr))
2781 2782 2783 2784 2785 2786 2787 2788 2789 2790
            ptr++;
        if(ptr == ptr2) {
            WARN("unexpected char '%c'\n", *ptr);
            break;
        }
        if(*ptr != '(') {
            WARN("expected '('\n");
            continue;
        }

2791
        if(ptr2 + ARRAY_SIZE(alphaW) == ptr && !memcmp(ptr2, alphaW, sizeof(alphaW))) {
2792 2793 2794 2795
            static const WCHAR opacityW[] = {'o','p','a','c','i','t','y','='};

            ptr++;
            do {
2796
                while(iswspace(*ptr))
2797 2798 2799 2800 2801 2802 2803 2804 2805 2806
                    ptr++;

                ptr2 = ptr;
                while(*ptr && *ptr != ',' && *ptr != ')')
                    ptr++;
                if(!*ptr) {
                    WARN("unexpected end of string\n");
                    break;
                }

2807
                if(ptr-ptr2 > ARRAY_SIZE(opacityW) && !memcmp(ptr2, opacityW, sizeof(opacityW))) {
2808 2809 2810
                    float fval = 0.0f, e = 0.1f;
                    WCHAR buf[32];

2811
                    ptr2 += ARRAY_SIZE(opacityW);
2812

2813
                    while(is_digit(*ptr2))
2814 2815 2816
                        fval = fval*10.0f + (float)(*ptr2++ - '0');

                    if(*ptr2 == '.') {
2817
                        while(is_digit(*++ptr2)) {
2818 2819 2820 2821 2822
                            fval += e * (float)(*ptr2++ - '0');
                            e *= 0.1f;
                        }
                    }

2823
                    swprintf(buf, ARRAY_SIZE(buf), L"%f", fval * 0.01f);
2824 2825 2826 2827 2828 2829 2830 2831 2832 2833
                    set_opacity(This, buf);
                }else {
                    FIXME("unknown param %s\n", debugstr_wn(ptr2, ptr-ptr2));
                }

                if(*ptr == ',')
                    ptr++;
            }while(*ptr != ')');
        }else {
            FIXME("unknown filter %s\n", debugstr_wn(ptr2, ptr-ptr2));
2834
            ptr = wcschr(ptr, ')');
2835 2836 2837 2838 2839 2840 2841
            if(!ptr)
                break;
            ptr++;
        }
    }
}

2842 2843
static HRESULT WINAPI HTMLStyle_put_filter(IHTMLStyle *iface, BSTR v)
{
2844
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2845
    WCHAR *new_filter = NULL;
2846

2847 2848
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

2849 2850 2851 2852 2853
    if(!This->elem) {
        FIXME("Element already destroyed\n");
        return E_UNEXPECTED;
    }

2854 2855 2856 2857 2858
    if(v) {
        new_filter = heap_strdupW(v);
        if(!new_filter)
            return E_OUTOFMEMORY;
    }
2859

2860 2861
    heap_free(This->elem->filter);
    This->elem->filter = new_filter;
2862 2863

    update_filter(This);
2864
    return S_OK;
2865 2866 2867 2868
}

static HRESULT WINAPI HTMLStyle_get_filter(IHTMLStyle *iface, BSTR *p)
{
2869
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2870

2871 2872
    TRACE("(%p)->(%p)\n", This, p);

2873 2874 2875 2876 2877 2878 2879
    if(!This->elem) {
        FIXME("Element already destroyed\n");
        return E_UNEXPECTED;
    }

    if(This->elem->filter) {
        *p = SysAllocString(This->elem->filter);
2880 2881 2882 2883 2884
        if(!*p)
            return E_OUTOFMEMORY;
    }else {
        *p = NULL;
    }
2885

2886
    return S_OK;
2887 2888 2889 2890 2891
}

static HRESULT WINAPI HTMLStyle_setAttribute(IHTMLStyle *iface, BSTR strAttributeName,
        VARIANT AttributeValue, LONG lFlags)
{
2892
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2893 2894 2895
    HRESULT hres;
    DISPID dispid;

2896 2897
    TRACE("(%p)->(%s %s %08x)\n", This, debugstr_w(strAttributeName),
          debugstr_variant(&AttributeValue), lFlags);
2898 2899 2900 2901 2902 2903 2904

    if(!strAttributeName)
        return E_INVALIDARG;

    if(lFlags == 1)
        FIXME("Parameter lFlags ignored\n");

2905
    hres = HTMLStyle_GetIDsOfNames(iface, &IID_NULL, &strAttributeName, 1,
2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928
                        LOCALE_USER_DEFAULT, &dispid);
    if(hres == S_OK)
    {
        VARIANT ret;
        DISPID dispidNamed = DISPID_PROPERTYPUT;
        DISPPARAMS params;

        params.cArgs = 1;
        params.rgvarg = &AttributeValue;
        params.cNamedArgs = 1;
        params.rgdispidNamedArgs = &dispidNamed;

        hres = HTMLStyle_Invoke(iface, dispid, &IID_NULL, LOCALE_SYSTEM_DEFAULT,
            DISPATCH_PROPERTYPUT, &params, &ret, NULL, NULL);
    }
    else
    {
        FIXME("Custom attributes not supported.\n");
    }

    TRACE("ret: %08x\n", hres);

    return hres;
2929 2930 2931 2932 2933
}

static HRESULT WINAPI HTMLStyle_getAttribute(IHTMLStyle *iface, BSTR strAttributeName,
        LONG lFlags, VARIANT *AttributeValue)
{
2934
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946
    HRESULT hres;
    DISPID dispid;

    TRACE("(%p)->(%s v%p %08x)\n", This, debugstr_w(strAttributeName),
          AttributeValue, lFlags);

    if(!AttributeValue || !strAttributeName)
        return E_INVALIDARG;

    if(lFlags == 1)
        FIXME("Parameter lFlags ignored\n");

2947
    hres = HTMLStyle_GetIDsOfNames(iface, &IID_NULL, &strAttributeName, 1,
2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961
                        LOCALE_USER_DEFAULT, &dispid);
    if(hres == S_OK)
    {
        DISPPARAMS params = {NULL, NULL, 0, 0 };

        hres = HTMLStyle_Invoke(iface, dispid, &IID_NULL, LOCALE_SYSTEM_DEFAULT,
            DISPATCH_PROPERTYGET, &params, AttributeValue, NULL, NULL);
    }
    else
    {
        FIXME("Custom attributes not supported.\n");
    }

    return hres;
2962 2963 2964 2965 2966
}

static HRESULT WINAPI HTMLStyle_removeAttribute(IHTMLStyle *iface, BSTR strAttributeName,
                                                LONG lFlags, VARIANT_BOOL *pfSuccess)
{
2967
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
2968 2969 2970 2971 2972 2973 2974
    const style_tbl_entry_t *style_entry;
    nsAString name_str, ret_str;
    nsresult nsres;
    HRESULT hres;

    TRACE("(%p)->(%s %08x %p)\n", This, debugstr_w(strAttributeName), lFlags, pfSuccess);

2975
    style_entry = lookup_style_tbl(&This->css_style, strAttributeName);
2976
    if(!style_entry) {
2977
        compat_mode_t compat_mode = dispex_compat_mode(&This->css_style.dispex);
2978 2979 2980
        DISPID dispid;
        unsigned i;

2981
        hres = IDispatchEx_GetDispID(&This->css_style.dispex.IDispatchEx_iface, strAttributeName,
2982 2983 2984 2985 2986 2987
                (lFlags&1) ? fdexNameCaseSensitive : fdexNameCaseInsensitive, &dispid);
        if(hres != S_OK) {
            *pfSuccess = VARIANT_FALSE;
            return S_OK;
        }

2988
        for(i=0; i < ARRAY_SIZE(style_tbl); i++) {
2989 2990
            if(dispid == (compat_mode >= COMPAT_MODE_IE9
                          ? style_tbl[i].dispid : style_tbl[i].compat_dispid))
2991 2992 2993
                break;
        }

2994
        if(i == ARRAY_SIZE(style_tbl))
2995
            return remove_attribute(&This->css_style.dispex, dispid, pfSuccess);
2996 2997 2998 2999
        style_entry = style_tbl+i;
    }

    /* filter property is a special case */
3000
    if(style_entry->compat_dispid == DISPID_IHTMLSTYLE_FILTER) {
3001 3002
        if(!This->elem)
            return E_UNEXPECTED;
3003
        *pfSuccess = variant_bool(This->elem->filter && *This->elem->filter);
3004 3005 3006 3007 3008 3009 3010 3011
        heap_free(This->elem->filter);
        This->elem->filter = NULL;
        update_filter(This);
        return S_OK;
    }

    nsAString_InitDepend(&name_str, style_entry->name);
    nsAString_Init(&ret_str, NULL);
3012
    nsres = nsIDOMCSSStyleDeclaration_RemoveProperty(This->css_style.nsstyle, &name_str, &ret_str);
3013 3014 3015
    if(NS_SUCCEEDED(nsres)) {
        const PRUnichar *ret;
        nsAString_GetData(&ret_str, &ret);
3016
        *pfSuccess = variant_bool(*ret);
3017
    }else {
3018
        WARN("RemoveProperty failed: %08x\n", nsres);
3019 3020 3021
    }
    nsAString_Finish(&name_str);
    nsAString_Finish(&ret_str);
3022
    return map_nsresult(nsres);
3023 3024 3025 3026
}

static HRESULT WINAPI HTMLStyle_toString(IHTMLStyle *iface, BSTR *String)
{
3027
    HTMLStyle *This = impl_from_IHTMLStyle(iface);
3028 3029 3030 3031

    TRACE("(%p)->(%p)\n", This, String);

    return dispex_to_string(&This->css_style.dispex, String);
3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222
}

static const IHTMLStyleVtbl HTMLStyleVtbl = {
    HTMLStyle_QueryInterface,
    HTMLStyle_AddRef,
    HTMLStyle_Release,
    HTMLStyle_GetTypeInfoCount,
    HTMLStyle_GetTypeInfo,
    HTMLStyle_GetIDsOfNames,
    HTMLStyle_Invoke,
    HTMLStyle_put_fontFamily,
    HTMLStyle_get_fontFamily,
    HTMLStyle_put_fontStyle,
    HTMLStyle_get_fontStyle,
    HTMLStyle_put_fontVariant,
    HTMLStyle_get_fontVariant,
    HTMLStyle_put_fontWeight,
    HTMLStyle_get_fontWeight,
    HTMLStyle_put_fontSize,
    HTMLStyle_get_fontSize,
    HTMLStyle_put_font,
    HTMLStyle_get_font,
    HTMLStyle_put_color,
    HTMLStyle_get_color,
    HTMLStyle_put_background,
    HTMLStyle_get_background,
    HTMLStyle_put_backgroundColor,
    HTMLStyle_get_backgroundColor,
    HTMLStyle_put_backgroundImage,
    HTMLStyle_get_backgroundImage,
    HTMLStyle_put_backgroundRepeat,
    HTMLStyle_get_backgroundRepeat,
    HTMLStyle_put_backgroundAttachment,
    HTMLStyle_get_backgroundAttachment,
    HTMLStyle_put_backgroundPosition,
    HTMLStyle_get_backgroundPosition,
    HTMLStyle_put_backgroundPositionX,
    HTMLStyle_get_backgroundPositionX,
    HTMLStyle_put_backgroundPositionY,
    HTMLStyle_get_backgroundPositionY,
    HTMLStyle_put_wordSpacing,
    HTMLStyle_get_wordSpacing,
    HTMLStyle_put_letterSpacing,
    HTMLStyle_get_letterSpacing,
    HTMLStyle_put_textDecoration,
    HTMLStyle_get_textDecoration,
    HTMLStyle_put_textDecorationNone,
    HTMLStyle_get_textDecorationNone,
    HTMLStyle_put_textDecorationUnderline,
    HTMLStyle_get_textDecorationUnderline,
    HTMLStyle_put_textDecorationOverline,
    HTMLStyle_get_textDecorationOverline,
    HTMLStyle_put_textDecorationLineThrough,
    HTMLStyle_get_textDecorationLineThrough,
    HTMLStyle_put_textDecorationBlink,
    HTMLStyle_get_textDecorationBlink,
    HTMLStyle_put_verticalAlign,
    HTMLStyle_get_verticalAlign,
    HTMLStyle_put_textTransform,
    HTMLStyle_get_textTransform,
    HTMLStyle_put_textAlign,
    HTMLStyle_get_textAlign,
    HTMLStyle_put_textIndent,
    HTMLStyle_get_textIndent,
    HTMLStyle_put_lineHeight,
    HTMLStyle_get_lineHeight,
    HTMLStyle_put_marginTop,
    HTMLStyle_get_marginTop,
    HTMLStyle_put_marginRight,
    HTMLStyle_get_marginRight,
    HTMLStyle_put_marginBottom,
    HTMLStyle_get_marginBottom,
    HTMLStyle_put_marginLeft,
    HTMLStyle_get_marginLeft,
    HTMLStyle_put_margin,
    HTMLStyle_get_margin,
    HTMLStyle_put_paddingTop,
    HTMLStyle_get_paddingTop,
    HTMLStyle_put_paddingRight,
    HTMLStyle_get_paddingRight,
    HTMLStyle_put_paddingBottom,
    HTMLStyle_get_paddingBottom,
    HTMLStyle_put_paddingLeft,
    HTMLStyle_get_paddingLeft,
    HTMLStyle_put_padding,
    HTMLStyle_get_padding,
    HTMLStyle_put_border,
    HTMLStyle_get_border,
    HTMLStyle_put_borderTop,
    HTMLStyle_get_borderTop,
    HTMLStyle_put_borderRight,
    HTMLStyle_get_borderRight,
    HTMLStyle_put_borderBottom,
    HTMLStyle_get_borderBottom,
    HTMLStyle_put_borderLeft,
    HTMLStyle_get_borderLeft,
    HTMLStyle_put_borderColor,
    HTMLStyle_get_borderColor,
    HTMLStyle_put_borderTopColor,
    HTMLStyle_get_borderTopColor,
    HTMLStyle_put_borderRightColor,
    HTMLStyle_get_borderRightColor,
    HTMLStyle_put_borderBottomColor,
    HTMLStyle_get_borderBottomColor,
    HTMLStyle_put_borderLeftColor,
    HTMLStyle_get_borderLeftColor,
    HTMLStyle_put_borderWidth,
    HTMLStyle_get_borderWidth,
    HTMLStyle_put_borderTopWidth,
    HTMLStyle_get_borderTopWidth,
    HTMLStyle_put_borderRightWidth,
    HTMLStyle_get_borderRightWidth,
    HTMLStyle_put_borderBottomWidth,
    HTMLStyle_get_borderBottomWidth,
    HTMLStyle_put_borderLeftWidth,
    HTMLStyle_get_borderLeftWidth,
    HTMLStyle_put_borderStyle,
    HTMLStyle_get_borderStyle,
    HTMLStyle_put_borderTopStyle,
    HTMLStyle_get_borderTopStyle,
    HTMLStyle_put_borderRightStyle,
    HTMLStyle_get_borderRightStyle,
    HTMLStyle_put_borderBottomStyle,
    HTMLStyle_get_borderBottomStyle,
    HTMLStyle_put_borderLeftStyle,
    HTMLStyle_get_borderLeftStyle,
    HTMLStyle_put_width,
    HTMLStyle_get_width,
    HTMLStyle_put_height,
    HTMLStyle_get_height,
    HTMLStyle_put_styleFloat,
    HTMLStyle_get_styleFloat,
    HTMLStyle_put_clear,
    HTMLStyle_get_clear,
    HTMLStyle_put_display,
    HTMLStyle_get_display,
    HTMLStyle_put_visibility,
    HTMLStyle_get_visibility,
    HTMLStyle_put_listStyleType,
    HTMLStyle_get_listStyleType,
    HTMLStyle_put_listStylePosition,
    HTMLStyle_get_listStylePosition,
    HTMLStyle_put_listStyleImage,
    HTMLStyle_get_listStyleImage,
    HTMLStyle_put_listStyle,
    HTMLStyle_get_listStyle,
    HTMLStyle_put_whiteSpace,
    HTMLStyle_get_whiteSpace,
    HTMLStyle_put_top,
    HTMLStyle_get_top,
    HTMLStyle_put_left,
    HTMLStyle_get_left,
    HTMLStyle_get_position,
    HTMLStyle_put_zIndex,
    HTMLStyle_get_zIndex,
    HTMLStyle_put_overflow,
    HTMLStyle_get_overflow,
    HTMLStyle_put_pageBreakBefore,
    HTMLStyle_get_pageBreakBefore,
    HTMLStyle_put_pageBreakAfter,
    HTMLStyle_get_pageBreakAfter,
    HTMLStyle_put_cssText,
    HTMLStyle_get_cssText,
    HTMLStyle_put_pixelTop,
    HTMLStyle_get_pixelTop,
    HTMLStyle_put_pixelLeft,
    HTMLStyle_get_pixelLeft,
    HTMLStyle_put_pixelWidth,
    HTMLStyle_get_pixelWidth,
    HTMLStyle_put_pixelHeight,
    HTMLStyle_get_pixelHeight,
    HTMLStyle_put_posTop,
    HTMLStyle_get_posTop,
    HTMLStyle_put_posLeft,
    HTMLStyle_get_posLeft,
    HTMLStyle_put_posWidth,
    HTMLStyle_get_posWidth,
    HTMLStyle_put_posHeight,
    HTMLStyle_get_posHeight,
    HTMLStyle_put_cursor,
    HTMLStyle_get_cursor,
    HTMLStyle_put_clip,
    HTMLStyle_get_clip,
    HTMLStyle_put_filter,
    HTMLStyle_get_filter,
    HTMLStyle_setAttribute,
    HTMLStyle_getAttribute,
    HTMLStyle_removeAttribute,
    HTMLStyle_toString
};

3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251
static inline HTMLStyle *impl_from_IHTMLStyle2(IHTMLStyle2 *iface)
{
    return CONTAINING_RECORD(iface, HTMLStyle, IHTMLStyle2_iface);
}

static HRESULT WINAPI HTMLStyle2_QueryInterface(IHTMLStyle2 *iface, REFIID riid, void **ppv)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);

    return IHTMLStyle_QueryInterface(&This->IHTMLStyle_iface, riid, ppv);
}

static ULONG WINAPI HTMLStyle2_AddRef(IHTMLStyle2 *iface)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);

    return IHTMLStyle_AddRef(&This->IHTMLStyle_iface);
}

static ULONG WINAPI HTMLStyle2_Release(IHTMLStyle2 *iface)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);

    return IHTMLStyle_Release(&This->IHTMLStyle_iface);
}

static HRESULT WINAPI HTMLStyle2_GetTypeInfoCount(IHTMLStyle2 *iface, UINT *pctinfo)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
3252
    return IDispatchEx_GetTypeInfoCount(&This->css_style.dispex.IDispatchEx_iface, pctinfo);
3253 3254 3255 3256 3257 3258
}

static HRESULT WINAPI HTMLStyle2_GetTypeInfo(IHTMLStyle2 *iface, UINT iTInfo,
                                              LCID lcid, ITypeInfo **ppTInfo)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
3259
    return IDispatchEx_GetTypeInfo(&This->css_style.dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
3260 3261 3262 3263 3264 3265 3266
}

static HRESULT WINAPI HTMLStyle2_GetIDsOfNames(IHTMLStyle2 *iface, REFIID riid,
                                                LPOLESTR *rgszNames, UINT cNames,
                                                LCID lcid, DISPID *rgDispId)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
3267
    return IDispatchEx_GetIDsOfNames(&This->css_style.dispex.IDispatchEx_iface, riid, rgszNames, cNames,
3268 3269 3270 3271 3272 3273 3274 3275
            lcid, rgDispId);
}

static HRESULT WINAPI HTMLStyle2_Invoke(IHTMLStyle2 *iface, DISPID dispIdMember,
                            REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
                            VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
3276
    return IDispatchEx_Invoke(&This->css_style.dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
3277 3278 3279 3280 3281 3282 3283 3284 3285
            wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
}

static HRESULT WINAPI HTMLStyle2_put_tableLayout(IHTMLStyle2 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

3286
    return set_style_property(&This->css_style, STYLEID_TABLE_LAYOUT, v);
3287 3288 3289 3290 3291 3292 3293 3294
}

static HRESULT WINAPI HTMLStyle2_get_tableLayout(IHTMLStyle2 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);

    TRACE("(%p)->(%p)\n", This, p);

3295
    return get_style_property(&This->css_style, STYLEID_TABLE_LAYOUT, p);
3296 3297 3298 3299 3300
}

static HRESULT WINAPI HTMLStyle2_put_borderCollapse(IHTMLStyle2 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
3301 3302 3303

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

3304
    return set_style_property(&This->css_style, STYLEID_BORDER_COLLAPSE, v);
3305 3306 3307 3308 3309
}

static HRESULT WINAPI HTMLStyle2_get_borderCollapse(IHTMLStyle2 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
3310 3311 3312

    TRACE("(%p)->(%p)\n", This, p);

3313
    return get_style_property(&This->css_style, STYLEID_BORDER_COLLAPSE, p);
3314 3315 3316 3317 3318 3319 3320 3321
}

static HRESULT WINAPI HTMLStyle2_put_direction(IHTMLStyle2 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

3322
    return set_style_property(&This->css_style, STYLEID_DIRECTION, v);
3323 3324 3325 3326 3327 3328 3329 3330
}

static HRESULT WINAPI HTMLStyle2_get_direction(IHTMLStyle2 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);

    TRACE("(%p)->(%p)\n", This, p);

3331
    return get_style_property(&This->css_style, STYLEID_DIRECTION, p);
3332 3333 3334 3335 3336 3337
}

static HRESULT WINAPI HTMLStyle2_put_behavior(IHTMLStyle2 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
3338
    return S_OK;
3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374
}

static HRESULT WINAPI HTMLStyle2_get_behavior(IHTMLStyle2 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_setExpression(IHTMLStyle2 *iface, BSTR propname, BSTR expression, BSTR language)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%s %s %s)\n", This, debugstr_w(propname), debugstr_w(expression), debugstr_w(language));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_getExpression(IHTMLStyle2 *iface, BSTR propname, VARIANT *expression)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%s %p)\n", This, debugstr_w(propname), expression);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_removeExpression(IHTMLStyle2 *iface, BSTR propname, VARIANT_BOOL *pfSuccess)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%s %p)\n", This, debugstr_w(propname), pfSuccess);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_put_position(IHTMLStyle2 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

3375
    return set_style_property(&This->css_style, STYLEID_POSITION, v);
3376 3377 3378 3379 3380 3381 3382 3383
}

static HRESULT WINAPI HTMLStyle2_get_position(IHTMLStyle2 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);

    TRACE("(%p)->(%p)\n", This, p);

3384
    return get_style_property(&This->css_style, STYLEID_POSITION, p);
3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406
}

static HRESULT WINAPI HTMLStyle2_put_unicodeBidi(IHTMLStyle2 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_get_unicodeBidi(IHTMLStyle2 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_put_bottom(IHTMLStyle2 *iface, VARIANT v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);

    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));

3407
    return set_style_property_var(&This->css_style, STYLEID_BOTTOM, &v);
3408 3409 3410 3411 3412 3413 3414 3415
}

static HRESULT WINAPI HTMLStyle2_get_bottom(IHTMLStyle2 *iface, VARIANT *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);

    TRACE("(%p)->(%p)\n", This, p);

3416
    return get_style_property_var(&This->css_style, STYLEID_BOTTOM, p);
3417 3418 3419 3420 3421 3422 3423 3424
}

static HRESULT WINAPI HTMLStyle2_put_right(IHTMLStyle2 *iface, VARIANT v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);

    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));

3425
    return set_style_property_var(&This->css_style, STYLEID_RIGHT, &v);
3426 3427 3428 3429 3430 3431 3432 3433
}

static HRESULT WINAPI HTMLStyle2_get_right(IHTMLStyle2 *iface, VARIANT *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);

    TRACE("(%p)->(%p)\n", This, p);

3434
    return get_style_property_var(&This->css_style, STYLEID_RIGHT, p);
3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708
}

static HRESULT WINAPI HTMLStyle2_put_pixelBottom(IHTMLStyle2 *iface, LONG v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%d)\n", This, v);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_get_pixelBottom(IHTMLStyle2 *iface, LONG *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_put_pixelRight(IHTMLStyle2 *iface, LONG v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%d)\n", This, v);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_get_pixelRight(IHTMLStyle2 *iface, LONG *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_put_posBottom(IHTMLStyle2 *iface, float v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%f)\n", This, v);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_get_posBottom(IHTMLStyle2 *iface, float *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_put_posRight(IHTMLStyle2 *iface, float v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%f)\n", This, v);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_get_posRight(IHTMLStyle2 *iface, float *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_put_imeMode(IHTMLStyle2 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_get_imeMode(IHTMLStyle2 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_put_rubyAlign(IHTMLStyle2 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_get_rubyAlign(IHTMLStyle2 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_put_rubyPosition(IHTMLStyle2 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_get_rubyPosition(IHTMLStyle2 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_put_rubyOverhang(IHTMLStyle2 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_get_rubyOverhang(IHTMLStyle2 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_put_layoutGridChar(IHTMLStyle2 *iface, VARIANT v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_get_layoutGridChar(IHTMLStyle2 *iface, VARIANT *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_put_layoutGridLine(IHTMLStyle2 *iface, VARIANT v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_get_layoutGridLine(IHTMLStyle2 *iface, VARIANT *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_put_layoutGridMode(IHTMLStyle2 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_get_layoutGridMode(IHTMLStyle2 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_put_layoutGridType(IHTMLStyle2 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_get_layoutGridType(IHTMLStyle2 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_put_layoutGrid(IHTMLStyle2 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_get_layoutGrid(IHTMLStyle2 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_put_wordBreak(IHTMLStyle2 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_get_wordBreak(IHTMLStyle2 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_put_lineBreak(IHTMLStyle2 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_get_lineBreak(IHTMLStyle2 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_put_textJustify(IHTMLStyle2 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_get_textJustify(IHTMLStyle2 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_put_textJustifyTrim(IHTMLStyle2 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_get_textJustifyTrim(IHTMLStyle2 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_put_textKashida(IHTMLStyle2 *iface, VARIANT v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_get_textKashida(IHTMLStyle2 *iface, VARIANT *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_put_textAutospace(IHTMLStyle2 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_get_textAutospace(IHTMLStyle2 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_put_overflowX(IHTMLStyle2 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

3709
    return set_style_property(&This->css_style, STYLEID_OVERFLOW_X, v);
3710 3711 3712 3713 3714 3715 3716 3717
}

static HRESULT WINAPI HTMLStyle2_get_overflowX(IHTMLStyle2 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);

    TRACE("(%p)->(%p)\n", This, p);

3718
    return get_style_property(&This->css_style, STYLEID_OVERFLOW_X, p);
3719 3720 3721 3722 3723 3724 3725 3726
}

static HRESULT WINAPI HTMLStyle2_put_overflowY(IHTMLStyle2 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

3727
    return set_style_property(&This->css_style, STYLEID_OVERFLOW_Y, v);
3728 3729 3730 3731 3732 3733 3734 3735
}

static HRESULT WINAPI HTMLStyle2_get_overflowY(IHTMLStyle2 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);

    TRACE("(%p)->(%p)\n", This, p);

3736
    return get_style_property(&This->css_style, STYLEID_OVERFLOW_Y, p);
3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825
}

static HRESULT WINAPI HTMLStyle2_put_accelerator(IHTMLStyle2 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle2_get_accelerator(IHTMLStyle2 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle2(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static const IHTMLStyle2Vtbl HTMLStyle2Vtbl = {
    HTMLStyle2_QueryInterface,
    HTMLStyle2_AddRef,
    HTMLStyle2_Release,
    HTMLStyle2_GetTypeInfoCount,
    HTMLStyle2_GetTypeInfo,
    HTMLStyle2_GetIDsOfNames,
    HTMLStyle2_Invoke,
    HTMLStyle2_put_tableLayout,
    HTMLStyle2_get_tableLayout,
    HTMLStyle2_put_borderCollapse,
    HTMLStyle2_get_borderCollapse,
    HTMLStyle2_put_direction,
    HTMLStyle2_get_direction,
    HTMLStyle2_put_behavior,
    HTMLStyle2_get_behavior,
    HTMLStyle2_setExpression,
    HTMLStyle2_getExpression,
    HTMLStyle2_removeExpression,
    HTMLStyle2_put_position,
    HTMLStyle2_get_position,
    HTMLStyle2_put_unicodeBidi,
    HTMLStyle2_get_unicodeBidi,
    HTMLStyle2_put_bottom,
    HTMLStyle2_get_bottom,
    HTMLStyle2_put_right,
    HTMLStyle2_get_right,
    HTMLStyle2_put_pixelBottom,
    HTMLStyle2_get_pixelBottom,
    HTMLStyle2_put_pixelRight,
    HTMLStyle2_get_pixelRight,
    HTMLStyle2_put_posBottom,
    HTMLStyle2_get_posBottom,
    HTMLStyle2_put_posRight,
    HTMLStyle2_get_posRight,
    HTMLStyle2_put_imeMode,
    HTMLStyle2_get_imeMode,
    HTMLStyle2_put_rubyAlign,
    HTMLStyle2_get_rubyAlign,
    HTMLStyle2_put_rubyPosition,
    HTMLStyle2_get_rubyPosition,
    HTMLStyle2_put_rubyOverhang,
    HTMLStyle2_get_rubyOverhang,
    HTMLStyle2_put_layoutGridChar,
    HTMLStyle2_get_layoutGridChar,
    HTMLStyle2_put_layoutGridLine,
    HTMLStyle2_get_layoutGridLine,
    HTMLStyle2_put_layoutGridMode,
    HTMLStyle2_get_layoutGridMode,
    HTMLStyle2_put_layoutGridType,
    HTMLStyle2_get_layoutGridType,
    HTMLStyle2_put_layoutGrid,
    HTMLStyle2_get_layoutGrid,
    HTMLStyle2_put_wordBreak,
    HTMLStyle2_get_wordBreak,
    HTMLStyle2_put_lineBreak,
    HTMLStyle2_get_lineBreak,
    HTMLStyle2_put_textJustify,
    HTMLStyle2_get_textJustify,
    HTMLStyle2_put_textJustifyTrim,
    HTMLStyle2_get_textJustifyTrim,
    HTMLStyle2_put_textKashida,
    HTMLStyle2_get_textKashida,
    HTMLStyle2_put_textAutospace,
    HTMLStyle2_get_textAutospace,
    HTMLStyle2_put_overflowX,
    HTMLStyle2_get_overflowX,
    HTMLStyle2_put_overflowY,
    HTMLStyle2_get_overflowY,
    HTMLStyle2_put_accelerator,
    HTMLStyle2_get_accelerator
};

3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854
static inline HTMLStyle *impl_from_IHTMLStyle3(IHTMLStyle3 *iface)
{
    return CONTAINING_RECORD(iface, HTMLStyle, IHTMLStyle3_iface);
}

static HRESULT WINAPI HTMLStyle3_QueryInterface(IHTMLStyle3 *iface, REFIID riid, void **ppv)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);

    return IHTMLStyle_QueryInterface(&This->IHTMLStyle_iface, riid, ppv);
}

static ULONG WINAPI HTMLStyle3_AddRef(IHTMLStyle3 *iface)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);

    return IHTMLStyle_AddRef(&This->IHTMLStyle_iface);
}

static ULONG WINAPI HTMLStyle3_Release(IHTMLStyle3 *iface)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);

    return IHTMLStyle_Release(&This->IHTMLStyle_iface);
}

static HRESULT WINAPI HTMLStyle3_GetTypeInfoCount(IHTMLStyle3 *iface, UINT *pctinfo)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
3855
    return IDispatchEx_GetTypeInfoCount(&This->css_style.dispex.IDispatchEx_iface, pctinfo);
3856 3857 3858 3859 3860 3861
}

static HRESULT WINAPI HTMLStyle3_GetTypeInfo(IHTMLStyle3 *iface, UINT iTInfo,
                                              LCID lcid, ITypeInfo **ppTInfo)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
3862
    return IDispatchEx_GetTypeInfo(&This->css_style.dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
3863 3864 3865 3866 3867 3868 3869
}

static HRESULT WINAPI HTMLStyle3_GetIDsOfNames(IHTMLStyle3 *iface, REFIID riid,
                                                LPOLESTR *rgszNames, UINT cNames,
                                                LCID lcid, DISPID *rgDispId)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
3870
    return IDispatchEx_GetIDsOfNames(&This->css_style.dispex.IDispatchEx_iface, riid, rgszNames, cNames,
3871 3872 3873 3874 3875 3876 3877 3878
            lcid, rgDispId);
}

static HRESULT WINAPI HTMLStyle3_Invoke(IHTMLStyle3 *iface, DISPID dispIdMember,
                            REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
                            VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
3879
    return IDispatchEx_Invoke(&This->css_style.dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902
            wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
}

static HRESULT WINAPI HTMLStyle3_put_layoutFlow(IHTMLStyle3 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle3_get_layoutFlow(IHTMLStyle3 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle3_put_zoom(IHTMLStyle3 *iface, VARIANT v)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);

    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));

3903
    return IHTMLCSSStyleDeclaration_put_zoom(&This->css_style.IHTMLCSSStyleDeclaration_iface, v);
3904 3905 3906 3907 3908 3909 3910 3911
}

static HRESULT WINAPI HTMLStyle3_get_zoom(IHTMLStyle3 *iface, VARIANT *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);

    TRACE("(%p)->(%p)\n", This, p);

3912
    return IHTMLCSSStyleDeclaration_get_zoom(&This->css_style.IHTMLCSSStyleDeclaration_iface, p);
3913 3914 3915 3916 3917 3918 3919 3920
}

static HRESULT WINAPI HTMLStyle3_put_wordWrap(IHTMLStyle3 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

3921
    return set_style_property(&This->css_style, STYLEID_WORD_WRAP, v);
3922 3923 3924 3925 3926 3927 3928 3929
}

static HRESULT WINAPI HTMLStyle3_get_wordWrap(IHTMLStyle3 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);

    TRACE("(%p)->(%p)\n", This, p);

3930
    return get_style_property(&This->css_style, STYLEID_WORD_WRAP, p);
3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950
}

static HRESULT WINAPI HTMLStyle3_put_textUnderlinePosition(IHTMLStyle3 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle3_get_textUnderlinePosition(IHTMLStyle3 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle3_put_scrollbarBaseColor(IHTMLStyle3 *iface, VARIANT v)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
3951
    return S_OK;
3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964
}

static HRESULT WINAPI HTMLStyle3_get_scrollbarBaseColor(IHTMLStyle3 *iface, VARIANT *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle3_put_scrollbarFaceColor(IHTMLStyle3 *iface, VARIANT v)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
3965
    return S_OK;
3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978
}

static HRESULT WINAPI HTMLStyle3_get_scrollbarFaceColor(IHTMLStyle3 *iface, VARIANT *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle3_put_scrollbar3dLightColor(IHTMLStyle3 *iface, VARIANT v)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
3979
    return S_OK;
3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992
}

static HRESULT WINAPI HTMLStyle3_get_scrollbar3dLightColor(IHTMLStyle3 *iface, VARIANT *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle3_put_scrollbarShadowColor(IHTMLStyle3 *iface, VARIANT v)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
3993
    return S_OK;
3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006
}

static HRESULT WINAPI HTMLStyle3_get_scrollbarShadowColor(IHTMLStyle3 *iface, VARIANT *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle3_put_scrollbarHighlightColor(IHTMLStyle3 *iface, VARIANT v)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
4007
    return S_OK;
4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020
}

static HRESULT WINAPI HTMLStyle3_get_scrollbarHighlightColor(IHTMLStyle3 *iface, VARIANT *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle3_put_scrollbarDarkShadowColor(IHTMLStyle3 *iface, VARIANT v)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
4021
    return S_OK;
4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034
}

static HRESULT WINAPI HTMLStyle3_get_scrollbarDarkShadowColor(IHTMLStyle3 *iface, VARIANT *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle3_put_scrollbarArrowColor(IHTMLStyle3 *iface, VARIANT v)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
4035
    return S_OK;
4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048
}

static HRESULT WINAPI HTMLStyle3_get_scrollbarArrowColor(IHTMLStyle3 *iface, VARIANT *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle3_put_scrollbarTrackColor(IHTMLStyle3 *iface, VARIANT v)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
4049
    return S_OK;
4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172
}

static HRESULT WINAPI HTMLStyle3_get_scrollbarTrackColor(IHTMLStyle3 *iface, VARIANT *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle3_put_writingMode(IHTMLStyle3 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle3_get_writingMode(IHTMLStyle3 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle3_put_textAlignLast(IHTMLStyle3 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle3_get_textAlignLast(IHTMLStyle3 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle3_put_textKashidaSpace(IHTMLStyle3 *iface, VARIANT v)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle3_get_textKashidaSpace(IHTMLStyle3 *iface, VARIANT *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle3(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static const IHTMLStyle3Vtbl HTMLStyle3Vtbl = {
    HTMLStyle3_QueryInterface,
    HTMLStyle3_AddRef,
    HTMLStyle3_Release,
    HTMLStyle3_GetTypeInfoCount,
    HTMLStyle3_GetTypeInfo,
    HTMLStyle3_GetIDsOfNames,
    HTMLStyle3_Invoke,
    HTMLStyle3_put_layoutFlow,
    HTMLStyle3_get_layoutFlow,
    HTMLStyle3_put_zoom,
    HTMLStyle3_get_zoom,
    HTMLStyle3_put_wordWrap,
    HTMLStyle3_get_wordWrap,
    HTMLStyle3_put_textUnderlinePosition,
    HTMLStyle3_get_textUnderlinePosition,
    HTMLStyle3_put_scrollbarBaseColor,
    HTMLStyle3_get_scrollbarBaseColor,
    HTMLStyle3_put_scrollbarFaceColor,
    HTMLStyle3_get_scrollbarFaceColor,
    HTMLStyle3_put_scrollbar3dLightColor,
    HTMLStyle3_get_scrollbar3dLightColor,
    HTMLStyle3_put_scrollbarShadowColor,
    HTMLStyle3_get_scrollbarShadowColor,
    HTMLStyle3_put_scrollbarHighlightColor,
    HTMLStyle3_get_scrollbarHighlightColor,
    HTMLStyle3_put_scrollbarDarkShadowColor,
    HTMLStyle3_get_scrollbarDarkShadowColor,
    HTMLStyle3_put_scrollbarArrowColor,
    HTMLStyle3_get_scrollbarArrowColor,
    HTMLStyle3_put_scrollbarTrackColor,
    HTMLStyle3_get_scrollbarTrackColor,
    HTMLStyle3_put_writingMode,
    HTMLStyle3_get_writingMode,
    HTMLStyle3_put_textAlignLast,
    HTMLStyle3_get_textAlignLast,
    HTMLStyle3_put_textKashidaSpace,
    HTMLStyle3_get_textKashidaSpace
};

/*
 * IHTMLStyle4 Interface
 */
static inline HTMLStyle *impl_from_IHTMLStyle4(IHTMLStyle4 *iface)
{
    return CONTAINING_RECORD(iface, HTMLStyle, IHTMLStyle4_iface);
}

static HRESULT WINAPI HTMLStyle4_QueryInterface(IHTMLStyle4 *iface, REFIID riid, void **ppv)
{
    HTMLStyle *This = impl_from_IHTMLStyle4(iface);

    return IHTMLStyle_QueryInterface(&This->IHTMLStyle_iface, riid, ppv);
}

static ULONG WINAPI HTMLStyle4_AddRef(IHTMLStyle4 *iface)
{
    HTMLStyle *This = impl_from_IHTMLStyle4(iface);

    return IHTMLStyle_AddRef(&This->IHTMLStyle_iface);
}

static ULONG WINAPI HTMLStyle4_Release(IHTMLStyle4 *iface)
{
    HTMLStyle *This = impl_from_IHTMLStyle4(iface);

    return IHTMLStyle_Release(&This->IHTMLStyle_iface);
}

static HRESULT WINAPI HTMLStyle4_GetTypeInfoCount(IHTMLStyle4 *iface, UINT *pctinfo)
{
    HTMLStyle *This = impl_from_IHTMLStyle4(iface);
4173
    return IDispatchEx_GetTypeInfoCount(&This->css_style.dispex.IDispatchEx_iface, pctinfo);
4174 4175 4176 4177 4178 4179
}

static HRESULT WINAPI HTMLStyle4_GetTypeInfo(IHTMLStyle4 *iface, UINT iTInfo,
                                              LCID lcid, ITypeInfo **ppTInfo)
{
    HTMLStyle *This = impl_from_IHTMLStyle4(iface);
4180
    return IDispatchEx_GetTypeInfo(&This->css_style.dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
4181 4182 4183 4184 4185 4186 4187
}

static HRESULT WINAPI HTMLStyle4_GetIDsOfNames(IHTMLStyle4 *iface, REFIID riid,
                                                LPOLESTR *rgszNames, UINT cNames,
                                                LCID lcid, DISPID *rgDispId)
{
    HTMLStyle *This = impl_from_IHTMLStyle4(iface);
4188
    return IDispatchEx_GetIDsOfNames(&This->css_style.dispex.IDispatchEx_iface, riid, rgszNames, cNames,
4189 4190 4191 4192 4193 4194 4195 4196
            lcid, rgDispId);
}

static HRESULT WINAPI HTMLStyle4_Invoke(IHTMLStyle4 *iface, DISPID dispIdMember,
                            REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
                            VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
{
    HTMLStyle *This = impl_from_IHTMLStyle4(iface);
4197
    return IDispatchEx_Invoke(&This->css_style.dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220
            wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
}

static HRESULT WINAPI HTMLStyle4_put_textOverflow(IHTMLStyle4 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle4(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle4_get_textOverflow(IHTMLStyle4 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle4(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle4_put_minHeight(IHTMLStyle4 *iface, VARIANT v)
{
    HTMLStyle *This = impl_from_IHTMLStyle4(iface);

    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));

4221
    return set_style_property_var(&This->css_style, STYLEID_MIN_HEIGHT, &v);
4222 4223 4224 4225 4226 4227 4228 4229
}

static HRESULT WINAPI HTMLStyle4_get_minHeight(IHTMLStyle4 *iface, VARIANT *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle4(iface);

    TRACE("(%p)->(%p)\n", This, p);

4230
    return get_style_property_var(&This->css_style, STYLEID_MIN_HEIGHT, p);
4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275
}

static const IHTMLStyle4Vtbl HTMLStyle4Vtbl = {
    HTMLStyle4_QueryInterface,
    HTMLStyle4_AddRef,
    HTMLStyle4_Release,
    HTMLStyle4_GetTypeInfoCount,
    HTMLStyle4_GetTypeInfo,
    HTMLStyle4_GetIDsOfNames,
    HTMLStyle4_Invoke,
    HTMLStyle4_put_textOverflow,
    HTMLStyle4_get_textOverflow,
    HTMLStyle4_put_minHeight,
    HTMLStyle4_get_minHeight
};

static inline HTMLStyle *impl_from_IHTMLStyle5(IHTMLStyle5 *iface)
{
    return CONTAINING_RECORD(iface, HTMLStyle, IHTMLStyle5_iface);
}

static HRESULT WINAPI HTMLStyle5_QueryInterface(IHTMLStyle5 *iface, REFIID riid, void **ppv)
{
    HTMLStyle *This = impl_from_IHTMLStyle5(iface);

    return IHTMLStyle_QueryInterface(&This->IHTMLStyle_iface, riid, ppv);
}

static ULONG WINAPI HTMLStyle5_AddRef(IHTMLStyle5 *iface)
{
    HTMLStyle *This = impl_from_IHTMLStyle5(iface);

    return IHTMLStyle_AddRef(&This->IHTMLStyle_iface);
}

static ULONG WINAPI HTMLStyle5_Release(IHTMLStyle5 *iface)
{
    HTMLStyle *This = impl_from_IHTMLStyle5(iface);

    return IHTMLStyle_Release(&This->IHTMLStyle_iface);
}

static HRESULT WINAPI HTMLStyle5_GetTypeInfoCount(IHTMLStyle5 *iface, UINT *pctinfo)
{
    HTMLStyle *This = impl_from_IHTMLStyle5(iface);
4276
    return IDispatchEx_GetTypeInfoCount(&This->css_style.dispex.IDispatchEx_iface, pctinfo);
4277 4278 4279 4280 4281 4282
}

static HRESULT WINAPI HTMLStyle5_GetTypeInfo(IHTMLStyle5 *iface, UINT iTInfo,
        LCID lcid, ITypeInfo **ppTInfo)
{
    HTMLStyle *This = impl_from_IHTMLStyle5(iface);
4283
    return IDispatchEx_GetTypeInfo(&This->css_style.dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
4284 4285 4286 4287 4288 4289
}

static HRESULT WINAPI HTMLStyle5_GetIDsOfNames(IHTMLStyle5 *iface, REFIID riid,
        LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
{
    HTMLStyle *This = impl_from_IHTMLStyle5(iface);
4290
    return IDispatchEx_GetIDsOfNames(&This->css_style.dispex.IDispatchEx_iface, riid, rgszNames, cNames,
4291 4292 4293 4294 4295 4296 4297 4298
            lcid, rgDispId);
}

static HRESULT WINAPI HTMLStyle5_Invoke(IHTMLStyle5 *iface, DISPID dispIdMember,
                            REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
                            VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
{
    HTMLStyle *This = impl_from_IHTMLStyle5(iface);
4299
    return IDispatchEx_Invoke(&This->css_style.dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322
            wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
}

static HRESULT WINAPI HTMLStyle5_put_msInterpolationMode(IHTMLStyle5 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle5(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle5_get_msInterpolationMode(IHTMLStyle5 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle5(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle5_put_maxHeight(IHTMLStyle5 *iface, VARIANT v)
{
    HTMLStyle *This = impl_from_IHTMLStyle5(iface);

    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));

4323
    return set_style_property_var(&This->css_style, STYLEID_MAX_HEIGHT, &v);
4324 4325 4326 4327 4328 4329 4330 4331
}

static HRESULT WINAPI HTMLStyle5_get_maxHeight(IHTMLStyle5 *iface, VARIANT *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle5(iface);

    TRACE("(%p)->(%s)\n", This, debugstr_variant(p));

4332
    return get_style_property_var(&This->css_style, STYLEID_MAX_HEIGHT, p);
4333 4334 4335 4336 4337 4338 4339 4340
}

static HRESULT WINAPI HTMLStyle5_put_minWidth(IHTMLStyle5 *iface, VARIANT v)
{
    HTMLStyle *This = impl_from_IHTMLStyle5(iface);

    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));

4341
    return set_style_property_var(&This->css_style, STYLEID_MIN_WIDTH, &v);
4342 4343 4344 4345 4346 4347 4348 4349
}

static HRESULT WINAPI HTMLStyle5_get_minWidth(IHTMLStyle5 *iface, VARIANT *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle5(iface);

    TRACE("(%p)->(%p)\n", This, p);

4350
    return get_style_property_var(&This->css_style, STYLEID_MIN_WIDTH, p);
4351 4352 4353 4354 4355 4356 4357 4358
}

static HRESULT WINAPI HTMLStyle5_put_maxWidth(IHTMLStyle5 *iface, VARIANT v)
{
    HTMLStyle *This = impl_from_IHTMLStyle5(iface);

    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));

4359
    return set_style_property_var(&This->css_style, STYLEID_MAX_WIDTH, &v);
4360 4361 4362 4363 4364 4365 4366 4367
}

static HRESULT WINAPI HTMLStyle5_get_maxWidth(IHTMLStyle5 *iface, VARIANT *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle5(iface);

    TRACE("(%p)->(%p)\n", This, p);

4368
    return get_style_property_var(&This->css_style, STYLEID_MAX_WIDTH, p);
4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417
}

static const IHTMLStyle5Vtbl HTMLStyle5Vtbl = {
    HTMLStyle5_QueryInterface,
    HTMLStyle5_AddRef,
    HTMLStyle5_Release,
    HTMLStyle5_GetTypeInfoCount,
    HTMLStyle5_GetTypeInfo,
    HTMLStyle5_GetIDsOfNames,
    HTMLStyle5_Invoke,
    HTMLStyle5_put_msInterpolationMode,
    HTMLStyle5_get_msInterpolationMode,
    HTMLStyle5_put_maxHeight,
    HTMLStyle5_get_maxHeight,
    HTMLStyle5_put_minWidth,
    HTMLStyle5_get_minWidth,
    HTMLStyle5_put_maxWidth,
    HTMLStyle5_get_maxWidth
};

static inline HTMLStyle *impl_from_IHTMLStyle6(IHTMLStyle6 *iface)
{
    return CONTAINING_RECORD(iface, HTMLStyle, IHTMLStyle6_iface);
}

static HRESULT WINAPI HTMLStyle6_QueryInterface(IHTMLStyle6 *iface, REFIID riid, void **ppv)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);

    return IHTMLStyle_QueryInterface(&This->IHTMLStyle_iface, riid, ppv);
}

static ULONG WINAPI HTMLStyle6_AddRef(IHTMLStyle6 *iface)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);

    return IHTMLStyle_AddRef(&This->IHTMLStyle_iface);
}

static ULONG WINAPI HTMLStyle6_Release(IHTMLStyle6 *iface)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);

    return IHTMLStyle_Release(&This->IHTMLStyle_iface);
}

static HRESULT WINAPI HTMLStyle6_GetTypeInfoCount(IHTMLStyle6 *iface, UINT *pctinfo)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
4418
    return IDispatchEx_GetTypeInfoCount(&This->css_style.dispex.IDispatchEx_iface, pctinfo);
4419 4420 4421 4422 4423 4424
}

static HRESULT WINAPI HTMLStyle6_GetTypeInfo(IHTMLStyle6 *iface, UINT iTInfo,
        LCID lcid, ITypeInfo **ppTInfo)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
4425
    return IDispatchEx_GetTypeInfo(&This->css_style.dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
4426 4427 4428 4429 4430 4431
}

static HRESULT WINAPI HTMLStyle6_GetIDsOfNames(IHTMLStyle6 *iface, REFIID riid,
        LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
4432
    return IDispatchEx_GetIDsOfNames(&This->css_style.dispex.IDispatchEx_iface, riid, rgszNames, cNames,
4433 4434 4435 4436 4437 4438 4439 4440
            lcid, rgDispId);
}

static HRESULT WINAPI HTMLStyle6_Invoke(IHTMLStyle6 *iface, DISPID dispIdMember,
                            REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
                            VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
4441
    return IDispatchEx_Invoke(&This->css_style.dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506
            wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
}

static HRESULT WINAPI HTMLStyle6_put_content(IHTMLStyle6 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle6_get_content(IHTMLStyle6 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle6_put_contentSide(IHTMLStyle6 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle6_get_contentSide(IHTMLStyle6 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle6_put_counterIncrement(IHTMLStyle6 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle6_get_counterIncrement(IHTMLStyle6 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle6_put_counterReset(IHTMLStyle6 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle6_get_counterReset(IHTMLStyle6 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle6_put_outline(IHTMLStyle6 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

4507
    return set_style_property(&This->css_style, STYLEID_OUTLINE, v);
4508 4509 4510 4511 4512 4513 4514 4515
}

static HRESULT WINAPI HTMLStyle6_get_outline(IHTMLStyle6 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);

    TRACE("(%p)->(%p)\n", This, p);

4516
    return get_style_property(&This->css_style, STYLEID_OUTLINE, p);
4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566
}

static HRESULT WINAPI HTMLStyle6_put_outlineWidth(IHTMLStyle6 *iface, VARIANT v)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle6_get_outlineWidth(IHTMLStyle6 *iface, VARIANT *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle6_put_outlineStyle(IHTMLStyle6 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle6_get_outlineStyle(IHTMLStyle6 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle6_put_outlineColor(IHTMLStyle6 *iface, VARIANT v)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle6_get_outlineColor(IHTMLStyle6 *iface, VARIANT *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle6_put_boxSizing(IHTMLStyle6 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

4567
    return set_style_property(&This->css_style, STYLEID_BOX_SIZING, v);
4568 4569 4570 4571 4572 4573 4574 4575
}

static HRESULT WINAPI HTMLStyle6_get_boxSizing(IHTMLStyle6 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);

    TRACE("(%p)->(%p)\n", This, p);

4576
    return get_style_property(&This->css_style, STYLEID_BOX_SIZING, p);
4577 4578
}

4579
static HRESULT WINAPI HTMLStyle6_put_borderSpacing(IHTMLStyle6 *iface, BSTR v)
4580 4581
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
4582 4583 4584

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

4585
    return set_style_property(&This->css_style, STYLEID_BORDER_SPACING, v);
4586 4587
}

4588
static HRESULT WINAPI HTMLStyle6_get_borderSpacing(IHTMLStyle6 *iface, BSTR *p)
4589 4590
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
4591 4592 4593

    TRACE("(%p)->(%p)\n", This, p);

4594
    return get_style_property(&This->css_style, STYLEID_BORDER_SPACING, p);
4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706
}

static HRESULT WINAPI HTMLStyle6_put_orphans(IHTMLStyle6 *iface, VARIANT v)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle6_get_orphans(IHTMLStyle6 *iface, VARIANT *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle6_put_windows(IHTMLStyle6 *iface, VARIANT v)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle6_get_windows(IHTMLStyle6 *iface, VARIANT *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle6_put_pageBreakInside(IHTMLStyle6 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle6_get_pageBreakInside(IHTMLStyle6 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle6_put_emptyCells(IHTMLStyle6 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle6_get_emptyCells(IHTMLStyle6 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle6_put_msBlockProgression(IHTMLStyle6 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle6_get_msBlockProgression(IHTMLStyle6 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle6_put_quotes(IHTMLStyle6 *iface, BSTR v)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLStyle6_get_quotes(IHTMLStyle6 *iface, BSTR *p)
{
    HTMLStyle *This = impl_from_IHTMLStyle6(iface);
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static const IHTMLStyle6Vtbl HTMLStyle6Vtbl = {
    HTMLStyle6_QueryInterface,
    HTMLStyle6_AddRef,
    HTMLStyle6_Release,
    HTMLStyle6_GetTypeInfoCount,
    HTMLStyle6_GetTypeInfo,
    HTMLStyle6_GetIDsOfNames,
    HTMLStyle6_Invoke,
    HTMLStyle6_put_content,
    HTMLStyle6_get_content,
    HTMLStyle6_put_contentSide,
    HTMLStyle6_get_contentSide,
    HTMLStyle6_put_counterIncrement,
    HTMLStyle6_get_counterIncrement,
    HTMLStyle6_put_counterReset,
    HTMLStyle6_get_counterReset,
    HTMLStyle6_put_outline,
    HTMLStyle6_get_outline,
    HTMLStyle6_put_outlineWidth,
    HTMLStyle6_get_outlineWidth,
    HTMLStyle6_put_outlineStyle,
    HTMLStyle6_get_outlineStyle,
    HTMLStyle6_put_outlineColor,
    HTMLStyle6_get_outlineColor,
    HTMLStyle6_put_boxSizing,
    HTMLStyle6_get_boxSizing,
4707 4708
    HTMLStyle6_put_borderSpacing,
    HTMLStyle6_get_borderSpacing,
4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722
    HTMLStyle6_put_orphans,
    HTMLStyle6_get_orphans,
    HTMLStyle6_put_windows,
    HTMLStyle6_get_windows,
    HTMLStyle6_put_pageBreakInside,
    HTMLStyle6_get_pageBreakInside,
    HTMLStyle6_put_emptyCells,
    HTMLStyle6_get_emptyCells,
    HTMLStyle6_put_msBlockProgression,
    HTMLStyle6_get_msBlockProgression,
    HTMLStyle6_put_quotes,
    HTMLStyle6_get_quotes
};

4723
static inline CSSStyle *impl_from_IHTMLCSSStyleDeclaration(IHTMLCSSStyleDeclaration *iface)
4724
{
4725
    return CONTAINING_RECORD(iface, CSSStyle, IHTMLCSSStyleDeclaration_iface);
4726 4727 4728 4729 4730
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_QueryInterface(IHTMLCSSStyleDeclaration *iface,
        REFIID riid, void **ppv)
{
4731
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
4732 4733 4734 4735

    TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);

    if(IsEqualGUID(&IID_IUnknown, riid)) {
4736
        *ppv = &This->IHTMLCSSStyleDeclaration_iface;
4737 4738
    }else if(IsEqualGUID(&IID_IHTMLCSSStyleDeclaration, riid)) {
        *ppv = &This->IHTMLCSSStyleDeclaration_iface;
4739 4740
    }else if(IsEqualGUID(&IID_IHTMLCSSStyleDeclaration2, riid)) {
        *ppv = &This->IHTMLCSSStyleDeclaration2_iface;
4741
    }else if(dispex_query_interface(&This->dispex, riid, ppv)) {
4742
        return *ppv ? S_OK : E_NOINTERFACE;
4743
    }else if(!This->qi || !(*ppv = This->qi(This, riid))) {
4744 4745 4746 4747 4748 4749 4750
        *ppv = NULL;
        WARN("unsupported iface %s\n", debugstr_mshtml_guid(riid));
        return E_NOINTERFACE;
    }

    IUnknown_AddRef((IUnknown*)*ppv);
    return S_OK;
4751 4752 4753 4754
}

static ULONG WINAPI HTMLCSSStyleDeclaration_AddRef(IHTMLCSSStyleDeclaration *iface)
{
4755
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
4756 4757 4758 4759 4760
    LONG ref = InterlockedIncrement(&This->ref);

    TRACE("(%p) ref=%d\n", This, ref);

    return ref;
4761 4762 4763 4764
}

static ULONG WINAPI HTMLCSSStyleDeclaration_Release(IHTMLCSSStyleDeclaration *iface)
{
4765
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
4766 4767 4768 4769 4770
    LONG ref = InterlockedDecrement(&This->ref);

    TRACE("(%p) ref=%d\n", This, ref);

    if(!ref) {
4771 4772 4773
        if(This->nsstyle)
            nsIDOMCSSStyleDeclaration_Release(This->nsstyle);
        release_dispex(&This->dispex);
4774 4775 4776 4777
        heap_free(This);
    }

    return ref;
4778 4779 4780 4781 4782
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_GetTypeInfoCount(IHTMLCSSStyleDeclaration *iface,
        UINT *pctinfo)
{
4783
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
4784
    TRACE("(%p)->(%p)\n", This, pctinfo);
4785
    return IDispatchEx_GetTypeInfoCount(&This->dispex.IDispatchEx_iface, pctinfo);
4786 4787 4788 4789 4790
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_GetTypeInfo(IHTMLCSSStyleDeclaration *iface,
        UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
{
4791
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
4792
    TRACE("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo);
4793
    return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
4794 4795 4796 4797 4798
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_GetIDsOfNames(IHTMLCSSStyleDeclaration *iface,
        REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
{
4799
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
4800
    TRACE("(%p)->(%p %p %u %u %p)\n", This, riid, rgszNames, cNames, lcid, rgDispId);
4801
    return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface, riid, rgszNames,
4802 4803 4804 4805 4806 4807 4808
                                     cNames, lcid, rgDispId);
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_Invoke(IHTMLCSSStyleDeclaration *iface,
        DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
        VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
{
4809
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
4810 4811
    TRACE("(%p)->(%d %p %u %u %p %p %p %p)\n", This, dispIdMember, riid, lcid, wFlags,
          pDispParams, pVarResult, pExcepInfo, puArgErr);
4812
    return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
4813 4814 4815 4816 4817
                              wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_length(IHTMLCSSStyleDeclaration *iface, LONG *p)
{
4818
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
4819 4820 4821 4822 4823 4824
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_parentRule(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
4825
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
4826 4827 4828 4829
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

4830
static HRESULT WINAPI HTMLCSSStyleDeclaration_getPropertyValue(IHTMLCSSStyleDeclaration *iface, BSTR name, BSTR *value)
4831
{
4832
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
4833 4834 4835 4836 4837 4838
    const style_tbl_entry_t *style_entry;
    nsAString name_str, value_str;
    nsresult nsres;

    TRACE("(%p)->(%s %p)\n", This, debugstr_w(name), value);

4839
    style_entry = lookup_style_tbl(This, name);
4840 4841 4842 4843 4844
    nsAString_InitDepend(&name_str, style_entry ? style_entry->name : name);
    nsAString_InitDepend(&value_str, NULL);
    nsres = nsIDOMCSSStyleDeclaration_GetPropertyValue(This->nsstyle, &name_str, &value_str);
    nsAString_Finish(&name_str);
    return return_nsstr(nsres, &value_str, value);
4845 4846 4847 4848
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_getPropertyPriority(IHTMLCSSStyleDeclaration *iface, BSTR bstrPropertyName, BSTR *pbstrPropertyPriority)
{
4849
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
4850 4851 4852 4853 4854 4855
    FIXME("(%p)->(%s %p)\n", This, debugstr_w(bstrPropertyName), pbstrPropertyPriority);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_removeProperty(IHTMLCSSStyleDeclaration *iface, BSTR bstrPropertyName, BSTR *pbstrPropertyValue)
{
4856
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
4857 4858 4859 4860 4861 4862
    const style_tbl_entry_t *style_entry;
    nsAString name_str, ret_str;
    nsresult nsres;

    TRACE("(%p)->(%s %p)\n", This, debugstr_w(bstrPropertyName), pbstrPropertyValue);

4863
    style_entry = lookup_style_tbl(This, bstrPropertyName);
4864 4865
    nsAString_InitDepend(&name_str, style_entry ? style_entry->name : bstrPropertyName);
    nsAString_Init(&ret_str, NULL);
4866
    nsres = nsIDOMCSSStyleDeclaration_RemoveProperty(This->nsstyle, &name_str, &ret_str);
4867 4868
    nsAString_Finish(&name_str);
    return return_nsstr(nsres, &ret_str, pbstrPropertyValue);
4869 4870
}

4871
static HRESULT WINAPI HTMLCSSStyleDeclaration_setProperty(IHTMLCSSStyleDeclaration *iface, BSTR name, VARIANT *value, VARIANT *priority)
4872
{
4873
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
4874 4875 4876 4877 4878 4879 4880
    nsAString priority_str, name_str, value_str;
    const style_tbl_entry_t *style_entry;
    nsresult nsres;
    HRESULT hres;

    TRACE("(%p)->(%s %s %s)\n", This, debugstr_w(name), debugstr_variant(value), debugstr_variant(priority));

4881
    style_entry = lookup_style_tbl(This, name);
4882
    hres = var_to_styleval(This, value, style_entry, &value_str);
4883 4884 4885 4886 4887 4888
    if(FAILED(hres))
        return hres;

    if(priority) {
        if(V_VT(priority) != VT_BSTR) {
            WARN("invalid priority type %s\n", debugstr_variant(priority));
4889
            nsAString_Finish(&value_str);
4890 4891 4892 4893 4894 4895 4896 4897
            return S_OK;
        }
        nsAString_InitDepend(&priority_str, V_BSTR(priority));
    }else {
        nsAString_InitDepend(&priority_str, NULL);
    }

    nsAString_InitDepend(&name_str, style_entry ? style_entry->name : name);
4898
    nsres = nsIDOMCSSStyleDeclaration_SetProperty(This->nsstyle, &name_str, &value_str, &priority_str);
4899 4900 4901
    nsAString_Finish(&name_str);
    nsAString_Finish(&value_str);
    nsAString_Finish(&priority_str);
4902 4903 4904
    if(NS_FAILED(nsres))
        WARN("SetProperty failed: %08x\n", nsres);
    return map_nsresult(nsres);
4905 4906 4907 4908
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_item(IHTMLCSSStyleDeclaration *iface, LONG index, BSTR *pbstrPropertyName)
{
4909
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
4910 4911 4912 4913 4914 4915
    FIXME("(%p)->(%d %p)\n", This, index, pbstrPropertyName);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_fontFamily(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
4916
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
4917
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
4918
    return set_style_property(This, STYLEID_FONT_FAMILY, v);
4919 4920 4921 4922
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_fontFamily(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
4923
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
4924
    TRACE("(%p)->(%p)\n", This, p);
4925
    return get_style_property(This, STYLEID_FONT_FAMILY, p);
4926 4927 4928 4929
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_fontStyle(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
4930
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
4931
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
4932
    return set_style_property(This, STYLEID_FONT_STYLE, v);
4933 4934 4935 4936
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_fontStyle(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
4937
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
4938
    TRACE("(%p)->(%p)\n", This, p);
4939
    return get_style_property(This, STYLEID_FONT_STYLE, p);
4940 4941 4942 4943
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_fontVariant(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
4944
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
4945
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
4946
    return set_style_property(This, STYLEID_FONT_VARIANT, v);
4947 4948 4949 4950
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_fontVariant(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
4951
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
4952
    TRACE("(%p)->(%p)\n", This, p);
4953
    return get_style_property(This, STYLEID_FONT_VARIANT, p);
4954 4955 4956 4957
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_fontWeight(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
4958
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
4959
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
4960
    return set_style_property(This, STYLEID_FONT_WEIGHT, v);
4961 4962 4963 4964
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_fontWeight(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
4965
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
4966
    TRACE("(%p)->(%p)\n", This, p);
4967
    return get_style_property(This, STYLEID_FONT_WEIGHT, p);
4968 4969 4970 4971
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_fontSize(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
4972
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
4973
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
4974
    return set_style_property_var(This, STYLEID_FONT_SIZE, &v);
4975 4976 4977 4978
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_fontSize(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
4979
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
4980
    TRACE("(%p)->(%p)\n", This, p);
4981
    return get_style_property_var(This, STYLEID_FONT_SIZE, p);
4982 4983 4984 4985
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_font(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
4986
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
4987 4988 4989 4990 4991 4992
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_font(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
4993
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
4994 4995 4996 4997 4998 4999
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_color(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5000
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5001
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5002
    return set_style_property_var(This, STYLEID_COLOR, &v);
5003 5004 5005 5006
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_color(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5007
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5008
    TRACE("(%p)->(%p)\n", This, p);
5009
    return get_style_property_var(This, STYLEID_COLOR, p);
5010 5011 5012 5013
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_background(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5014
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5015
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5016
    return set_style_property(This, STYLEID_BACKGROUND, v);
5017 5018 5019 5020
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_background(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5021
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5022
    TRACE("(%p)->(%p)\n", This, p);
5023
    return get_style_property(This, STYLEID_BACKGROUND, p);
5024 5025 5026 5027
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_backgroundColor(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5028
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5029
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5030
    return set_style_property_var(This, STYLEID_BACKGROUND_COLOR, &v);
5031 5032 5033 5034
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_backgroundColor(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5035
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5036
    TRACE("(%p)->(%p)\n", This, p);
5037
    return get_style_property_var(This, STYLEID_BACKGROUND_COLOR, p);
5038 5039 5040 5041
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_backgroundImage(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5042
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5043
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5044
    return set_style_property(This, STYLEID_BACKGROUND_IMAGE, v);
5045 5046 5047 5048
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_backgroundImage(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5049
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5050
    TRACE("(%p)->(%p)\n", This, p);
5051
    return get_style_property(This, STYLEID_BACKGROUND_IMAGE, p);
5052 5053 5054 5055
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_backgroundRepeat(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5056
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5057
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5058
    return set_style_property(This, STYLEID_BACKGROUND_REPEAT, v);
5059 5060 5061 5062
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_backgroundRepeat(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5063
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5064
    TRACE("(%p)->(%p)\n", This, p);
5065
    return get_style_property(This, STYLEID_BACKGROUND_REPEAT, p);
5066 5067 5068 5069
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_backgroundAttachment(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5070
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5071
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5072
    return set_style_property(This, STYLEID_BACKGROUND_ATTACHMENT, v);
5073 5074 5075 5076
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_backgroundAttachment(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5077
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5078
    TRACE("(%p)->(%p)\n", This, p);
5079
    return get_style_property(This, STYLEID_BACKGROUND_ATTACHMENT, p);
5080 5081 5082 5083
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_backgroundPosition(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5084
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5085
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5086
    return set_style_property(This, STYLEID_BACKGROUND_POSITION, v);
5087 5088 5089 5090
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_backgroundPosition(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5091
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5092
    TRACE("(%p)->(%p)\n", This, p);
5093
    return get_style_property(This, STYLEID_BACKGROUND_POSITION, p);
5094 5095 5096 5097
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_backgroundPositionX(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5098
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5099
    nsAString pos_str, val_str;
5100
    const WCHAR *val;
5101
    WCHAR *pos_val;
5102 5103 5104
    DWORD val_len;
    HRESULT hres;

5105
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5106

5107
    hres = var_to_styleval(This, &v, &style_tbl[STYLEID_BACKGROUND_POSITION_X], &val_str);
5108 5109 5110
    if(FAILED(hres))
        return hres;

5111
    nsAString_GetData(&val_str, &val);
5112
    val_len = val ? lstrlenW(val) : 0;
5113 5114

    nsAString_Init(&pos_str, NULL);
5115
    hres = get_nsstyle_attr_nsval(This->nsstyle, STYLEID_BACKGROUND_POSITION, &pos_str);
5116 5117 5118 5119 5120
    if(SUCCEEDED(hres)) {
        const PRUnichar *pos, *posy;
        DWORD posy_len;

        nsAString_GetData(&pos_str, &pos);
5121
        posy = wcschr(pos, ' ');
5122 5123
        if(!posy) {
            TRACE("no space in %s\n", debugstr_w(pos));
5124
            posy = L" 0px";
5125 5126
        }

5127
        posy_len = lstrlenW(posy);
5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139
        pos_val = heap_alloc((val_len+posy_len+1)*sizeof(WCHAR));
        if(pos_val) {
            if(val_len)
                memcpy(pos_val, val, val_len*sizeof(WCHAR));
            if(posy_len)
                memcpy(pos_val+val_len, posy, posy_len*sizeof(WCHAR));
            pos_val[val_len+posy_len] = 0;
        }else {
            hres = E_OUTOFMEMORY;
        }
    }
    nsAString_Finish(&pos_str);
5140
    nsAString_Finish(&val_str);
5141 5142 5143 5144
    if(FAILED(hres))
        return hres;

    TRACE("setting position to %s\n", debugstr_w(pos_val));
5145
    hres = set_style_property(This, STYLEID_BACKGROUND_POSITION, pos_val);
5146 5147
    heap_free(pos_val);
    return hres;
5148 5149 5150 5151
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_backgroundPositionX(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5152
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5153 5154 5155 5156
    nsAString pos_str;
    BSTR ret;
    HRESULT hres;

5157
    TRACE("(%p)->(%p)\n", This, p);
5158 5159

    nsAString_Init(&pos_str, NULL);
5160
    hres = get_nsstyle_attr_nsval(This->nsstyle, STYLEID_BACKGROUND_POSITION, &pos_str);
5161 5162 5163 5164
    if(SUCCEEDED(hres)) {
        const PRUnichar *pos, *space;

        nsAString_GetData(&pos_str, &pos);
5165
        space = wcschr(pos, ' ');
5166 5167
        if(!space) {
            WARN("no space in %s\n", debugstr_w(pos));
5168
            space = pos + lstrlenW(pos);
5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186
        }

        if(space != pos) {
            ret = SysAllocStringLen(pos, space-pos);
            if(!ret)
                hres = E_OUTOFMEMORY;
        }else {
            ret = NULL;
        }
    }
    nsAString_Finish(&pos_str);
    if(FAILED(hres))
        return hres;

    TRACE("returning %s\n", debugstr_w(ret));
    V_VT(p) = VT_BSTR;
    V_BSTR(p) = ret;
    return S_OK;
5187 5188 5189 5190
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_backgroundPositionY(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5191
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5192
    nsAString pos_str, val_str;
5193
    const WCHAR *val;
5194
    WCHAR *pos_val;
5195 5196 5197
    DWORD val_len;
    HRESULT hres;

5198
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5199

5200
    hres = var_to_styleval(This, &v, &style_tbl[STYLEID_BACKGROUND_POSITION], &val_str);
5201 5202 5203
    if(FAILED(hres))
        return hres;

5204
    nsAString_GetData(&val_str, &val);
5205
    val_len = val ? lstrlenW(val) : 0;
5206 5207

    nsAString_Init(&pos_str, NULL);
5208
    hres = get_nsstyle_attr_nsval(This->nsstyle, STYLEID_BACKGROUND_POSITION, &pos_str);
5209 5210 5211 5212 5213
    if(SUCCEEDED(hres)) {
        const PRUnichar *pos, *space;
        DWORD posx_len;

        nsAString_GetData(&pos_str, &pos);
5214
        space = wcschr(pos, ' ');
5215 5216 5217 5218
        if(space) {
            space++;
        }else {
            TRACE("no space in %s\n", debugstr_w(pos));
5219 5220
            pos = L"0px ";
            space = pos + ARRAY_SIZE(L"0px ")-1;
5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235
        }

        posx_len = space-pos;

        pos_val = heap_alloc((posx_len+val_len+1)*sizeof(WCHAR));
        if(pos_val) {
            memcpy(pos_val, pos, posx_len*sizeof(WCHAR));
            if(val_len)
                memcpy(pos_val+posx_len, val, val_len*sizeof(WCHAR));
            pos_val[posx_len+val_len] = 0;
        }else {
            hres = E_OUTOFMEMORY;
        }
    }
    nsAString_Finish(&pos_str);
5236
    nsAString_Finish(&val_str);
5237 5238 5239 5240
    if(FAILED(hres))
        return hres;

    TRACE("setting position to %s\n", debugstr_w(pos_val));
5241
    hres = set_style_property(This, STYLEID_BACKGROUND_POSITION, pos_val);
5242 5243
    heap_free(pos_val);
    return hres;
5244 5245 5246 5247
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_backgroundPositionY(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5248
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5249 5250 5251 5252
    nsAString pos_str;
    BSTR ret;
    HRESULT hres;

5253
    TRACE("(%p)->(%p)\n", This, p);
5254 5255

    nsAString_Init(&pos_str, NULL);
5256
    hres = get_nsstyle_attr_nsval(This->nsstyle, STYLEID_BACKGROUND_POSITION, &pos_str);
5257 5258 5259 5260
    if(SUCCEEDED(hres)) {
        const PRUnichar *pos, *posy;

        nsAString_GetData(&pos_str, &pos);
5261
        posy = wcschr(pos, ' ');
5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277
        if(posy) {
            ret = SysAllocString(posy+1);
            if(!ret)
                hres = E_OUTOFMEMORY;
        }else {
            ret = NULL;
        }
    }
    nsAString_Finish(&pos_str);
    if(FAILED(hres))
        return hres;

    TRACE("returning %s\n", debugstr_w(ret));
    V_VT(p) = VT_BSTR;
    V_BSTR(p) = ret;
    return S_OK;
5278 5279 5280 5281
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_wordSpacing(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5282
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5283
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5284
    return set_style_property_var(This, STYLEID_WORD_SPACING, &v);
5285 5286 5287 5288
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_wordSpacing(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5289
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5290
    TRACE("(%p)->(%p)\n", This, p);
5291
    return get_style_property_var(This, STYLEID_WORD_SPACING, p);
5292 5293 5294 5295
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_letterSpacing(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5296
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5297
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5298
    return set_style_property_var(This, STYLEID_LETTER_SPACING, &v);
5299 5300 5301 5302
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_letterSpacing(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5303
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5304
    TRACE("(%p)->(%p)\n", This, p);
5305
    return get_style_property_var(This, STYLEID_LETTER_SPACING, p);
5306 5307 5308 5309
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_textDecoration(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5310
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5311
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5312
    return set_style_property(This, STYLEID_TEXT_DECORATION, v);
5313 5314 5315 5316
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_textDecoration(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5317
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5318
    TRACE("(%p)->(%p)\n", This, p);
5319
    return get_style_property(This, STYLEID_TEXT_DECORATION, p);
5320 5321 5322 5323
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_verticalAlign(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5324
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5325
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5326
    return set_style_property_var(This, STYLEID_VERTICAL_ALIGN, &v);
5327 5328 5329 5330
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_verticalAlign(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5331
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5332
    TRACE("(%p)->(%p)\n", This, p);
5333
    return get_style_property_var(This, STYLEID_VERTICAL_ALIGN, p);
5334 5335 5336 5337
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_textTransform(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5338
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5339
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5340
    return set_style_property(This, STYLEID_TEXT_TRANSFORM, v);
5341 5342 5343 5344
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_textTransform(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5345
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5346
    TRACE("(%p)->(%p)\n", This, p);
5347
    return get_style_property(This, STYLEID_TEXT_TRANSFORM, p);
5348 5349 5350 5351
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_textAlign(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5352
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5353
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5354
    return set_style_property(This, STYLEID_TEXT_ALIGN, v);
5355 5356 5357 5358
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_textAlign(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5359
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5360
    TRACE("(%p)->(%p)\n", This, p);
5361
    return get_style_property(This, STYLEID_TEXT_ALIGN, p);
5362 5363 5364 5365
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_textIndent(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5366
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5367
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5368
    return set_style_property_var(This, STYLEID_TEXT_INDENT, &v);
5369 5370 5371 5372
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_textIndent(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5373
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5374
    TRACE("(%p)->(%p)\n", This, p);
5375
    return get_style_property_var(This, STYLEID_TEXT_INDENT, p);
5376 5377 5378 5379
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_lineHeight(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5380
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5381
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5382
    return set_style_property_var(This, STYLEID_LINE_HEIGHT, &v);
5383 5384 5385 5386
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_lineHeight(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5387
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5388
    TRACE("(%p)->(%p)\n", This, p);
5389
    return get_style_property_var(This, STYLEID_LINE_HEIGHT, p);
5390 5391 5392 5393
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_marginTop(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5394
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5395
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5396
    return set_style_property_var(This, STYLEID_MARGIN_TOP, &v);
5397 5398 5399 5400
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_marginTop(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5401
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5402
    TRACE("(%p)->(%p)\n", This, p);
5403
    return get_style_property_var(This, STYLEID_MARGIN_TOP, p);
5404 5405 5406 5407
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_marginRight(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5408
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5409
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5410
    return set_style_property_var(This, STYLEID_MARGIN_RIGHT, &v);
5411 5412 5413 5414
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_marginRight(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5415
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5416
    TRACE("(%p)->(%p)\n", This, p);
5417
    return get_style_property_var(This, STYLEID_MARGIN_RIGHT, p);
5418 5419 5420 5421
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_marginBottom(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5422
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5423
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5424
    return set_style_property_var(This, STYLEID_MARGIN_BOTTOM, &v);
5425 5426 5427 5428
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_marginBottom(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5429
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5430
    TRACE("(%p)->(%p)\n", This, p);
5431
    return get_style_property_var(This, STYLEID_MARGIN_BOTTOM, p);
5432 5433 5434 5435
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_marginLeft(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5436
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5437
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5438
    return set_style_property_var(This, STYLEID_MARGIN_LEFT, &v);
5439 5440 5441 5442
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_marginLeft(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5443
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5444
    TRACE("(%p)->(%p)\n", This, p);
5445
    return get_style_property_var(This, STYLEID_MARGIN_LEFT, p);
5446 5447 5448 5449
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_margin(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5450
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5451
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5452
    return set_style_property(This, STYLEID_MARGIN, v);
5453 5454 5455 5456
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_margin(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5457
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5458
    TRACE("(%p)->(%p)\n", This, p);
5459
    return get_style_property(This, STYLEID_MARGIN, p);
5460 5461 5462 5463
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_paddingTop(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5464
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5465
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5466
    return set_style_property_var(This, STYLEID_PADDING_TOP, &v);
5467 5468 5469 5470
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_paddingTop(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5471
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5472
    TRACE("(%p)->(%p)\n", This, p);
5473
    return get_style_property_var(This, STYLEID_PADDING_TOP, p);
5474 5475 5476 5477
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_paddingRight(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5478
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5479
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5480
    return set_style_property_var(This, STYLEID_PADDING_RIGHT, &v);
5481 5482 5483 5484
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_paddingRight(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5485
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5486
    TRACE("(%p)->(%p)\n", This, p);
5487
    return get_style_property_var(This, STYLEID_PADDING_RIGHT, p);
5488 5489 5490 5491
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_paddingBottom(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5492
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5493
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5494
    return set_style_property_var(This, STYLEID_PADDING_BOTTOM, &v);
5495 5496 5497 5498
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_paddingBottom(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5499
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5500
    TRACE("(%p)->(%p)\n", This, p);
5501
    return get_style_property_var(This, STYLEID_PADDING_BOTTOM, p);
5502 5503 5504 5505
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_paddingLeft(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5506
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5507
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5508
    return set_style_property_var(This, STYLEID_PADDING_LEFT, &v);
5509 5510 5511 5512
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_paddingLeft(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5513
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5514
    TRACE("(%p)->(%p)\n", This, p);
5515
    return get_style_property_var(This, STYLEID_PADDING_LEFT, p);
5516 5517 5518 5519
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_padding(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5520
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5521
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5522
    return set_style_property(This, STYLEID_PADDING, v);
5523 5524 5525 5526
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_padding(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5527
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5528
    TRACE("(%p)->(%p)\n", This, p);
5529
    return get_style_property(This, STYLEID_PADDING, p);
5530 5531 5532 5533
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_border(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5534
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5535
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5536
    return set_style_property(This, STYLEID_BORDER, v);
5537 5538 5539 5540
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_border(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5541
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5542
    TRACE("(%p)->(%p)\n", This, p);
5543
    return get_style_property(This, STYLEID_BORDER, p);
5544 5545 5546 5547
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_borderTop(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5548
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5549
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5550
    return set_style_property(This, STYLEID_BORDER_TOP, v);
5551 5552 5553 5554
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_borderTop(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5555
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5556
    TRACE("(%p)->(%p)\n", This, p);
5557
    return get_style_property(This, STYLEID_BORDER_TOP, p);
5558 5559 5560 5561
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_borderRight(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5562
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5563
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5564
    return set_style_property(This, STYLEID_BORDER_RIGHT, v);
5565 5566 5567 5568
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_borderRight(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5569
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5570
    TRACE("(%p)->(%p)\n", This, p);
5571
    return get_style_property(This, STYLEID_BORDER_RIGHT, p);
5572 5573 5574 5575
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_borderBottom(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5576
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5577
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5578
    return set_style_property(This, STYLEID_BORDER_BOTTOM, v);
5579 5580 5581 5582
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_borderBottom(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5583
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5584
    TRACE("(%p)->(%p)\n", This, p);
5585
    return get_style_property(This, STYLEID_BORDER_BOTTOM, p);
5586 5587 5588 5589
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_borderLeft(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5590
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5591
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5592
    return set_style_property(This, STYLEID_BORDER_LEFT, v);
5593 5594 5595 5596
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_borderLeft(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5597
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5598
    TRACE("(%p)->(%p)\n", This, p);
5599
    return get_style_property(This, STYLEID_BORDER_LEFT, p);
5600 5601 5602 5603
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_borderColor(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5604
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5605
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5606
    return set_style_property(This, STYLEID_BORDER_COLOR, v);
5607 5608 5609 5610
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_borderColor(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5611
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5612
    TRACE("(%p)->(%p)\n", This, p);
5613
    return get_style_property(This, STYLEID_BORDER_COLOR, p);
5614 5615 5616 5617
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_borderTopColor(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5618
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5619
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5620
    return set_style_property_var(This, STYLEID_BORDER_TOP_COLOR, &v);
5621 5622 5623 5624
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_borderTopColor(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5625
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5626
    TRACE("(%p)->(%p)\n", This, p);
5627
    return get_style_property_var(This, STYLEID_BORDER_TOP_COLOR, p);
5628 5629 5630 5631
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_borderRightColor(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5632
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5633
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5634
    return set_style_property_var(This, STYLEID_BORDER_RIGHT_COLOR, &v);
5635 5636 5637 5638
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_borderRightColor(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5639
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5640
    TRACE("(%p)->(%p)\n", This, p);
5641
    return get_style_property_var(This, STYLEID_BORDER_RIGHT_COLOR, p);
5642 5643 5644 5645
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_borderBottomColor(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5646
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5647
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5648
    return set_style_property_var(This, STYLEID_BORDER_BOTTOM_COLOR, &v);
5649 5650 5651 5652
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_borderBottomColor(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5653
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5654
    TRACE("(%p)->(%p)\n", This, p);
5655
    return get_style_property_var(This, STYLEID_BORDER_BOTTOM_COLOR, p);
5656 5657 5658 5659
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_borderLeftColor(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5660
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5661
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5662
    return set_style_property_var(This, STYLEID_BORDER_LEFT_COLOR, &v);
5663 5664 5665 5666
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_borderLeftColor(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5667
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5668
    TRACE("(%p)->(%p)\n", This, p);
5669
    return get_style_property_var(This, STYLEID_BORDER_LEFT_COLOR, p);
5670 5671 5672 5673
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_borderWidth(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5674
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5675
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5676
    return set_style_property(This, STYLEID_BORDER_WIDTH, v);
5677 5678 5679 5680
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_borderWidth(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5681
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5682
    TRACE("(%p)->(%p)\n", This, p);
5683
    return get_style_property(This, STYLEID_BORDER_WIDTH, p);
5684 5685 5686 5687
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_borderTopWidth(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5688
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5689
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5690
    return set_style_property_var(This, STYLEID_BORDER_TOP_WIDTH, &v);
5691 5692 5693 5694
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_borderTopWidth(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5695
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5696
    TRACE("(%p)->(%p)\n", This, p);
5697
    return get_style_property_var(This, STYLEID_BORDER_TOP_WIDTH, p);
5698 5699 5700 5701
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_borderRightWidth(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5702
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5703
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5704
    return set_style_property_var(This, STYLEID_BORDER_RIGHT_WIDTH, &v);
5705 5706 5707 5708
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_borderRightWidth(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5709
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5710
    TRACE("(%p)->(%p)\n", This, p);
5711
    return get_style_property_var(This, STYLEID_BORDER_RIGHT_WIDTH, p);
5712 5713 5714 5715
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_borderBottomWidth(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5716
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5717
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5718
    return set_style_property_var(This, STYLEID_BORDER_BOTTOM_WIDTH, &v);
5719 5720 5721 5722
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_borderBottomWidth(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5723
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5724
    TRACE("(%p)->(%p)\n", This, p);
5725
    return get_style_property_var(This, STYLEID_BORDER_BOTTOM_WIDTH, p);
5726 5727 5728 5729
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_borderLeftWidth(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5730
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5731
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5732
    return set_style_property_var(This, STYLEID_BORDER_LEFT_WIDTH, &v);
5733 5734 5735 5736
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_borderLeftWidth(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5737
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5738
    TRACE("(%p)->(%p)\n", This, p);
5739
    return get_style_property_var(This, STYLEID_BORDER_LEFT_WIDTH, p);
5740 5741 5742 5743
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_borderStyle(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5744
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5745
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5746
    return set_style_property(This, STYLEID_BORDER_STYLE, v);
5747 5748 5749 5750
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_borderStyle(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5751
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5752
    TRACE("(%p)->(%p)\n", This, p);
5753
    return get_style_property(This, STYLEID_BORDER_STYLE, p);
5754 5755 5756 5757
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_borderTopStyle(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5758
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5759
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5760
    return set_style_property(This, STYLEID_BORDER_TOP_STYLE, v);
5761 5762 5763 5764
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_borderTopStyle(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5765
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5766
    TRACE("(%p)->(%p)\n", This, p);
5767
    return get_style_property(This, STYLEID_BORDER_TOP_STYLE, p);
5768 5769 5770 5771
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_borderRightStyle(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5772
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5773
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5774
    return set_style_property(This, STYLEID_BORDER_RIGHT_STYLE, v);
5775 5776 5777 5778
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_borderRightStyle(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5779
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5780
    TRACE("(%p)->(%p)\n", This, p);
5781
    return get_style_property(This, STYLEID_BORDER_RIGHT_STYLE, p);
5782 5783 5784 5785
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_borderBottomStyle(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5786
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5787
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5788
    return set_style_property(This, STYLEID_BORDER_BOTTOM_STYLE, v);
5789 5790 5791 5792
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_borderBottomStyle(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5793
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5794
    TRACE("(%p)->(%p)\n", This, p);
5795
    return get_style_property(This, STYLEID_BORDER_BOTTOM_STYLE, p);
5796 5797 5798 5799
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_borderLeftStyle(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5800
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5801
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5802
    return set_style_property(This, STYLEID_BORDER_LEFT_STYLE, v);
5803 5804 5805 5806
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_borderLeftStyle(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5807
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5808
    TRACE("(%p)->(%p)\n", This, p);
5809
    return get_style_property(This, STYLEID_BORDER_LEFT_STYLE, p);
5810 5811 5812 5813
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_width(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5814
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5815
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5816
    return set_style_property_var(This, STYLEID_WIDTH, &v);
5817 5818 5819 5820
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_width(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5821
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5822
    TRACE("(%p)->(%p)\n", This, p);
5823
    return get_style_property_var(This, STYLEID_WIDTH, p);
5824 5825 5826 5827
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_height(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5828
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5829
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5830
    return set_style_property_var(This, STYLEID_HEIGHT, &v);
5831 5832 5833 5834
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_height(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5835
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5836
    TRACE("(%p)->(%p)\n", This, p);
5837
    return get_style_property_var(This, STYLEID_HEIGHT, p);
5838 5839 5840 5841
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_styleFloat(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5842
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5843
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5844
    return set_style_property(This, STYLEID_FLOAT, v);
5845 5846 5847 5848
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_styleFloat(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5849
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5850
    TRACE("(%p)->(%p)\n", This, p);
5851
    return get_style_property(This, STYLEID_FLOAT, p);
5852 5853 5854 5855
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_clear(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5856
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5857
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5858
    return set_style_property(This, STYLEID_CLEAR, v);
5859 5860 5861 5862
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_clear(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5863
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5864
    TRACE("(%p)->(%p)\n", This, p);
5865
    return get_style_property(This, STYLEID_CLEAR, p);
5866 5867 5868 5869
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_display(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5870
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5871
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5872
    return set_style_property(This, STYLEID_DISPLAY, v);
5873 5874 5875 5876
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_display(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5877
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5878
    TRACE("(%p)->(%p)\n", This, p);
5879
    return get_style_property(This, STYLEID_DISPLAY, p);
5880 5881 5882 5883
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_visibility(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5884
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5885
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5886
    return set_style_property(This, STYLEID_VISIBILITY, v);
5887 5888 5889 5890
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_visibility(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5891
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5892
    TRACE("(%p)->(%p)\n", This, p);
5893
    return get_style_property(This, STYLEID_VISIBILITY, p);
5894 5895 5896 5897
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_listStyleType(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5898
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5899 5900 5901 5902 5903 5904
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_listStyleType(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5905
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5906 5907 5908 5909 5910 5911
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_listStylePosition(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5912
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5913 5914 5915 5916 5917 5918
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_listStylePosition(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5919
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5920 5921 5922 5923 5924 5925
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_listStyleImage(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5926
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5927 5928 5929 5930 5931 5932
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_listStyleImage(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5933
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5934 5935 5936 5937 5938 5939
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_listStyle(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5940
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5941
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5942
    return set_style_property(This, STYLEID_LIST_STYLE, v);
5943 5944 5945 5946
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_listStyle(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5947
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5948
    TRACE("(%p)->(%p)\n", This, p);
5949
    return get_style_property(This, STYLEID_LIST_STYLE, p);
5950 5951 5952 5953
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_whiteSpace(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
5954
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5955
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
5956
    return set_style_property(This, STYLEID_WHITE_SPACE, v);
5957 5958 5959 5960
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_whiteSpace(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
5961
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5962
    TRACE("(%p)->(%p)\n", This, p);
5963
    return get_style_property(This, STYLEID_WHITE_SPACE, p);
5964 5965 5966 5967
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_top(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5968
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5969
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5970
    return set_style_property_var(This, STYLEID_TOP, &v);
5971 5972 5973 5974
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_top(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5975
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5976
    TRACE("(%p)->(%p)\n", This, p);
5977
    return get_style_property_var(This, STYLEID_TOP, p);
5978 5979 5980 5981
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_left(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5982
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5983
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5984
    return set_style_property_var(This, STYLEID_LEFT, &v);
5985 5986 5987 5988
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_left(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
5989
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5990
    TRACE("(%p)->(%p)\n", This, p);
5991
    return get_style_property_var(This, STYLEID_LEFT, p);
5992 5993 5994 5995
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_zIndex(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
5996
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
5997
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
5998
    return set_style_property_var(This, STYLEID_Z_INDEX, &v);
5999 6000 6001 6002
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_zIndex(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
6003
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6004
    TRACE("(%p)->(%p)\n", This, p);
6005
    return get_style_property_var(This, STYLEID_Z_INDEX, p);
6006 6007 6008 6009
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_overflow(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6010
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6011
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
6012
    return set_style_property(This, STYLEID_OVERFLOW, v);
6013 6014 6015 6016
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_overflow(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6017
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6018
    TRACE("(%p)->(%p)\n", This, p);
6019
    return get_style_property(This, STYLEID_OVERFLOW, p);
6020 6021 6022 6023
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_pageBreakBefore(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6024
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6025
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
6026
    return set_style_property(This, STYLEID_PAGE_BREAK_BEFORE, v);
6027 6028 6029 6030
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_pageBreakBefore(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6031
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6032
    TRACE("(%p)->(%p)\n", This, p);
6033
    return get_style_property(This, STYLEID_PAGE_BREAK_BEFORE, p);
6034 6035 6036 6037
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_pageBreakAfter(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6038
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6039
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
6040
    return set_style_property(This, STYLEID_PAGE_BREAK_AFTER, v);
6041 6042 6043 6044
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_pageBreakAfter(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6045
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6046
    TRACE("(%p)->(%p)\n", This, p);
6047
    return get_style_property(This, STYLEID_PAGE_BREAK_AFTER, p);
6048 6049 6050 6051
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_cssText(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6052
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6053 6054 6055 6056 6057 6058
    nsAString text_str;
    nsresult nsres;

    TRACE("(%p)->(%s)\n", This, debugstr_w(v));

    nsAString_InitDepend(&text_str, v);
6059
    nsres = nsIDOMCSSStyleDeclaration_SetCssText(This->nsstyle, &text_str);
6060 6061 6062 6063 6064 6065 6066
    nsAString_Finish(&text_str);
    if(NS_FAILED(nsres)) {
        FIXME("SetCssStyle failed: %08x\n", nsres);
        return E_FAIL;
    }

    return S_OK;
6067 6068 6069 6070
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_cssText(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6071
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6072 6073 6074 6075 6076 6077 6078
    nsAString text_str;
    nsresult nsres;

    TRACE("(%p)->(%p)\n", This, p);

    /* NOTE: Quicks mode should use different formatting (uppercase, no ';' at the end of rule). */
    nsAString_Init(&text_str, NULL);
6079
    nsres = nsIDOMCSSStyleDeclaration_GetCssText(This->nsstyle, &text_str);
6080
    return return_nsstr(nsres, &text_str, p);
6081 6082 6083 6084
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_cursor(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6085
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6086
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
6087
    return set_style_property(This, STYLEID_CURSOR, v);
6088 6089 6090 6091
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_cursor(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6092
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6093
    TRACE("(%p)->(%p)\n", This, p);
6094
    return get_style_property(This, STYLEID_CURSOR, p);
6095 6096 6097 6098
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_clip(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6099
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6100
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
6101
    return set_style_property(This, STYLEID_CLIP, v);
6102 6103 6104 6105
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_clip(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6106
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6107
    TRACE("(%p)->(%p)\n", This, p);
6108
    return get_style_property(This, STYLEID_CLIP, p);
6109 6110 6111 6112
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_filter(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6113
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6114
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
6115
    return set_style_property(This, STYLEID_FILTER, v);
6116 6117 6118 6119
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_filter(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6120
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6121
    TRACE("(%p)->(%p)\n", This, p);
6122
    return get_style_property(This, STYLEID_FILTER, p);
6123 6124 6125 6126
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_tableLayout(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6127
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6128
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
6129
    return set_style_property(This, STYLEID_TABLE_LAYOUT, v);
6130 6131 6132 6133
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_tableLayout(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6134
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6135
    TRACE("(%p)->(%p)\n", This, p);
6136
    return get_style_property(This, STYLEID_TABLE_LAYOUT, p);
6137 6138 6139 6140
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_borderCollapse(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6141
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6142
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
6143
    return set_style_property(This, STYLEID_BORDER_COLLAPSE, v);
6144 6145 6146 6147
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_borderCollapse(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6148
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6149
    TRACE("(%p)->(%p)\n", This, p);
6150
    return get_style_property(This, STYLEID_BORDER_COLLAPSE, p);
6151 6152 6153 6154
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_direction(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6155
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6156
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
6157
    return set_style_property(This, STYLEID_DIRECTION, v);
6158 6159 6160 6161
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_direction(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6162
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6163
    TRACE("(%p)->(%p)\n", This, p);
6164
    return get_style_property(This, STYLEID_DIRECTION, p);
6165 6166 6167 6168
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_behavior(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6169
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6170 6171 6172 6173 6174 6175
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_behavior(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6176
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6177 6178 6179 6180 6181 6182
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_position(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6183
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6184
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
6185
    return set_style_property(This, STYLEID_POSITION, v);
6186 6187 6188 6189
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_position(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6190
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6191
    TRACE("(%p)->(%p)\n", This, p);
6192
    return get_style_property(This, STYLEID_POSITION, p);
6193 6194 6195 6196
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_unicodeBidi(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6197
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6198 6199 6200 6201 6202 6203
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_unicodeBidi(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6204
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6205 6206 6207 6208 6209 6210
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_bottom(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
6211
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6212
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
6213
    return set_style_property_var(This, STYLEID_BOTTOM, &v);
6214 6215 6216 6217
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_bottom(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
6218
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6219
    TRACE("(%p)->(%p)\n", This, p);
6220
    return get_style_property_var(This, STYLEID_BOTTOM, p);
6221 6222 6223 6224
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_right(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
6225
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6226
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
6227
    return set_style_property_var(This, STYLEID_RIGHT, &v);
6228 6229 6230 6231
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_right(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
6232
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6233
    TRACE("(%p)->(%p)\n", This, p);
6234
    return get_style_property_var(This, STYLEID_RIGHT, p);
6235 6236 6237 6238
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_imeMode(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6239
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6240 6241 6242 6243 6244 6245
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_imeMode(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6246
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6247 6248 6249 6250 6251 6252
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_rubyAlign(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6253
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6254 6255 6256 6257 6258 6259
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_rubyAlign(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6260
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6261 6262 6263 6264 6265 6266
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_rubyPosition(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6267
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6268 6269 6270 6271 6272 6273
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_rubyPosition(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6274
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6275 6276 6277 6278 6279 6280
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_rubyOverhang(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6281
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6282 6283 6284 6285 6286 6287
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_rubyOverhang(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6288
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6289 6290 6291 6292 6293 6294
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_layoutGridChar(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
6295
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6296 6297 6298 6299 6300 6301
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_layoutGridChar(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
6302
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6303 6304 6305 6306 6307 6308
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_layoutGridLine(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
6309
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6310 6311 6312 6313 6314 6315
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_layoutGridLine(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
6316
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6317 6318 6319 6320 6321 6322
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_layoutGridMode(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6323
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6324 6325 6326 6327 6328 6329
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_layoutGridMode(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6330
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6331 6332 6333 6334 6335 6336
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_layoutGridType(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6337
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6338 6339 6340 6341 6342 6343
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_layoutGridType(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6344
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6345 6346 6347 6348 6349 6350
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_layoutGrid(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6351
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6352 6353 6354 6355 6356 6357
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_layoutGrid(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6358
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6359 6360 6361 6362 6363 6364
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_textAutospace(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6365
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6366 6367 6368 6369 6370 6371
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_textAutospace(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6372
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6373 6374 6375 6376 6377 6378
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_wordBreak(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6379
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6380 6381 6382 6383 6384 6385
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_wordBreak(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6386
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6387 6388 6389 6390 6391 6392
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_lineBreak(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6393
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6394 6395 6396 6397 6398 6399
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_lineBreak(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6400
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6401 6402 6403 6404 6405 6406
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_textJustify(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6407
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6408 6409 6410 6411 6412 6413
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_textJustify(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6414
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6415 6416 6417 6418 6419 6420
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_textJustifyTrim(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6421
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6422 6423 6424 6425 6426 6427
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_textJustifyTrim(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6428
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6429 6430 6431 6432 6433 6434
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_textKashida(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
6435
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6436 6437 6438 6439 6440 6441
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_textKashida(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
6442
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6443 6444 6445 6446 6447 6448
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_overflowX(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6449
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6450
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
6451
    return set_style_property(This, STYLEID_OVERFLOW_X, v);
6452 6453 6454 6455
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_overflowX(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6456
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6457
    TRACE("(%p)->(%p)\n", This, p);
6458
    return get_style_property(This, STYLEID_OVERFLOW_X, p);
6459 6460 6461 6462
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_overflowY(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6463
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6464
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
6465
    return set_style_property(This, STYLEID_OVERFLOW_Y, v);
6466 6467 6468 6469
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_overflowY(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6470
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6471
    TRACE("(%p)->(%p)\n", This, p);
6472
    return get_style_property(This, STYLEID_OVERFLOW_Y, p);
6473 6474 6475 6476
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_accelerator(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6477
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6478 6479 6480 6481 6482 6483
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_accelerator(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6484
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6485 6486 6487 6488 6489 6490
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_layoutFlow(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6491
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6492 6493 6494 6495 6496 6497
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_layoutFlow(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6498
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6499 6500 6501 6502 6503 6504
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_zoom(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
6505
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6506 6507 6508
    VARIANT *var;
    HRESULT hres;

6509
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
6510 6511 6512 6513 6514 6515

    /* zoom property is IE CSS extension that is mostly used as a hack to workaround IE bugs.
     * The value is set to 1 then. We can safely ignore setting zoom to 1. */
    if(V_VT(&v) != VT_I4 || V_I4(&v) != 1)
        WARN("stub for %s\n", debugstr_variant(&v));

6516
    hres = dispex_get_dprop_ref(&This->dispex, L"zoom", TRUE, &var);
6517 6518 6519 6520
    if(FAILED(hres))
        return hres;

    return VariantChangeType(var, &v, 0, VT_BSTR);
6521 6522 6523 6524
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_zoom(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
6525
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6526 6527 6528
    VARIANT *var;
    HRESULT hres;

6529
    TRACE("(%p)->(%p)\n", This, p);
6530

6531
    hres = dispex_get_dprop_ref(&This->dispex, L"zoom", FALSE, &var);
6532 6533 6534 6535 6536 6537 6538 6539 6540
    if(hres == DISP_E_UNKNOWNNAME) {
        V_VT(p) = VT_BSTR;
        V_BSTR(p) = NULL;
        return S_OK;
    }
    if(FAILED(hres))
        return hres;

    return VariantCopy(p, var);
6541 6542 6543 6544
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_wordWrap(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6545
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6546
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
6547
    return set_style_property(This, STYLEID_WORD_WRAP, v);
6548 6549 6550 6551
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_wordWrap(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6552
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6553
    TRACE("(%p)->(%p)\n", This, p);
6554
    return get_style_property(This, STYLEID_WORD_WRAP, p);
6555 6556 6557 6558
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_textUnderlinePosition(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6559
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6560 6561 6562 6563 6564 6565
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_textUnderlinePosition(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6566
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6567 6568 6569 6570 6571 6572
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_scrollbarBaseColor(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
6573
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6574 6575 6576 6577 6578 6579
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_scrollbarBaseColor(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
6580
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6581 6582 6583 6584 6585 6586
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_scrollbarFaceColor(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
6587
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6588 6589 6590 6591 6592 6593
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_scrollbarFaceColor(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
6594
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6595 6596 6597 6598 6599 6600
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_scrollbar3dLightColor(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
6601
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6602 6603 6604 6605 6606 6607
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_scrollbar3dLightColor(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
6608
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6609 6610 6611 6612 6613 6614
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_scrollbarShadowColor(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
6615
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6616 6617 6618 6619 6620 6621
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_scrollbarShadowColor(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
6622
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6623 6624 6625 6626 6627 6628
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_scrollbarHighlightColor(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
6629
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6630 6631 6632 6633 6634 6635
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_scrollbarHighlightColor(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
6636
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6637 6638 6639 6640 6641 6642
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_scrollbarDarkShadowColor(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
6643
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6644 6645 6646 6647 6648 6649
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_scrollbarDarkShadowColor(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
6650
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6651 6652 6653 6654 6655 6656
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_scrollbarArrowColor(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
6657
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6658 6659 6660 6661 6662 6663
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_scrollbarArrowColor(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
6664
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6665 6666 6667 6668 6669 6670
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_scrollbarTrackColor(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
6671
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6672 6673 6674 6675 6676 6677
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_scrollbarTrackColor(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
6678
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6679 6680 6681 6682 6683 6684
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_writingMode(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6685
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6686 6687 6688 6689 6690 6691
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_writingMode(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6692
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6693 6694 6695 6696 6697 6698
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_textAlignLast(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6699
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6700 6701 6702 6703 6704 6705
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_textAlignLast(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6706
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6707 6708 6709 6710 6711 6712
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_textKashidaSpace(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
6713
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6714 6715 6716 6717 6718 6719
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_textKashidaSpace(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
6720
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6721 6722 6723 6724 6725 6726
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_textOverflow(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6727
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6728 6729 6730 6731 6732 6733
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_textOverflow(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6734
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6735 6736 6737 6738 6739 6740
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_minHeight(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
6741
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6742
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
6743
    return set_style_property_var(This, STYLEID_MIN_HEIGHT, &v);
6744 6745 6746 6747
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_minHeight(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
6748
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6749
    TRACE("(%p)->(%p)\n", This, p);
6750
    return get_style_property_var(This, STYLEID_MIN_HEIGHT, p);
6751 6752 6753 6754
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_msInterpolationMode(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6755
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6756 6757 6758 6759 6760 6761
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_msInterpolationMode(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6762
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6763 6764 6765 6766 6767 6768
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_maxHeight(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
6769
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6770
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
6771
    return set_style_property_var(This, STYLEID_MAX_HEIGHT, &v);
6772 6773 6774 6775
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_maxHeight(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
6776
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6777
    TRACE("(%p)->(%p)\n", This, p);
6778
    return get_style_property_var(This, STYLEID_MAX_HEIGHT, p);
6779 6780 6781 6782
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_minWidth(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
6783
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6784
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
6785
    return set_style_property_var(This, STYLEID_MIN_WIDTH, &v);
6786 6787 6788 6789
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_minWidth(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
6790
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6791
    TRACE("(%p)->(%p)\n", This, p);
6792
    return get_style_property_var(This, STYLEID_MIN_WIDTH, p);
6793 6794 6795 6796
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_maxWidth(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
6797
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6798
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
6799
    return set_style_property_var(This, STYLEID_MAX_WIDTH, &v);
6800 6801 6802 6803
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_maxWidth(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
6804
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6805
    TRACE("(%p)->(%p)\n", This, p);
6806
    return get_style_property_var(This, STYLEID_MAX_WIDTH, p);
6807 6808 6809 6810
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_content(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6811
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6812 6813 6814 6815 6816 6817
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_content(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6818
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6819 6820 6821 6822 6823 6824
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_captionSide(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6825
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6826 6827 6828 6829 6830 6831
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_captionSide(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6832
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6833 6834 6835 6836 6837 6838
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_counterIncrement(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6839
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6840 6841 6842 6843 6844 6845
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_counterIncrement(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6846
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6847 6848 6849 6850 6851 6852
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_counterReset(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6853
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6854 6855 6856 6857 6858 6859
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_counterReset(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6860
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6861 6862 6863 6864 6865 6866
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_outline(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6867
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6868
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
6869
    return set_style_property(This, STYLEID_OUTLINE, v);
6870 6871 6872 6873
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_outline(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6874
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6875
    TRACE("(%p)->(%p)\n", This, p);
6876
    return get_style_property(This, STYLEID_OUTLINE, p);
6877 6878 6879 6880
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_outlineWidth(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
6881
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6882 6883 6884 6885 6886 6887
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_outlineWidth(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
6888
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6889 6890 6891 6892 6893 6894
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_outlineStyle(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6895
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6896 6897 6898 6899 6900 6901
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_outlineStyle(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6902
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6903 6904 6905 6906 6907 6908
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_outlineColor(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
6909
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6910 6911 6912 6913 6914 6915
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_outlineColor(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
6916
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6917 6918 6919 6920 6921 6922
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_boxSizing(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6923
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6924
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
6925
    return set_style_property(This, STYLEID_BOX_SIZING, v);
6926 6927 6928 6929
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_boxSizing(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6930
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6931
    TRACE("(%p)->(%p)\n", This, p);
6932
    return get_style_property(This, STYLEID_BOX_SIZING, p);
6933 6934 6935 6936
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_borderSpacing(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6937
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6938
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
6939
    return set_style_property(This, STYLEID_BORDER_SPACING, v);
6940 6941 6942 6943
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_borderSpacing(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6944
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6945
    TRACE("(%p)->(%p)\n", This, p);
6946
    return get_style_property(This, STYLEID_BORDER_SPACING, p);
6947 6948 6949 6950
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_orphans(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
6951
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6952 6953 6954 6955 6956 6957
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_orphans(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
6958
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6959 6960 6961 6962 6963 6964
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_widows(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
6965
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6966 6967 6968 6969 6970 6971
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_widows(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
6972
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6973 6974 6975 6976 6977 6978
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_pageBreakInside(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6979
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6980 6981 6982 6983 6984 6985
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_pageBreakInside(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
6986
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6987 6988 6989 6990 6991 6992
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_emptyCells(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
6993
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
6994 6995 6996 6997 6998 6999
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_emptyCells(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7000
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7001 7002 7003 7004 7005 7006
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_msBlockProgression(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7007
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7008 7009 7010 7011 7012 7013
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_msBlockProgression(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7014
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7015 7016 7017 7018 7019 7020
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_quotes(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7021
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7022 7023 7024 7025 7026 7027
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_quotes(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7028
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7029 7030 7031 7032 7033 7034
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_alignmentBaseline(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7035
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7036 7037 7038 7039 7040 7041
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_alignmentBaseline(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7042
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7043 7044 7045 7046 7047 7048
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_baselineShift(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
7049
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7050 7051 7052 7053 7054 7055
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_baselineShift(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
7056
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7057 7058 7059 7060 7061 7062
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_dominantBaseline(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7063
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7064 7065 7066 7067 7068 7069
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_dominantBaseline(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7070
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7071 7072 7073 7074 7075 7076
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_fontSizeAdjust(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
7077
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7078 7079 7080 7081 7082 7083
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_fontSizeAdjust(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
7084
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7085 7086 7087 7088 7089 7090
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_fontStretch(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7091
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7092 7093 7094 7095 7096 7097
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_fontStretch(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7098
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7099 7100 7101 7102 7103 7104
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_opacity(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
7105
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7106
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
7107
    return set_style_property_var(This, STYLEID_OPACITY, &v);
7108 7109 7110 7111
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_opacity(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
7112
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7113
    TRACE("(%p)->(%p)\n", This, p);
7114
    return get_style_property_var(This, STYLEID_OPACITY, p);
7115 7116 7117 7118
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_clipPath(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7119
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7120 7121 7122 7123 7124 7125
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_clipPath(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7126
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7127 7128 7129 7130 7131 7132
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_clipRule(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7133
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7134 7135 7136 7137 7138 7139
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_clipRule(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7140
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7141 7142 7143 7144 7145 7146
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_fill(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7147
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7148 7149 7150 7151 7152 7153
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_fill(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7154
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7155 7156 7157 7158 7159 7160
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_fillOpacity(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
7161
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7162 7163 7164 7165 7166 7167
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_fillOpacity(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
7168
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7169 7170 7171 7172 7173 7174
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_fillRule(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7175
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7176 7177 7178 7179 7180 7181
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_fillRule(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7182
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7183 7184 7185 7186 7187 7188
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_kerning(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
7189
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7190 7191 7192 7193 7194 7195
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_kerning(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
7196
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7197 7198 7199 7200 7201 7202
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_marker(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7203
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7204 7205 7206 7207 7208 7209
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_marker(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7210
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7211 7212 7213 7214 7215 7216
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_markerEnd(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7217
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7218 7219 7220 7221 7222 7223
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_markerEnd(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7224
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7225 7226 7227 7228 7229 7230
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_markerMid(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7231
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7232 7233 7234 7235 7236 7237
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_markerMid(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7238
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7239 7240 7241 7242 7243 7244
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_markerStart(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7245
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7246 7247 7248 7249 7250 7251
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_markerStart(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7252
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7253 7254 7255 7256 7257 7258
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_mask(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7259
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7260 7261 7262 7263 7264 7265
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_mask(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7266
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7267 7268 7269 7270 7271 7272
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_pointerEvents(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7273
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7274 7275 7276 7277 7278 7279
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_pointerEvents(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7280
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7281 7282 7283 7284 7285 7286
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_stopColor(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
7287
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7288 7289 7290 7291 7292 7293
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_stopColor(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
7294
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7295 7296 7297 7298 7299 7300
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_stopOpacity(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
7301
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7302 7303 7304 7305 7306 7307
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_stopOpacity(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
7308
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7309 7310 7311 7312 7313 7314
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_stroke(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7315
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7316 7317 7318 7319 7320 7321
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_stroke(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7322
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7323 7324 7325 7326 7327 7328
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_strokeDasharray(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7329
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7330 7331 7332 7333 7334 7335
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_strokeDasharray(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7336
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7337 7338 7339 7340 7341 7342
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_strokeDashoffset(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
7343
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7344 7345 7346 7347 7348 7349
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_strokeDashoffset(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
7350
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7351 7352 7353 7354 7355 7356
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_strokeLinecap(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7357
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7358 7359 7360 7361 7362 7363
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_strokeLinecap(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7364
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7365 7366 7367 7368 7369 7370
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_strokeLinejoin(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7371
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7372 7373 7374 7375 7376 7377
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_strokeLinejoin(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7378
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7379 7380 7381 7382 7383 7384
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_strokeMiterlimit(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
7385
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7386 7387 7388 7389 7390 7391
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_strokeMiterlimit(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
7392
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7393 7394 7395 7396 7397 7398
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_strokeOpacity(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
7399
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7400 7401 7402 7403 7404 7405
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_strokeOpacity(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
7406
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7407 7408 7409 7410 7411 7412
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_strokeWidth(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
7413
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7414 7415 7416 7417 7418 7419
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_strokeWidth(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
7420
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7421 7422 7423 7424 7425 7426
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_textAnchor(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7427
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7428 7429 7430 7431 7432 7433
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_textAnchor(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7434
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7435 7436 7437 7438 7439 7440
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_glyphOrientationHorizontal(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
7441
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7442 7443 7444 7445 7446 7447
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_glyphOrientationHorizontal(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
7448
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7449 7450 7451 7452 7453 7454
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_glyphOrientationVertical(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
7455
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7456 7457 7458 7459 7460 7461
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_glyphOrientationVertical(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
7462
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7463 7464 7465 7466 7467 7468
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_borderRadius(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7469
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7470 7471 7472 7473 7474 7475
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_borderRadius(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7476
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7477 7478 7479 7480 7481 7482
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_borderTopLeftRadius(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7483
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7484 7485 7486 7487 7488 7489
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_borderTopLeftRadius(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7490
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7491 7492 7493 7494 7495 7496
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_borderTopRightRadius(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7497
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7498 7499 7500 7501 7502 7503
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_borderTopRightRadius(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7504
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7505 7506 7507 7508 7509 7510
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_borderBottomRightRadius(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7511
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7512 7513 7514 7515 7516 7517
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_borderBottomRightRadius(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7518
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7519 7520 7521 7522 7523 7524
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_borderBottomLeftRadius(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7525
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7526 7527 7528 7529 7530 7531
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_borderBottomLeftRadius(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7532
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7533 7534 7535 7536 7537 7538
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_clipTop(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
7539
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7540 7541 7542 7543 7544 7545
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_clipTop(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
7546
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7547 7548 7549 7550 7551 7552
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_clipRight(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
7553
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7554 7555 7556 7557 7558 7559
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_clipRight(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
7560
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7561 7562 7563 7564 7565 7566
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_clipBottom(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
7567
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7568 7569 7570 7571 7572 7573
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_clipLeft(IHTMLCSSStyleDeclaration *iface, VARIANT v)
{
7574
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7575 7576 7577 7578 7579 7580
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_clipLeft(IHTMLCSSStyleDeclaration *iface, VARIANT *p)
{
7581
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7582 7583 7584 7585 7586 7587
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_cssFloat(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7588
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7589
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
7590
    return set_style_property(This, STYLEID_FLOAT, v);
7591 7592 7593 7594
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_cssFloat(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7595
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7596
    TRACE("(%p)->(%p)\n", This, p);
7597
    return get_style_property(This, STYLEID_FLOAT, p);
7598 7599 7600 7601
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_backgroundClip(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7602
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7603
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
7604
    return set_style_property(This, STYLEID_BACKGROUND_CLIP, v);
7605 7606 7607 7608
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_backgroundClip(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7609
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7610
    TRACE("(%p)->(%p)\n", This, p);
7611
    return get_style_property(This, STYLEID_BACKGROUND_CLIP, p);
7612 7613 7614 7615
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_backgroundOrigin(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7616
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7617 7618 7619 7620 7621 7622
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_backgroundOrigin(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7623
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7624 7625 7626 7627 7628 7629
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_backgroundSize(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7630
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7631 7632 7633 7634 7635 7636
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_backgroundSize(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7637
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7638 7639 7640 7641 7642 7643
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_boxShadow(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7644
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7645 7646 7647 7648 7649 7650
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_boxShadow(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7651
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7652 7653 7654 7655 7656 7657
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_msTransform(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7658
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7659 7660 7661 7662 7663 7664
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_msTransform(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7665
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7666 7667 7668 7669 7670 7671
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_put_msTransformOrigin(IHTMLCSSStyleDeclaration *iface, BSTR v)
{
7672
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7673 7674 7675 7676 7677 7678
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration_get_msTransformOrigin(IHTMLCSSStyleDeclaration *iface, BSTR *p)
{
7679
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static const IHTMLCSSStyleDeclarationVtbl HTMLCSSStyleDeclarationVtbl = {
    HTMLCSSStyleDeclaration_QueryInterface,
    HTMLCSSStyleDeclaration_AddRef,
    HTMLCSSStyleDeclaration_Release,
    HTMLCSSStyleDeclaration_GetTypeInfoCount,
    HTMLCSSStyleDeclaration_GetTypeInfo,
    HTMLCSSStyleDeclaration_GetIDsOfNames,
    HTMLCSSStyleDeclaration_Invoke,
    HTMLCSSStyleDeclaration_get_length,
    HTMLCSSStyleDeclaration_get_parentRule,
    HTMLCSSStyleDeclaration_getPropertyValue,
    HTMLCSSStyleDeclaration_getPropertyPriority,
    HTMLCSSStyleDeclaration_removeProperty,
    HTMLCSSStyleDeclaration_setProperty,
    HTMLCSSStyleDeclaration_item,
    HTMLCSSStyleDeclaration_put_fontFamily,
    HTMLCSSStyleDeclaration_get_fontFamily,
    HTMLCSSStyleDeclaration_put_fontStyle,
    HTMLCSSStyleDeclaration_get_fontStyle,
    HTMLCSSStyleDeclaration_put_fontVariant,
    HTMLCSSStyleDeclaration_get_fontVariant,
    HTMLCSSStyleDeclaration_put_fontWeight,
    HTMLCSSStyleDeclaration_get_fontWeight,
    HTMLCSSStyleDeclaration_put_fontSize,
    HTMLCSSStyleDeclaration_get_fontSize,
    HTMLCSSStyleDeclaration_put_font,
    HTMLCSSStyleDeclaration_get_font,
    HTMLCSSStyleDeclaration_put_color,
    HTMLCSSStyleDeclaration_get_color,
    HTMLCSSStyleDeclaration_put_background,
    HTMLCSSStyleDeclaration_get_background,
    HTMLCSSStyleDeclaration_put_backgroundColor,
    HTMLCSSStyleDeclaration_get_backgroundColor,
    HTMLCSSStyleDeclaration_put_backgroundImage,
    HTMLCSSStyleDeclaration_get_backgroundImage,
    HTMLCSSStyleDeclaration_put_backgroundRepeat,
    HTMLCSSStyleDeclaration_get_backgroundRepeat,
    HTMLCSSStyleDeclaration_put_backgroundAttachment,
    HTMLCSSStyleDeclaration_get_backgroundAttachment,
    HTMLCSSStyleDeclaration_put_backgroundPosition,
    HTMLCSSStyleDeclaration_get_backgroundPosition,
    HTMLCSSStyleDeclaration_put_backgroundPositionX,
    HTMLCSSStyleDeclaration_get_backgroundPositionX,
    HTMLCSSStyleDeclaration_put_backgroundPositionY,
    HTMLCSSStyleDeclaration_get_backgroundPositionY,
    HTMLCSSStyleDeclaration_put_wordSpacing,
    HTMLCSSStyleDeclaration_get_wordSpacing,
    HTMLCSSStyleDeclaration_put_letterSpacing,
    HTMLCSSStyleDeclaration_get_letterSpacing,
    HTMLCSSStyleDeclaration_put_textDecoration,
    HTMLCSSStyleDeclaration_get_textDecoration,
    HTMLCSSStyleDeclaration_put_verticalAlign,
    HTMLCSSStyleDeclaration_get_verticalAlign,
    HTMLCSSStyleDeclaration_put_textTransform,
    HTMLCSSStyleDeclaration_get_textTransform,
    HTMLCSSStyleDeclaration_put_textAlign,
    HTMLCSSStyleDeclaration_get_textAlign,
    HTMLCSSStyleDeclaration_put_textIndent,
    HTMLCSSStyleDeclaration_get_textIndent,
    HTMLCSSStyleDeclaration_put_lineHeight,
    HTMLCSSStyleDeclaration_get_lineHeight,
    HTMLCSSStyleDeclaration_put_marginTop,
    HTMLCSSStyleDeclaration_get_marginTop,
    HTMLCSSStyleDeclaration_put_marginRight,
    HTMLCSSStyleDeclaration_get_marginRight,
    HTMLCSSStyleDeclaration_put_marginBottom,
    HTMLCSSStyleDeclaration_get_marginBottom,
    HTMLCSSStyleDeclaration_put_marginLeft,
    HTMLCSSStyleDeclaration_get_marginLeft,
    HTMLCSSStyleDeclaration_put_margin,
    HTMLCSSStyleDeclaration_get_margin,
    HTMLCSSStyleDeclaration_put_paddingTop,
    HTMLCSSStyleDeclaration_get_paddingTop,
    HTMLCSSStyleDeclaration_put_paddingRight,
    HTMLCSSStyleDeclaration_get_paddingRight,
    HTMLCSSStyleDeclaration_put_paddingBottom,
    HTMLCSSStyleDeclaration_get_paddingBottom,
    HTMLCSSStyleDeclaration_put_paddingLeft,
    HTMLCSSStyleDeclaration_get_paddingLeft,
    HTMLCSSStyleDeclaration_put_padding,
    HTMLCSSStyleDeclaration_get_padding,
    HTMLCSSStyleDeclaration_put_border,
    HTMLCSSStyleDeclaration_get_border,
    HTMLCSSStyleDeclaration_put_borderTop,
    HTMLCSSStyleDeclaration_get_borderTop,
    HTMLCSSStyleDeclaration_put_borderRight,
    HTMLCSSStyleDeclaration_get_borderRight,
    HTMLCSSStyleDeclaration_put_borderBottom,
    HTMLCSSStyleDeclaration_get_borderBottom,
    HTMLCSSStyleDeclaration_put_borderLeft,
    HTMLCSSStyleDeclaration_get_borderLeft,
    HTMLCSSStyleDeclaration_put_borderColor,
    HTMLCSSStyleDeclaration_get_borderColor,
    HTMLCSSStyleDeclaration_put_borderTopColor,
    HTMLCSSStyleDeclaration_get_borderTopColor,
    HTMLCSSStyleDeclaration_put_borderRightColor,
    HTMLCSSStyleDeclaration_get_borderRightColor,
    HTMLCSSStyleDeclaration_put_borderBottomColor,
    HTMLCSSStyleDeclaration_get_borderBottomColor,
    HTMLCSSStyleDeclaration_put_borderLeftColor,
    HTMLCSSStyleDeclaration_get_borderLeftColor,
    HTMLCSSStyleDeclaration_put_borderWidth,
    HTMLCSSStyleDeclaration_get_borderWidth,
    HTMLCSSStyleDeclaration_put_borderTopWidth,
    HTMLCSSStyleDeclaration_get_borderTopWidth,
    HTMLCSSStyleDeclaration_put_borderRightWidth,
    HTMLCSSStyleDeclaration_get_borderRightWidth,
    HTMLCSSStyleDeclaration_put_borderBottomWidth,
    HTMLCSSStyleDeclaration_get_borderBottomWidth,
    HTMLCSSStyleDeclaration_put_borderLeftWidth,
    HTMLCSSStyleDeclaration_get_borderLeftWidth,
    HTMLCSSStyleDeclaration_put_borderStyle,
    HTMLCSSStyleDeclaration_get_borderStyle,
    HTMLCSSStyleDeclaration_put_borderTopStyle,
    HTMLCSSStyleDeclaration_get_borderTopStyle,
    HTMLCSSStyleDeclaration_put_borderRightStyle,
    HTMLCSSStyleDeclaration_get_borderRightStyle,
    HTMLCSSStyleDeclaration_put_borderBottomStyle,
    HTMLCSSStyleDeclaration_get_borderBottomStyle,
    HTMLCSSStyleDeclaration_put_borderLeftStyle,
    HTMLCSSStyleDeclaration_get_borderLeftStyle,
    HTMLCSSStyleDeclaration_put_width,
    HTMLCSSStyleDeclaration_get_width,
    HTMLCSSStyleDeclaration_put_height,
    HTMLCSSStyleDeclaration_get_height,
    HTMLCSSStyleDeclaration_put_styleFloat,
    HTMLCSSStyleDeclaration_get_styleFloat,
    HTMLCSSStyleDeclaration_put_clear,
    HTMLCSSStyleDeclaration_get_clear,
    HTMLCSSStyleDeclaration_put_display,
    HTMLCSSStyleDeclaration_get_display,
    HTMLCSSStyleDeclaration_put_visibility,
    HTMLCSSStyleDeclaration_get_visibility,
    HTMLCSSStyleDeclaration_put_listStyleType,
    HTMLCSSStyleDeclaration_get_listStyleType,
    HTMLCSSStyleDeclaration_put_listStylePosition,
    HTMLCSSStyleDeclaration_get_listStylePosition,
    HTMLCSSStyleDeclaration_put_listStyleImage,
    HTMLCSSStyleDeclaration_get_listStyleImage,
    HTMLCSSStyleDeclaration_put_listStyle,
    HTMLCSSStyleDeclaration_get_listStyle,
    HTMLCSSStyleDeclaration_put_whiteSpace,
    HTMLCSSStyleDeclaration_get_whiteSpace,
    HTMLCSSStyleDeclaration_put_top,
    HTMLCSSStyleDeclaration_get_top,
    HTMLCSSStyleDeclaration_put_left,
    HTMLCSSStyleDeclaration_get_left,
    HTMLCSSStyleDeclaration_put_zIndex,
    HTMLCSSStyleDeclaration_get_zIndex,
    HTMLCSSStyleDeclaration_put_overflow,
    HTMLCSSStyleDeclaration_get_overflow,
    HTMLCSSStyleDeclaration_put_pageBreakBefore,
    HTMLCSSStyleDeclaration_get_pageBreakBefore,
    HTMLCSSStyleDeclaration_put_pageBreakAfter,
    HTMLCSSStyleDeclaration_get_pageBreakAfter,
    HTMLCSSStyleDeclaration_put_cssText,
    HTMLCSSStyleDeclaration_get_cssText,
    HTMLCSSStyleDeclaration_put_cursor,
    HTMLCSSStyleDeclaration_get_cursor,
    HTMLCSSStyleDeclaration_put_clip,
    HTMLCSSStyleDeclaration_get_clip,
    HTMLCSSStyleDeclaration_put_filter,
    HTMLCSSStyleDeclaration_get_filter,
    HTMLCSSStyleDeclaration_put_tableLayout,
    HTMLCSSStyleDeclaration_get_tableLayout,
    HTMLCSSStyleDeclaration_put_borderCollapse,
    HTMLCSSStyleDeclaration_get_borderCollapse,
    HTMLCSSStyleDeclaration_put_direction,
    HTMLCSSStyleDeclaration_get_direction,
    HTMLCSSStyleDeclaration_put_behavior,
    HTMLCSSStyleDeclaration_get_behavior,
    HTMLCSSStyleDeclaration_put_position,
    HTMLCSSStyleDeclaration_get_position,
    HTMLCSSStyleDeclaration_put_unicodeBidi,
    HTMLCSSStyleDeclaration_get_unicodeBidi,
    HTMLCSSStyleDeclaration_put_bottom,
    HTMLCSSStyleDeclaration_get_bottom,
    HTMLCSSStyleDeclaration_put_right,
    HTMLCSSStyleDeclaration_get_right,
    HTMLCSSStyleDeclaration_put_imeMode,
    HTMLCSSStyleDeclaration_get_imeMode,
    HTMLCSSStyleDeclaration_put_rubyAlign,
    HTMLCSSStyleDeclaration_get_rubyAlign,
    HTMLCSSStyleDeclaration_put_rubyPosition,
    HTMLCSSStyleDeclaration_get_rubyPosition,
    HTMLCSSStyleDeclaration_put_rubyOverhang,
    HTMLCSSStyleDeclaration_get_rubyOverhang,
    HTMLCSSStyleDeclaration_put_layoutGridChar,
    HTMLCSSStyleDeclaration_get_layoutGridChar,
    HTMLCSSStyleDeclaration_put_layoutGridLine,
    HTMLCSSStyleDeclaration_get_layoutGridLine,
    HTMLCSSStyleDeclaration_put_layoutGridMode,
    HTMLCSSStyleDeclaration_get_layoutGridMode,
    HTMLCSSStyleDeclaration_put_layoutGridType,
    HTMLCSSStyleDeclaration_get_layoutGridType,
    HTMLCSSStyleDeclaration_put_layoutGrid,
    HTMLCSSStyleDeclaration_get_layoutGrid,
    HTMLCSSStyleDeclaration_put_textAutospace,
    HTMLCSSStyleDeclaration_get_textAutospace,
    HTMLCSSStyleDeclaration_put_wordBreak,
    HTMLCSSStyleDeclaration_get_wordBreak,
    HTMLCSSStyleDeclaration_put_lineBreak,
    HTMLCSSStyleDeclaration_get_lineBreak,
    HTMLCSSStyleDeclaration_put_textJustify,
    HTMLCSSStyleDeclaration_get_textJustify,
    HTMLCSSStyleDeclaration_put_textJustifyTrim,
    HTMLCSSStyleDeclaration_get_textJustifyTrim,
    HTMLCSSStyleDeclaration_put_textKashida,
    HTMLCSSStyleDeclaration_get_textKashida,
    HTMLCSSStyleDeclaration_put_overflowX,
    HTMLCSSStyleDeclaration_get_overflowX,
    HTMLCSSStyleDeclaration_put_overflowY,
    HTMLCSSStyleDeclaration_get_overflowY,
    HTMLCSSStyleDeclaration_put_accelerator,
    HTMLCSSStyleDeclaration_get_accelerator,
    HTMLCSSStyleDeclaration_put_layoutFlow,
    HTMLCSSStyleDeclaration_get_layoutFlow,
    HTMLCSSStyleDeclaration_put_zoom,
    HTMLCSSStyleDeclaration_get_zoom,
    HTMLCSSStyleDeclaration_put_wordWrap,
    HTMLCSSStyleDeclaration_get_wordWrap,
    HTMLCSSStyleDeclaration_put_textUnderlinePosition,
    HTMLCSSStyleDeclaration_get_textUnderlinePosition,
    HTMLCSSStyleDeclaration_put_scrollbarBaseColor,
    HTMLCSSStyleDeclaration_get_scrollbarBaseColor,
    HTMLCSSStyleDeclaration_put_scrollbarFaceColor,
    HTMLCSSStyleDeclaration_get_scrollbarFaceColor,
    HTMLCSSStyleDeclaration_put_scrollbar3dLightColor,
    HTMLCSSStyleDeclaration_get_scrollbar3dLightColor,
    HTMLCSSStyleDeclaration_put_scrollbarShadowColor,
    HTMLCSSStyleDeclaration_get_scrollbarShadowColor,
    HTMLCSSStyleDeclaration_put_scrollbarHighlightColor,
    HTMLCSSStyleDeclaration_get_scrollbarHighlightColor,
    HTMLCSSStyleDeclaration_put_scrollbarDarkShadowColor,
    HTMLCSSStyleDeclaration_get_scrollbarDarkShadowColor,
    HTMLCSSStyleDeclaration_put_scrollbarArrowColor,
    HTMLCSSStyleDeclaration_get_scrollbarArrowColor,
    HTMLCSSStyleDeclaration_put_scrollbarTrackColor,
    HTMLCSSStyleDeclaration_get_scrollbarTrackColor,
    HTMLCSSStyleDeclaration_put_writingMode,
    HTMLCSSStyleDeclaration_get_writingMode,
    HTMLCSSStyleDeclaration_put_textAlignLast,
    HTMLCSSStyleDeclaration_get_textAlignLast,
    HTMLCSSStyleDeclaration_put_textKashidaSpace,
    HTMLCSSStyleDeclaration_get_textKashidaSpace,
    HTMLCSSStyleDeclaration_put_textOverflow,
    HTMLCSSStyleDeclaration_get_textOverflow,
    HTMLCSSStyleDeclaration_put_minHeight,
    HTMLCSSStyleDeclaration_get_minHeight,
    HTMLCSSStyleDeclaration_put_msInterpolationMode,
    HTMLCSSStyleDeclaration_get_msInterpolationMode,
    HTMLCSSStyleDeclaration_put_maxHeight,
    HTMLCSSStyleDeclaration_get_maxHeight,
    HTMLCSSStyleDeclaration_put_minWidth,
    HTMLCSSStyleDeclaration_get_minWidth,
    HTMLCSSStyleDeclaration_put_maxWidth,
    HTMLCSSStyleDeclaration_get_maxWidth,
    HTMLCSSStyleDeclaration_put_content,
    HTMLCSSStyleDeclaration_get_content,
    HTMLCSSStyleDeclaration_put_captionSide,
    HTMLCSSStyleDeclaration_get_captionSide,
    HTMLCSSStyleDeclaration_put_counterIncrement,
    HTMLCSSStyleDeclaration_get_counterIncrement,
    HTMLCSSStyleDeclaration_put_counterReset,
    HTMLCSSStyleDeclaration_get_counterReset,
    HTMLCSSStyleDeclaration_put_outline,
    HTMLCSSStyleDeclaration_get_outline,
    HTMLCSSStyleDeclaration_put_outlineWidth,
    HTMLCSSStyleDeclaration_get_outlineWidth,
    HTMLCSSStyleDeclaration_put_outlineStyle,
    HTMLCSSStyleDeclaration_get_outlineStyle,
    HTMLCSSStyleDeclaration_put_outlineColor,
    HTMLCSSStyleDeclaration_get_outlineColor,
    HTMLCSSStyleDeclaration_put_boxSizing,
    HTMLCSSStyleDeclaration_get_boxSizing,
    HTMLCSSStyleDeclaration_put_borderSpacing,
    HTMLCSSStyleDeclaration_get_borderSpacing,
    HTMLCSSStyleDeclaration_put_orphans,
    HTMLCSSStyleDeclaration_get_orphans,
    HTMLCSSStyleDeclaration_put_widows,
    HTMLCSSStyleDeclaration_get_widows,
    HTMLCSSStyleDeclaration_put_pageBreakInside,
    HTMLCSSStyleDeclaration_get_pageBreakInside,
    HTMLCSSStyleDeclaration_put_emptyCells,
    HTMLCSSStyleDeclaration_get_emptyCells,
    HTMLCSSStyleDeclaration_put_msBlockProgression,
    HTMLCSSStyleDeclaration_get_msBlockProgression,
    HTMLCSSStyleDeclaration_put_quotes,
    HTMLCSSStyleDeclaration_get_quotes,
    HTMLCSSStyleDeclaration_put_alignmentBaseline,
    HTMLCSSStyleDeclaration_get_alignmentBaseline,
    HTMLCSSStyleDeclaration_put_baselineShift,
    HTMLCSSStyleDeclaration_get_baselineShift,
    HTMLCSSStyleDeclaration_put_dominantBaseline,
    HTMLCSSStyleDeclaration_get_dominantBaseline,
    HTMLCSSStyleDeclaration_put_fontSizeAdjust,
    HTMLCSSStyleDeclaration_get_fontSizeAdjust,
    HTMLCSSStyleDeclaration_put_fontStretch,
    HTMLCSSStyleDeclaration_get_fontStretch,
    HTMLCSSStyleDeclaration_put_opacity,
    HTMLCSSStyleDeclaration_get_opacity,
    HTMLCSSStyleDeclaration_put_clipPath,
    HTMLCSSStyleDeclaration_get_clipPath,
    HTMLCSSStyleDeclaration_put_clipRule,
    HTMLCSSStyleDeclaration_get_clipRule,
    HTMLCSSStyleDeclaration_put_fill,
    HTMLCSSStyleDeclaration_get_fill,
    HTMLCSSStyleDeclaration_put_fillOpacity,
    HTMLCSSStyleDeclaration_get_fillOpacity,
    HTMLCSSStyleDeclaration_put_fillRule,
    HTMLCSSStyleDeclaration_get_fillRule,
    HTMLCSSStyleDeclaration_put_kerning,
    HTMLCSSStyleDeclaration_get_kerning,
    HTMLCSSStyleDeclaration_put_marker,
    HTMLCSSStyleDeclaration_get_marker,
    HTMLCSSStyleDeclaration_put_markerEnd,
    HTMLCSSStyleDeclaration_get_markerEnd,
    HTMLCSSStyleDeclaration_put_markerMid,
    HTMLCSSStyleDeclaration_get_markerMid,
    HTMLCSSStyleDeclaration_put_markerStart,
    HTMLCSSStyleDeclaration_get_markerStart,
    HTMLCSSStyleDeclaration_put_mask,
    HTMLCSSStyleDeclaration_get_mask,
    HTMLCSSStyleDeclaration_put_pointerEvents,
    HTMLCSSStyleDeclaration_get_pointerEvents,
    HTMLCSSStyleDeclaration_put_stopColor,
    HTMLCSSStyleDeclaration_get_stopColor,
    HTMLCSSStyleDeclaration_put_stopOpacity,
    HTMLCSSStyleDeclaration_get_stopOpacity,
    HTMLCSSStyleDeclaration_put_stroke,
    HTMLCSSStyleDeclaration_get_stroke,
    HTMLCSSStyleDeclaration_put_strokeDasharray,
    HTMLCSSStyleDeclaration_get_strokeDasharray,
    HTMLCSSStyleDeclaration_put_strokeDashoffset,
    HTMLCSSStyleDeclaration_get_strokeDashoffset,
    HTMLCSSStyleDeclaration_put_strokeLinecap,
    HTMLCSSStyleDeclaration_get_strokeLinecap,
    HTMLCSSStyleDeclaration_put_strokeLinejoin,
    HTMLCSSStyleDeclaration_get_strokeLinejoin,
    HTMLCSSStyleDeclaration_put_strokeMiterlimit,
    HTMLCSSStyleDeclaration_get_strokeMiterlimit,
    HTMLCSSStyleDeclaration_put_strokeOpacity,
    HTMLCSSStyleDeclaration_get_strokeOpacity,
    HTMLCSSStyleDeclaration_put_strokeWidth,
    HTMLCSSStyleDeclaration_get_strokeWidth,
    HTMLCSSStyleDeclaration_put_textAnchor,
    HTMLCSSStyleDeclaration_get_textAnchor,
    HTMLCSSStyleDeclaration_put_glyphOrientationHorizontal,
    HTMLCSSStyleDeclaration_get_glyphOrientationHorizontal,
    HTMLCSSStyleDeclaration_put_glyphOrientationVertical,
    HTMLCSSStyleDeclaration_get_glyphOrientationVertical,
    HTMLCSSStyleDeclaration_put_borderRadius,
    HTMLCSSStyleDeclaration_get_borderRadius,
    HTMLCSSStyleDeclaration_put_borderTopLeftRadius,
    HTMLCSSStyleDeclaration_get_borderTopLeftRadius,
    HTMLCSSStyleDeclaration_put_borderTopRightRadius,
    HTMLCSSStyleDeclaration_get_borderTopRightRadius,
    HTMLCSSStyleDeclaration_put_borderBottomRightRadius,
    HTMLCSSStyleDeclaration_get_borderBottomRightRadius,
    HTMLCSSStyleDeclaration_put_borderBottomLeftRadius,
    HTMLCSSStyleDeclaration_get_borderBottomLeftRadius,
    HTMLCSSStyleDeclaration_put_clipTop,
    HTMLCSSStyleDeclaration_get_clipTop,
    HTMLCSSStyleDeclaration_put_clipRight,
    HTMLCSSStyleDeclaration_get_clipRight,
    HTMLCSSStyleDeclaration_get_clipBottom,
    HTMLCSSStyleDeclaration_put_clipLeft,
    HTMLCSSStyleDeclaration_get_clipLeft,
    HTMLCSSStyleDeclaration_put_cssFloat,
    HTMLCSSStyleDeclaration_get_cssFloat,
    HTMLCSSStyleDeclaration_put_backgroundClip,
    HTMLCSSStyleDeclaration_get_backgroundClip,
    HTMLCSSStyleDeclaration_put_backgroundOrigin,
    HTMLCSSStyleDeclaration_get_backgroundOrigin,
    HTMLCSSStyleDeclaration_put_backgroundSize,
    HTMLCSSStyleDeclaration_get_backgroundSize,
    HTMLCSSStyleDeclaration_put_boxShadow,
    HTMLCSSStyleDeclaration_get_boxShadow,
    HTMLCSSStyleDeclaration_put_msTransform,
    HTMLCSSStyleDeclaration_get_msTransform,
    HTMLCSSStyleDeclaration_put_msTransformOrigin,
    HTMLCSSStyleDeclaration_get_msTransformOrigin
};

8068
static inline CSSStyle *impl_from_IHTMLCSSStyleDeclaration2(IHTMLCSSStyleDeclaration2 *iface)
8069
{
8070
    return CONTAINING_RECORD(iface, CSSStyle, IHTMLCSSStyleDeclaration2_iface);
8071 8072 8073 8074 8075
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_QueryInterface(IHTMLCSSStyleDeclaration2 *iface,
        REFIID riid, void **ppv)
{
8076 8077
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
    return IHTMLCSSStyleDeclaration_QueryInterface(&This->IHTMLCSSStyleDeclaration_iface, riid, ppv);
8078 8079 8080 8081
}

static ULONG WINAPI HTMLCSSStyleDeclaration2_AddRef(IHTMLCSSStyleDeclaration2 *iface)
{
8082 8083
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
    return IHTMLCSSStyleDeclaration_AddRef(&This->IHTMLCSSStyleDeclaration_iface);
8084 8085 8086 8087
}

static ULONG WINAPI HTMLCSSStyleDeclaration2_Release(IHTMLCSSStyleDeclaration2 *iface)
{
8088 8089
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
    return IHTMLCSSStyleDeclaration_Release(&This->IHTMLCSSStyleDeclaration_iface);
8090 8091 8092 8093 8094
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_GetTypeInfoCount(IHTMLCSSStyleDeclaration2 *iface,
        UINT *pctinfo)
{
8095
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8096
    TRACE("(%p)->(%p)\n", This, pctinfo);
8097
    return IDispatchEx_GetTypeInfoCount(&This->dispex.IDispatchEx_iface, pctinfo);
8098 8099 8100 8101 8102
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_GetTypeInfo(IHTMLCSSStyleDeclaration2 *iface,
        UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
{
8103
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8104
    TRACE("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo);
8105
    return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
8106 8107 8108 8109 8110
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_GetIDsOfNames(IHTMLCSSStyleDeclaration2 *iface,
        REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
{
8111
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8112
    TRACE("(%p)->(%p %p %u %u %p)\n", This, riid, rgszNames, cNames, lcid, rgDispId);
8113
    return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface, riid, rgszNames,
8114 8115 8116 8117 8118 8119 8120
                                     cNames, lcid, rgDispId);
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_Invoke(IHTMLCSSStyleDeclaration2 *iface,
        DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
        VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
{
8121
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8122 8123
    TRACE("(%p)->(%d %p %u %u %p %p %p %p)\n", This, dispIdMember, riid, lcid, wFlags,
          pDispParams, pVarResult, pExcepInfo, puArgErr);
8124
    return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
8125 8126 8127 8128 8129
                              wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msScrollChaining(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8130
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8131 8132 8133 8134 8135 8136
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msScrollChaining(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8137
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8138 8139 8140 8141 8142 8143
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msContentZooming(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8144
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8145 8146 8147 8148 8149 8150
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msContentZooming(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8151
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8152 8153 8154 8155 8156 8157
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msContentZoomSnapType(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8158
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8159 8160 8161 8162 8163 8164
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msContentZoomSnapType(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8165
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8166 8167 8168 8169 8170 8171
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msScrollRails(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8172
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8173 8174 8175 8176 8177 8178
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msScrollRails(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8179
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8180 8181 8182 8183 8184 8185
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msContentZoomChaining(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8186
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8187 8188 8189 8190 8191 8192
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msContentZoomChaining(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8193
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8194 8195 8196 8197 8198 8199
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msScrollSnapType(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8200
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8201 8202 8203 8204 8205 8206
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msScrollSnapType(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8207
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8208 8209 8210 8211 8212 8213
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msContentZoomLimit(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8214
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8215 8216 8217 8218 8219 8220
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msContentZoomLimit(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8221
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8222 8223 8224 8225 8226 8227
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msContentZoomSnap(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8228
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8229 8230 8231 8232 8233 8234
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msContentZoomSnap(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8235
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8236 8237 8238 8239 8240 8241
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msContentZoomSnapPoints(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8242
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8243 8244 8245 8246 8247 8248
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msContentZoomSnapPoints(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8249
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8250 8251 8252 8253 8254 8255
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msContentZoomLimitMin(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
{
8256
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8257 8258 8259 8260 8261 8262
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msContentZoomLimitMin(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
{
8263
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8264 8265 8266 8267 8268 8269
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msContentZoomLimitMax(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
{
8270
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8271 8272 8273 8274 8275 8276
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msContentZoomLimitMax(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
{
8277
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8278 8279 8280 8281 8282 8283
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msScrollSnapX(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8284
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8285 8286 8287 8288 8289 8290
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msScrollSnapX(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8291
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8292 8293 8294 8295 8296 8297
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msScrollSnapY(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8298
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8299 8300 8301 8302 8303 8304
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msScrollSnapY(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8305
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8306 8307 8308 8309 8310 8311
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msScrollSnapPointsX(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8312
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8313 8314 8315 8316 8317 8318
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msScrollSnapPointsX(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8319
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8320 8321 8322 8323 8324 8325
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msScrollSnapPointsY(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8326
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8327 8328 8329 8330 8331 8332
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msScrollSnapPointsY(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8333
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8334 8335 8336 8337 8338 8339
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msGridColumn(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
{
8340
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8341 8342 8343 8344 8345 8346
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msGridColumn(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
{
8347
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8348 8349 8350 8351 8352 8353
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msGridColumnAlign(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8354
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8355 8356 8357 8358 8359 8360
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msGridColumnAlign(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8361
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8362 8363 8364 8365 8366 8367
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msGridColumns(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8368
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8369 8370 8371 8372 8373 8374
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msGridColumns(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8375
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8376 8377 8378 8379 8380 8381
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msGridColumnSpan(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
{
8382
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8383 8384 8385 8386 8387 8388
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msGridColumnSpan(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
{
8389
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8390 8391 8392 8393 8394 8395
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msGridRow(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
{
8396
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8397 8398 8399 8400 8401 8402
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msGridRow(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
{
8403
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8404 8405 8406 8407 8408 8409
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msGridRowAlign(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8410
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8411 8412 8413 8414 8415 8416
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msGridRowAlign(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8417
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8418 8419 8420 8421 8422 8423
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msGridRows(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8424
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8425 8426 8427 8428 8429 8430
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msGridRows(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8431
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8432 8433 8434 8435 8436 8437
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msGridRowSpan(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
{
8438
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8439 8440 8441 8442 8443 8444
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msGridRowSpan(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
{
8445
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8446 8447 8448 8449 8450 8451
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msWrapThrough(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8452
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8453 8454 8455 8456 8457 8458
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msWrapThrough(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8459
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8460 8461 8462 8463 8464 8465
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msWrapMargin(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
{
8466
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8467 8468 8469 8470 8471 8472
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msWrapMargin(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
{
8473
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8474 8475 8476 8477 8478 8479
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msWrapFlow(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8480
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8481 8482 8483 8484 8485 8486
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msWrapFlow(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8487
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8488 8489 8490 8491 8492 8493
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msAnimationName(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8494
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8495 8496 8497 8498 8499 8500
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msAnimationName(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8501
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8502 8503 8504 8505 8506 8507
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msAnimationDuration(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8508
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8509 8510 8511 8512 8513 8514
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msAnimationDuration(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8515
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8516 8517 8518 8519 8520 8521
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msAnimationTimingFunction(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8522
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8523 8524 8525 8526 8527 8528
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msAnimationTimingFunction(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8529
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8530 8531 8532 8533 8534 8535
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msAnimationDelay(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8536
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8537 8538 8539 8540 8541 8542
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msAnimationDelay(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8543
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8544 8545 8546 8547 8548 8549
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msAnimationDirection(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8550
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8551 8552 8553 8554 8555 8556
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msAnimationDirection(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8557
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8558 8559 8560 8561 8562 8563
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msAnimationPlayState(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8564
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8565 8566 8567 8568 8569 8570
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msAnimationPlayState(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8571
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8572 8573 8574 8575 8576 8577
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msAnimationIterationCount(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8578
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8579 8580 8581 8582 8583 8584
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msAnimationIterationCount(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8585
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8586 8587 8588 8589 8590 8591
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msAnimation(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8592
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8593 8594 8595 8596 8597 8598
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msAnimation(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8599
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8600 8601 8602 8603 8604 8605
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msAnimationFillMode(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8606
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8607 8608 8609 8610 8611 8612
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msAnimationFillMode(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8613
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8614 8615 8616 8617 8618 8619
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_colorInterpolationFilters(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8620
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8621 8622 8623 8624 8625 8626
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_colorInterpolationFilters(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8627
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8628 8629 8630 8631 8632 8633
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_columnCount(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
{
8634
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8635 8636
    WARN("(%p)->(%s) semi-stub\n", This, debugstr_variant(&v));
    return set_style_property_var(This, STYLEID_COLUMN_COUNT, &v);
8637 8638 8639 8640
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_columnCount(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
{
8641
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8642 8643
    WARN("(%p)->(%p) semi-stub\n", This, p);
    return get_style_property_var(This, STYLEID_COLUMN_COUNT, p);
8644 8645 8646 8647
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_columnWidth(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
{
8648
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8649 8650
    WARN("(%p)->(%s) semi-stub\n", This, debugstr_variant(&v));
    return set_style_property_var(This, STYLEID_COLUMN_WIDTH, &v);
8651 8652 8653 8654
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_columnWidth(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
{
8655
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8656 8657
    WARN("(%p)->(%p) semi-stub\n", This, p);
    return get_style_property_var(This, STYLEID_COLUMN_WIDTH, p);
8658 8659 8660 8661
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_columnGap(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
{
8662
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8663 8664
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
    return set_style_property_var(This, STYLEID_COLUMN_GAP, &v);
8665 8666 8667 8668
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_columnGap(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
{
8669
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8670 8671
    TRACE("(%p)->(%p)\n", This, p);
    return get_style_property_var(This, STYLEID_COLUMN_GAP, p);
8672 8673 8674 8675
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_columnFill(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8676
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8677 8678
    WARN("(%p)->(%s) semi-stub\n", This, debugstr_w(v));
    return set_style_property(This, STYLEID_COLUMN_FILL, v);
8679 8680 8681 8682
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_columnFill(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8683
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8684 8685
    WARN("(%p)->(%p) semi-stub\n", This, p);
    return get_style_property(This, STYLEID_COLUMN_FILL, p);
8686 8687 8688 8689
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_columnSpan(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8690
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8691 8692
    WARN("(%p)->(%s) semi-stub\n", This, debugstr_w(v));
    return set_style_property(This, STYLEID_COLUMN_SPAN, v);
8693 8694 8695 8696
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_columnSpan(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8697
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8698 8699
    WARN("(%p)->(%p) semi-stub\n", This, p);
    return get_style_property(This, STYLEID_COLUMN_SPAN, p);
8700 8701 8702 8703
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_columns(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8704
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8705 8706 8707 8708 8709 8710
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_columns(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8711
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8712 8713 8714 8715 8716 8717
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_columnRule(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8718
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8719 8720
    WARN("(%p)->(%s) semi-stub\n", This, debugstr_w(v));
    return set_style_property(This, STYLEID_COLUMN_RULE, v);
8721 8722 8723 8724
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_columnRule(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8725
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8726 8727
    WARN("(%p)->(%p) semi-stub\n", This, p);
    return get_style_property(This, STYLEID_COLUMN_RULE, p);
8728 8729 8730 8731
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_columnRuleColor(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
{
8732
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8733 8734
    WARN("(%p)->(%s) semi-stub\n", This, debugstr_variant(&v));
    return set_style_property_var(This, STYLEID_COLUMN_RULE_COLOR, &v);
8735 8736 8737 8738
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_columnRuleColor(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
{
8739
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8740 8741
    WARN("(%p)->(%p) semi-stub\n", This, p);
    return get_style_property_var(This, STYLEID_COLUMN_RULE_COLOR, p);
8742 8743 8744 8745
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_columnRuleStyle(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8746
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8747 8748
    WARN("(%p)->(%s) semi-stub\n", This, debugstr_w(v));
    return set_style_property(This, STYLEID_COLUMN_RULE_STYLE, v);
8749 8750 8751 8752
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_columnRuleStyle(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8753
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8754 8755
    WARN("(%p)->(%p) semi-stub\n", This, p);
    return get_style_property(This, STYLEID_COLUMN_RULE_STYLE, p);
8756 8757 8758 8759
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_columnRuleWidth(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
{
8760
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8761 8762
    WARN("(%p)->(%s) semi-stub\n", This, debugstr_variant(&v));
    return set_style_property_var(This, STYLEID_COLUMN_RULE_WIDTH, &v);
8763 8764 8765 8766
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_columnRuleWidth(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
{
8767
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8768 8769
    WARN("(%p)->(%p) semi-stub\n", This, p);
    return get_style_property_var(This, STYLEID_COLUMN_RULE_WIDTH, p);
8770 8771 8772 8773
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_breakBefore(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8774
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8775 8776 8777 8778 8779 8780
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_breakBefore(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8781
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8782 8783 8784 8785 8786 8787
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_breakAfter(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8788
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8789 8790 8791 8792 8793 8794
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_breakAfter(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8795
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8796 8797 8798 8799 8800 8801
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_breakInside(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8802
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8803 8804 8805 8806 8807 8808
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_breakInside(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8809
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8810 8811 8812 8813 8814 8815
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_floodColor(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
{
8816
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8817 8818 8819 8820 8821 8822
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_floodColor(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
{
8823
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8824 8825 8826 8827 8828 8829
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_floodOpacity(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
{
8830
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8831 8832 8833 8834 8835 8836
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_floodOpacity(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
{
8837
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8838 8839 8840 8841 8842 8843
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_lightingColor(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
{
8844
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8845 8846 8847 8848 8849 8850
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_lightingColor(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
{
8851
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8852 8853 8854 8855 8856 8857
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msScrollLimitXMin(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
{
8858
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8859 8860 8861 8862 8863 8864
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msScrollLimitXMin(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
{
8865
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8866 8867 8868 8869 8870 8871
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msScrollLimitYMin(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
{
8872
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8873 8874 8875 8876 8877 8878
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msScrollLimitYMin(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
{
8879
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8880 8881 8882 8883 8884 8885
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msScrollLimitXMax(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
{
8886
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8887 8888 8889 8890 8891 8892
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msScrollLimitXMax(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
{
8893
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8894 8895 8896 8897 8898 8899
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msScrollLimitYMax(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
{
8900
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8901 8902 8903 8904 8905 8906
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msScrollLimitYMax(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
{
8907
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8908 8909 8910 8911 8912 8913
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msScrollLimit(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8914
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8915 8916 8917 8918 8919 8920
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msScrollLimit(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8921
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8922 8923 8924 8925 8926 8927
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_textShadow(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8928
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8929 8930 8931 8932 8933 8934
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_textShadow(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8935
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8936 8937 8938 8939 8940 8941
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msFlowFrom(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8942
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8943 8944 8945 8946 8947 8948
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msFlowFrom(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8949
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8950 8951 8952 8953 8954 8955
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msFlowInto(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8956
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8957 8958 8959 8960 8961 8962
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msFlowInto(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8963
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8964 8965 8966 8967 8968 8969
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msHyphens(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8970
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8971 8972 8973 8974 8975 8976
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msHyphens(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
8977
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8978 8979 8980 8981 8982 8983
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msHyphenateLimitZone(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
{
8984
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8985 8986 8987 8988 8989 8990
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msHyphenateLimitZone(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
{
8991
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8992 8993 8994 8995 8996 8997
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msHyphenateLimitChars(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
8998
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
8999 9000 9001 9002 9003 9004
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msHyphenateLimitChars(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9005
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9006 9007 9008 9009 9010 9011
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msHyphenateLimitLines(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
{
9012
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9013 9014 9015 9016 9017 9018
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msHyphenateLimitLines(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
{
9019
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9020 9021 9022 9023 9024 9025
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msHighContrastAdjust(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9026
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9027 9028 9029 9030 9031 9032
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msHighContrastAdjust(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9033
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9034 9035 9036 9037 9038 9039
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_enableBackground(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9040
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9041 9042 9043 9044 9045 9046
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_enableBackground(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9047
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9048 9049 9050 9051 9052 9053
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msFontFeatureSettings(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9054
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9055 9056 9057 9058 9059 9060
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msFontFeatureSettings(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9061
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9062 9063 9064 9065 9066 9067
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msUserSelect(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9068
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9069 9070 9071 9072 9073 9074
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msUserSelect(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9075
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9076 9077 9078 9079 9080 9081
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msOverflowStyle(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9082
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9083 9084 9085 9086 9087 9088
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msOverflowStyle(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9089
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9090 9091 9092 9093 9094 9095
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msTransformStyle(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9096
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9097 9098 9099 9100 9101 9102
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msTransformStyle(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9103
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9104 9105 9106 9107 9108 9109
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msBackfaceVisibility(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9110
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9111 9112 9113 9114 9115 9116
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msBackfaceVisibility(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9117
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9118 9119 9120 9121 9122 9123
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msPerspective(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
{
9124
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9125 9126 9127 9128 9129 9130
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msPerspective(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
{
9131
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9132 9133 9134 9135 9136 9137
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msPerspectiveOrigin(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9138
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9139 9140 9141 9142 9143 9144
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msPerspectiveOrigin(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9145
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9146 9147 9148 9149 9150 9151
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msTransitionProperty(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9152
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9153 9154 9155 9156 9157 9158
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msTransitionProperty(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9159
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9160 9161 9162 9163 9164 9165
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msTransitionDuration(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9166
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9167 9168 9169 9170 9171 9172
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msTransitionDuration(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9173
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9174 9175 9176 9177 9178 9179
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msTransitionTimingFunction(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9180
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9181 9182 9183 9184 9185 9186
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msTransitionTimingFunction(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9187
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9188 9189 9190 9191 9192 9193
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msTransitionDelay(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9194
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9195 9196 9197 9198 9199 9200
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msTransitionDelay(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9201
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9202 9203 9204 9205 9206 9207
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msTransition(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9208
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9209 9210 9211 9212 9213 9214
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msTransition(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9215
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9216 9217 9218 9219 9220 9221
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msTouchAction(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9222
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9223 9224 9225 9226 9227 9228
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msTouchAction(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9229
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9230 9231 9232 9233 9234 9235
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msScrollTranslation(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9236
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9237 9238 9239 9240 9241 9242
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msScrollTranslation(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9243
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9244 9245 9246 9247 9248 9249
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msFlex(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9250
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9251 9252 9253 9254 9255 9256
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msFlex(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9257
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9258 9259 9260 9261 9262 9263
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msFlexPositive(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
{
9264
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9265 9266 9267 9268 9269 9270
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msFlexPositive(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
{
9271
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9272 9273 9274 9275 9276 9277
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msFlexNegative(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
{
9278
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9279 9280 9281 9282 9283 9284
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msFlexNegative(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
{
9285
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9286 9287 9288 9289 9290 9291
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msFlexPreferredSize(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
{
9292
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9293 9294 9295 9296 9297 9298
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msFlexPreferredSize(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
{
9299
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9300 9301 9302 9303 9304 9305
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msFlexFlow(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9306
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9307 9308 9309 9310 9311 9312
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msFlexFlow(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9313
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9314 9315 9316 9317 9318 9319
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msFlexDirection(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9320
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9321 9322 9323 9324 9325 9326
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msFlexDirection(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9327
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9328 9329 9330 9331 9332 9333
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msFlexWrap(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9334
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9335 9336 9337 9338 9339 9340
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msFlexWrap(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9341
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9342 9343 9344 9345 9346 9347
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msFlexAlign(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9348
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9349 9350 9351 9352 9353 9354
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msFlexAlign(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9355
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9356 9357 9358 9359 9360 9361
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msFlexItemAlign(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9362
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9363 9364 9365 9366 9367 9368
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msFlexItemAlign(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9369
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9370 9371 9372 9373 9374 9375
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msFlexPack(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9376
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9377 9378 9379 9380 9381 9382
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msFlexPack(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9383
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9384 9385 9386 9387 9388 9389
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msFlexLinePack(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9390
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9391 9392 9393 9394 9395 9396
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msFlexLinePack(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9397
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9398 9399 9400 9401 9402 9403
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msFlexOrder(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
{
9404
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9405 9406 9407 9408 9409 9410
    FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msFlexOrder(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
{
9411
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9412 9413 9414 9415 9416 9417
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_msTouchSelect(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9418
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9419 9420 9421 9422 9423 9424
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_msTouchSelect(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9425
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9426 9427 9428 9429 9430 9431
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_transform(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9432
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9433 9434
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
    return set_style_property(This, STYLEID_TRANSFORM, v);
9435 9436 9437 9438
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_transform(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9439
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9440 9441
    TRACE("(%p)->(%p)\n", This, p);
    return get_style_property(This, STYLEID_TRANSFORM, p);
9442 9443 9444 9445
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_transformOrigin(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9446
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9447 9448 9449 9450 9451 9452
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_transformOrigin(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9453
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9454 9455 9456 9457 9458 9459
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_transformStyle(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9460
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9461 9462 9463 9464 9465 9466
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_transformStyle(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9467
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9468 9469 9470 9471 9472 9473
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_backfaceVisibility(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9474
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9475 9476 9477 9478 9479 9480
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_backfaceVisibility(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9481
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9482 9483 9484 9485 9486 9487
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_perspective(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
{
9488
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9489 9490
    TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
    return set_style_property_var(This, STYLEID_PERSPECTIVE, &v);
9491 9492 9493 9494
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_perspective(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
{
9495
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9496 9497
    TRACE("(%p)->(%p)\n", This, p);
    return get_style_property_var(This, STYLEID_PERSPECTIVE, p);
9498 9499 9500 9501
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_perspectiveOrigin(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9502
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9503 9504 9505 9506 9507 9508
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_perspectiveOrigin(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9509
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9510 9511 9512 9513 9514 9515
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_transitionProperty(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9516
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9517 9518 9519 9520 9521 9522
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_transitionProperty(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9523
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9524 9525 9526 9527 9528 9529
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_transitionDuration(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9530
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9531 9532 9533 9534 9535 9536
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_transitionDuration(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9537
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9538 9539 9540 9541 9542 9543
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_transitionTimingFunction(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9544
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9545 9546 9547 9548 9549 9550
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_transitionTimingFunction(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9551
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9552 9553 9554 9555 9556 9557
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_transitionDelay(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9558
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9559 9560 9561 9562 9563 9564
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_transitionDelay(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9565
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9566 9567 9568 9569 9570 9571
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_transition(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9572
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9573 9574
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
    return set_style_property(This, STYLEID_TRANSITION, v);
9575 9576 9577 9578
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_transition(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9579
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9580 9581
    TRACE("(%p)->(%p)\n", This, p);
    return get_style_property(This, STYLEID_TRANSITION, p);
9582 9583 9584 9585
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_fontFeatureSettings(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9586
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9587 9588 9589 9590 9591 9592
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_fontFeatureSettings(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9593
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9594 9595 9596 9597 9598 9599
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_animationName(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9600
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9601 9602
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
    return set_style_property(This, STYLEID_ANIMATION_NAME, v);
9603 9604 9605 9606
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_animationName(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9607
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9608 9609
    TRACE("(%p)->(%p)\n", This, p);
    return get_style_property(This, STYLEID_ANIMATION_NAME, p);
9610 9611 9612 9613
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_animationDuration(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9614
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9615 9616 9617 9618 9619 9620
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_animationDuration(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9621
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9622 9623 9624 9625 9626 9627
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_animationTimingFunction(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9628
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9629 9630 9631 9632 9633 9634
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_animationTimingFunction(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9635
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9636 9637 9638 9639 9640 9641
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_animationDelay(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9642
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9643 9644 9645 9646 9647 9648
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_animationDelay(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9649
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9650 9651 9652 9653 9654 9655
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_animationDirection(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9656
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9657 9658 9659 9660 9661 9662
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_animationDirection(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9663
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9664 9665 9666 9667 9668 9669
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_animationPlayState(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9670
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9671 9672 9673 9674 9675 9676
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_animationPlayState(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9677
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9678 9679 9680 9681 9682 9683
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_animationIterationCount(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9684
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9685 9686 9687 9688 9689 9690
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_animationIterationCount(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9691
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9692 9693 9694 9695 9696 9697
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_animation(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9698
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9699 9700
    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
    return set_style_property(This, STYLEID_ANIMATION, v);
9701 9702 9703 9704
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_animation(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9705
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9706 9707
    TRACE("(%p)->(%p)\n", This, p);
    return get_style_property(This, STYLEID_ANIMATION, p);
9708 9709 9710 9711
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_animationFillMode(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{
9712
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9713 9714 9715 9716 9717 9718
    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
    return E_NOTIMPL;
}

static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_animationFillMode(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{
9719
    CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961
    FIXME("(%p)->(%p)\n", This, p);
    return E_NOTIMPL;
}

static const IHTMLCSSStyleDeclaration2Vtbl HTMLCSSStyleDeclaration2Vtbl = {
    HTMLCSSStyleDeclaration2_QueryInterface,
    HTMLCSSStyleDeclaration2_AddRef,
    HTMLCSSStyleDeclaration2_Release,
    HTMLCSSStyleDeclaration2_GetTypeInfoCount,
    HTMLCSSStyleDeclaration2_GetTypeInfo,
    HTMLCSSStyleDeclaration2_GetIDsOfNames,
    HTMLCSSStyleDeclaration2_Invoke,
    HTMLCSSStyleDeclaration2_put_msScrollChaining,
    HTMLCSSStyleDeclaration2_get_msScrollChaining,
    HTMLCSSStyleDeclaration2_put_msContentZooming,
    HTMLCSSStyleDeclaration2_get_msContentZooming,
    HTMLCSSStyleDeclaration2_put_msContentZoomSnapType,
    HTMLCSSStyleDeclaration2_get_msContentZoomSnapType,
    HTMLCSSStyleDeclaration2_put_msScrollRails,
    HTMLCSSStyleDeclaration2_get_msScrollRails,
    HTMLCSSStyleDeclaration2_put_msContentZoomChaining,
    HTMLCSSStyleDeclaration2_get_msContentZoomChaining,
    HTMLCSSStyleDeclaration2_put_msScrollSnapType,
    HTMLCSSStyleDeclaration2_get_msScrollSnapType,
    HTMLCSSStyleDeclaration2_put_msContentZoomLimit,
    HTMLCSSStyleDeclaration2_get_msContentZoomLimit,
    HTMLCSSStyleDeclaration2_put_msContentZoomSnap,
    HTMLCSSStyleDeclaration2_get_msContentZoomSnap,
    HTMLCSSStyleDeclaration2_put_msContentZoomSnapPoints,
    HTMLCSSStyleDeclaration2_get_msContentZoomSnapPoints,
    HTMLCSSStyleDeclaration2_put_msContentZoomLimitMin,
    HTMLCSSStyleDeclaration2_get_msContentZoomLimitMin,
    HTMLCSSStyleDeclaration2_put_msContentZoomLimitMax,
    HTMLCSSStyleDeclaration2_get_msContentZoomLimitMax,
    HTMLCSSStyleDeclaration2_put_msScrollSnapX,
    HTMLCSSStyleDeclaration2_get_msScrollSnapX,
    HTMLCSSStyleDeclaration2_put_msScrollSnapY,
    HTMLCSSStyleDeclaration2_get_msScrollSnapY,
    HTMLCSSStyleDeclaration2_put_msScrollSnapPointsX,
    HTMLCSSStyleDeclaration2_get_msScrollSnapPointsX,
    HTMLCSSStyleDeclaration2_put_msScrollSnapPointsY,
    HTMLCSSStyleDeclaration2_get_msScrollSnapPointsY,
    HTMLCSSStyleDeclaration2_put_msGridColumn,
    HTMLCSSStyleDeclaration2_get_msGridColumn,
    HTMLCSSStyleDeclaration2_put_msGridColumnAlign,
    HTMLCSSStyleDeclaration2_get_msGridColumnAlign,
    HTMLCSSStyleDeclaration2_put_msGridColumns,
    HTMLCSSStyleDeclaration2_get_msGridColumns,
    HTMLCSSStyleDeclaration2_put_msGridColumnSpan,
    HTMLCSSStyleDeclaration2_get_msGridColumnSpan,
    HTMLCSSStyleDeclaration2_put_msGridRow,
    HTMLCSSStyleDeclaration2_get_msGridRow,
    HTMLCSSStyleDeclaration2_put_msGridRowAlign,
    HTMLCSSStyleDeclaration2_get_msGridRowAlign,
    HTMLCSSStyleDeclaration2_put_msGridRows,
    HTMLCSSStyleDeclaration2_get_msGridRows,
    HTMLCSSStyleDeclaration2_put_msGridRowSpan,
    HTMLCSSStyleDeclaration2_get_msGridRowSpan,
    HTMLCSSStyleDeclaration2_put_msWrapThrough,
    HTMLCSSStyleDeclaration2_get_msWrapThrough,
    HTMLCSSStyleDeclaration2_put_msWrapMargin,
    HTMLCSSStyleDeclaration2_get_msWrapMargin,
    HTMLCSSStyleDeclaration2_put_msWrapFlow,
    HTMLCSSStyleDeclaration2_get_msWrapFlow,
    HTMLCSSStyleDeclaration2_put_msAnimationName,
    HTMLCSSStyleDeclaration2_get_msAnimationName,
    HTMLCSSStyleDeclaration2_put_msAnimationDuration,
    HTMLCSSStyleDeclaration2_get_msAnimationDuration,
    HTMLCSSStyleDeclaration2_put_msAnimationTimingFunction,
    HTMLCSSStyleDeclaration2_get_msAnimationTimingFunction,
    HTMLCSSStyleDeclaration2_put_msAnimationDelay,
    HTMLCSSStyleDeclaration2_get_msAnimationDelay,
    HTMLCSSStyleDeclaration2_put_msAnimationDirection,
    HTMLCSSStyleDeclaration2_get_msAnimationDirection,
    HTMLCSSStyleDeclaration2_put_msAnimationPlayState,
    HTMLCSSStyleDeclaration2_get_msAnimationPlayState,
    HTMLCSSStyleDeclaration2_put_msAnimationIterationCount,
    HTMLCSSStyleDeclaration2_get_msAnimationIterationCount,
    HTMLCSSStyleDeclaration2_put_msAnimation,
    HTMLCSSStyleDeclaration2_get_msAnimation,
    HTMLCSSStyleDeclaration2_put_msAnimationFillMode,
    HTMLCSSStyleDeclaration2_get_msAnimationFillMode,
    HTMLCSSStyleDeclaration2_put_colorInterpolationFilters,
    HTMLCSSStyleDeclaration2_get_colorInterpolationFilters,
    HTMLCSSStyleDeclaration2_put_columnCount,
    HTMLCSSStyleDeclaration2_get_columnCount,
    HTMLCSSStyleDeclaration2_put_columnWidth,
    HTMLCSSStyleDeclaration2_get_columnWidth,
    HTMLCSSStyleDeclaration2_put_columnGap,
    HTMLCSSStyleDeclaration2_get_columnGap,
    HTMLCSSStyleDeclaration2_put_columnFill,
    HTMLCSSStyleDeclaration2_get_columnFill,
    HTMLCSSStyleDeclaration2_put_columnSpan,
    HTMLCSSStyleDeclaration2_get_columnSpan,
    HTMLCSSStyleDeclaration2_put_columns,
    HTMLCSSStyleDeclaration2_get_columns,
    HTMLCSSStyleDeclaration2_put_columnRule,
    HTMLCSSStyleDeclaration2_get_columnRule,
    HTMLCSSStyleDeclaration2_put_columnRuleColor,
    HTMLCSSStyleDeclaration2_get_columnRuleColor,
    HTMLCSSStyleDeclaration2_put_columnRuleStyle,
    HTMLCSSStyleDeclaration2_get_columnRuleStyle,
    HTMLCSSStyleDeclaration2_put_columnRuleWidth,
    HTMLCSSStyleDeclaration2_get_columnRuleWidth,
    HTMLCSSStyleDeclaration2_put_breakBefore,
    HTMLCSSStyleDeclaration2_get_breakBefore,
    HTMLCSSStyleDeclaration2_put_breakAfter,
    HTMLCSSStyleDeclaration2_get_breakAfter,
    HTMLCSSStyleDeclaration2_put_breakInside,
    HTMLCSSStyleDeclaration2_get_breakInside,
    HTMLCSSStyleDeclaration2_put_floodColor,
    HTMLCSSStyleDeclaration2_get_floodColor,
    HTMLCSSStyleDeclaration2_put_floodOpacity,
    HTMLCSSStyleDeclaration2_get_floodOpacity,
    HTMLCSSStyleDeclaration2_put_lightingColor,
    HTMLCSSStyleDeclaration2_get_lightingColor,
    HTMLCSSStyleDeclaration2_put_msScrollLimitXMin,
    HTMLCSSStyleDeclaration2_get_msScrollLimitXMin,
    HTMLCSSStyleDeclaration2_put_msScrollLimitYMin,
    HTMLCSSStyleDeclaration2_get_msScrollLimitYMin,
    HTMLCSSStyleDeclaration2_put_msScrollLimitXMax,
    HTMLCSSStyleDeclaration2_get_msScrollLimitXMax,
    HTMLCSSStyleDeclaration2_put_msScrollLimitYMax,
    HTMLCSSStyleDeclaration2_get_msScrollLimitYMax,
    HTMLCSSStyleDeclaration2_put_msScrollLimit,
    HTMLCSSStyleDeclaration2_get_msScrollLimit,
    HTMLCSSStyleDeclaration2_put_textShadow,
    HTMLCSSStyleDeclaration2_get_textShadow,
    HTMLCSSStyleDeclaration2_put_msFlowFrom,
    HTMLCSSStyleDeclaration2_get_msFlowFrom,
    HTMLCSSStyleDeclaration2_put_msFlowInto,
    HTMLCSSStyleDeclaration2_get_msFlowInto,
    HTMLCSSStyleDeclaration2_put_msHyphens,
    HTMLCSSStyleDeclaration2_get_msHyphens,
    HTMLCSSStyleDeclaration2_put_msHyphenateLimitZone,
    HTMLCSSStyleDeclaration2_get_msHyphenateLimitZone,
    HTMLCSSStyleDeclaration2_put_msHyphenateLimitChars,
    HTMLCSSStyleDeclaration2_get_msHyphenateLimitChars,
    HTMLCSSStyleDeclaration2_put_msHyphenateLimitLines,
    HTMLCSSStyleDeclaration2_get_msHyphenateLimitLines,
    HTMLCSSStyleDeclaration2_put_msHighContrastAdjust,
    HTMLCSSStyleDeclaration2_get_msHighContrastAdjust,
    HTMLCSSStyleDeclaration2_put_enableBackground,
    HTMLCSSStyleDeclaration2_get_enableBackground,
    HTMLCSSStyleDeclaration2_put_msFontFeatureSettings,
    HTMLCSSStyleDeclaration2_get_msFontFeatureSettings,
    HTMLCSSStyleDeclaration2_put_msUserSelect,
    HTMLCSSStyleDeclaration2_get_msUserSelect,
    HTMLCSSStyleDeclaration2_put_msOverflowStyle,
    HTMLCSSStyleDeclaration2_get_msOverflowStyle,
    HTMLCSSStyleDeclaration2_put_msTransformStyle,
    HTMLCSSStyleDeclaration2_get_msTransformStyle,
    HTMLCSSStyleDeclaration2_put_msBackfaceVisibility,
    HTMLCSSStyleDeclaration2_get_msBackfaceVisibility,
    HTMLCSSStyleDeclaration2_put_msPerspective,
    HTMLCSSStyleDeclaration2_get_msPerspective,
    HTMLCSSStyleDeclaration2_put_msPerspectiveOrigin,
    HTMLCSSStyleDeclaration2_get_msPerspectiveOrigin,
    HTMLCSSStyleDeclaration2_put_msTransitionProperty,
    HTMLCSSStyleDeclaration2_get_msTransitionProperty,
    HTMLCSSStyleDeclaration2_put_msTransitionDuration,
    HTMLCSSStyleDeclaration2_get_msTransitionDuration,
    HTMLCSSStyleDeclaration2_put_msTransitionTimingFunction,
    HTMLCSSStyleDeclaration2_get_msTransitionTimingFunction,
    HTMLCSSStyleDeclaration2_put_msTransitionDelay,
    HTMLCSSStyleDeclaration2_get_msTransitionDelay,
    HTMLCSSStyleDeclaration2_put_msTransition,
    HTMLCSSStyleDeclaration2_get_msTransition,
    HTMLCSSStyleDeclaration2_put_msTouchAction,
    HTMLCSSStyleDeclaration2_get_msTouchAction,
    HTMLCSSStyleDeclaration2_put_msScrollTranslation,
    HTMLCSSStyleDeclaration2_get_msScrollTranslation,
    HTMLCSSStyleDeclaration2_put_msFlex,
    HTMLCSSStyleDeclaration2_get_msFlex,
    HTMLCSSStyleDeclaration2_put_msFlexPositive,
    HTMLCSSStyleDeclaration2_get_msFlexPositive,
    HTMLCSSStyleDeclaration2_put_msFlexNegative,
    HTMLCSSStyleDeclaration2_get_msFlexNegative,
    HTMLCSSStyleDeclaration2_put_msFlexPreferredSize,
    HTMLCSSStyleDeclaration2_get_msFlexPreferredSize,
    HTMLCSSStyleDeclaration2_put_msFlexFlow,
    HTMLCSSStyleDeclaration2_get_msFlexFlow,
    HTMLCSSStyleDeclaration2_put_msFlexDirection,
    HTMLCSSStyleDeclaration2_get_msFlexDirection,
    HTMLCSSStyleDeclaration2_put_msFlexWrap,
    HTMLCSSStyleDeclaration2_get_msFlexWrap,
    HTMLCSSStyleDeclaration2_put_msFlexAlign,
    HTMLCSSStyleDeclaration2_get_msFlexAlign,
    HTMLCSSStyleDeclaration2_put_msFlexItemAlign,
    HTMLCSSStyleDeclaration2_get_msFlexItemAlign,
    HTMLCSSStyleDeclaration2_put_msFlexPack,
    HTMLCSSStyleDeclaration2_get_msFlexPack,
    HTMLCSSStyleDeclaration2_put_msFlexLinePack,
    HTMLCSSStyleDeclaration2_get_msFlexLinePack,
    HTMLCSSStyleDeclaration2_put_msFlexOrder,
    HTMLCSSStyleDeclaration2_get_msFlexOrder,
    HTMLCSSStyleDeclaration2_put_msTouchSelect,
    HTMLCSSStyleDeclaration2_get_msTouchSelect,
    HTMLCSSStyleDeclaration2_put_transform,
    HTMLCSSStyleDeclaration2_get_transform,
    HTMLCSSStyleDeclaration2_put_transformOrigin,
    HTMLCSSStyleDeclaration2_get_transformOrigin,
    HTMLCSSStyleDeclaration2_put_transformStyle,
    HTMLCSSStyleDeclaration2_get_transformStyle,
    HTMLCSSStyleDeclaration2_put_backfaceVisibility,
    HTMLCSSStyleDeclaration2_get_backfaceVisibility,
    HTMLCSSStyleDeclaration2_put_perspective,
    HTMLCSSStyleDeclaration2_get_perspective,
    HTMLCSSStyleDeclaration2_put_perspectiveOrigin,
    HTMLCSSStyleDeclaration2_get_perspectiveOrigin,
    HTMLCSSStyleDeclaration2_put_transitionProperty,
    HTMLCSSStyleDeclaration2_get_transitionProperty,
    HTMLCSSStyleDeclaration2_put_transitionDuration,
    HTMLCSSStyleDeclaration2_get_transitionDuration,
    HTMLCSSStyleDeclaration2_put_transitionTimingFunction,
    HTMLCSSStyleDeclaration2_get_transitionTimingFunction,
    HTMLCSSStyleDeclaration2_put_transitionDelay,
    HTMLCSSStyleDeclaration2_get_transitionDelay,
    HTMLCSSStyleDeclaration2_put_transition,
    HTMLCSSStyleDeclaration2_get_transition,
    HTMLCSSStyleDeclaration2_put_fontFeatureSettings,
    HTMLCSSStyleDeclaration2_get_fontFeatureSettings,
    HTMLCSSStyleDeclaration2_put_animationName,
    HTMLCSSStyleDeclaration2_get_animationName,
    HTMLCSSStyleDeclaration2_put_animationDuration,
    HTMLCSSStyleDeclaration2_get_animationDuration,
    HTMLCSSStyleDeclaration2_put_animationTimingFunction,
    HTMLCSSStyleDeclaration2_get_animationTimingFunction,
    HTMLCSSStyleDeclaration2_put_animationDelay,
    HTMLCSSStyleDeclaration2_get_animationDelay,
    HTMLCSSStyleDeclaration2_put_animationDirection,
    HTMLCSSStyleDeclaration2_get_animationDirection,
    HTMLCSSStyleDeclaration2_put_animationPlayState,
    HTMLCSSStyleDeclaration2_get_animationPlayState,
    HTMLCSSStyleDeclaration2_put_animationIterationCount,
    HTMLCSSStyleDeclaration2_get_animationIterationCount,
    HTMLCSSStyleDeclaration2_put_animation,
    HTMLCSSStyleDeclaration2_get_animation,
    HTMLCSSStyleDeclaration2_put_animationFillMode,
    HTMLCSSStyleDeclaration2_get_animationFillMode
};

9962 9963 9964 9965 9966
static inline CSSStyle *impl_from_DispatchEx(DispatchEx *dispex)
{
    return CONTAINING_RECORD(dispex, CSSStyle, dispex);
}

9967
static HRESULT CSSStyle_get_dispid(DispatchEx *dispex, BSTR name, DWORD flags, DISPID *dispid)
9968
{
9969
    CSSStyle *This = impl_from_DispatchEx(dispex);
9970
    const style_tbl_entry_t *style_entry;
9971

9972
    style_entry = lookup_style_tbl(This, name);
9973 9974 9975 9976 9977 9978 9979
    if(style_entry) {
        DISPID id = dispex_compat_mode(dispex) >= COMPAT_MODE_IE9
            ? style_entry->dispid : style_entry->compat_dispid;
        if(id == DISPID_UNKNOWN)
            return DISP_E_UNKNOWNNAME;

        *dispid = id;
9980
        return S_OK;
9981 9982 9983 9984 9985
    }

    return DISP_E_UNKNOWNNAME;
}

9986
void CSSStyle_init_dispex_info(dispex_data_t *info, compat_mode_t mode)
9987 9988 9989
{
    if(mode >= COMPAT_MODE_IE9)
        dispex_info_add_interface(info, IHTMLCSSStyleDeclaration_tid, NULL);
9990 9991
    if(mode >= COMPAT_MODE_IE10)
        dispex_info_add_interface(info, IHTMLCSSStyleDeclaration2_tid, NULL);
9992 9993
}

9994
const dispex_static_data_vtbl_t CSSStyle_dispex_vtbl = {
9995
    NULL,
9996
    CSSStyle_get_dispid,
9997
    NULL,
9998 9999 10000
    NULL
};

10001
static const tid_t HTMLStyle_iface_tids[] = {
10002
    IHTMLStyle6_tid,
10003 10004 10005 10006 10007
    IHTMLStyle5_tid,
    IHTMLStyle4_tid,
    IHTMLStyle3_tid,
    IHTMLStyle2_tid,
    IHTMLStyle_tid,
10008 10009
    0
};
10010
static dispex_static_data_t HTMLStyle_dispex = {
10011
    L"MSStyleCSSProperties",
10012
    &CSSStyle_dispex_vtbl,
10013
    DispHTMLStyle_tid,
10014
    HTMLStyle_iface_tids,
10015
    CSSStyle_init_dispex_info
10016 10017
};

10018
static HRESULT get_style_from_elem(HTMLElement *elem, nsIDOMCSSStyleDeclaration **ret)
10019
{
10020
    nsIDOMElementCSSInlineStyle *nselemstyle;
10021
    nsIDOMSVGElement *svg_element;
10022 10023
    nsresult nsres;

10024 10025
    if(!elem->dom_element) {
        FIXME("comment element\n");
10026 10027 10028
        return E_NOTIMPL;
    }

10029
    nsres = nsIDOMElement_QueryInterface(elem->dom_element, &IID_nsIDOMElementCSSInlineStyle,
10030
            (void**)&nselemstyle);
10031 10032 10033 10034 10035 10036 10037 10038 10039
    if(NS_SUCCEEDED(nsres)) {
        nsres = nsIDOMElementCSSInlineStyle_GetStyle(nselemstyle, ret);
        nsIDOMElementCSSInlineStyle_Release(nselemstyle);
        if(NS_FAILED(nsres)) {
            ERR("GetStyle failed: %08x\n", nsres);
            return E_FAIL;
        }
        return S_OK;
    }
10040

10041 10042 10043 10044 10045 10046 10047 10048 10049
    nsres = nsIDOMElement_QueryInterface(elem->dom_element, &IID_nsIDOMSVGElement, (void**)&svg_element);
    if(NS_SUCCEEDED(nsres)) {
        nsres = nsIDOMSVGElement_GetStyle(svg_element, ret);
        nsIDOMSVGElement_Release(svg_element);
        if(NS_FAILED(nsres)) {
            ERR("GetStyle failed: %08x\n", nsres);
            return E_FAIL;
        }
        return S_OK;
10050
    }
10051

10052 10053
    FIXME("Unsupported element type\n");
    return E_NOTIMPL;
10054 10055
}

10056 10057
void init_css_style(CSSStyle *style, nsIDOMCSSStyleDeclaration *nsstyle, style_qi_t qi,
                    dispex_static_data_t *dispex_info, compat_mode_t compat_mode)
10058 10059
{
    style->IHTMLCSSStyleDeclaration_iface.lpVtbl = &HTMLCSSStyleDeclarationVtbl;
10060
    style->IHTMLCSSStyleDeclaration2_iface.lpVtbl = &HTMLCSSStyleDeclaration2Vtbl;
10061 10062 10063 10064 10065
    style->ref = 1;
    style->qi = qi;
    style->nsstyle = nsstyle;
    nsIDOMCSSStyleDeclaration_AddRef(nsstyle);

10066 10067
    init_dispatch(&style->dispex, (IUnknown*)&style->IHTMLCSSStyleDeclaration_iface,
                  dispex_info, compat_mode);
10068 10069
}

10070 10071 10072 10073 10074 10075 10076 10077 10078 10079
HRESULT HTMLStyle_Create(HTMLElement *elem, HTMLStyle **ret)
{
    nsIDOMCSSStyleDeclaration *nsstyle;
    HTMLStyle *style;
    HRESULT hres;

    hres = get_style_from_elem(elem, &nsstyle);
    if(FAILED(hres))
        return hres;

10080
    style = heap_alloc_zero(sizeof(HTMLStyle));
10081 10082
    if(!style) {
        nsIDOMCSSStyleDeclaration_Release(nsstyle);
10083
        return E_OUTOFMEMORY;
10084
    }
10085 10086

    style->IHTMLStyle_iface.lpVtbl = &HTMLStyleVtbl;
10087
    style->IHTMLStyle2_iface.lpVtbl = &HTMLStyle2Vtbl;
10088 10089 10090 10091 10092
    style->IHTMLStyle3_iface.lpVtbl = &HTMLStyle3Vtbl;
    style->IHTMLStyle4_iface.lpVtbl = &HTMLStyle4Vtbl;
    style->IHTMLStyle5_iface.lpVtbl = &HTMLStyle5Vtbl;
    style->IHTMLStyle6_iface.lpVtbl = &HTMLStyle6Vtbl;

10093
    style->elem = elem;
10094

10095 10096
    init_css_style(&style->css_style, nsstyle, HTMLStyle_QI, &HTMLStyle_dispex,
                   dispex_compat_mode(&elem->node.event_target.dispex));
10097

10098 10099
    *ret = style;
    return S_OK;
10100
}
10101

10102 10103 10104 10105
static const tid_t HTMLW3CComputedStyle_iface_tids[] = {
    0
};
static dispex_static_data_t HTMLW3CComputedStyle_dispex = {
10106
    L"CSSStyleDeclaration",
10107 10108 10109 10110 10111 10112
    &CSSStyle_dispex_vtbl,
    DispHTMLW3CComputedStyle_tid,
    HTMLW3CComputedStyle_iface_tids,
    CSSStyle_init_dispex_info
};

10113
HRESULT create_computed_style(nsIDOMCSSStyleDeclaration *nsstyle, compat_mode_t compat_mode, IHTMLCSSStyleDeclaration **p)
10114 10115 10116 10117 10118 10119
{
    CSSStyle *style;

    if(!(style = heap_alloc_zero(sizeof(*style))))
        return E_OUTOFMEMORY;

10120
    init_css_style(style, nsstyle, NULL, &HTMLW3CComputedStyle_dispex, compat_mode);
10121 10122 10123 10124
    *p = &style->IHTMLCSSStyleDeclaration_iface;
    return S_OK;
}

10125 10126 10127 10128 10129 10130 10131 10132 10133
HRESULT get_elem_style(HTMLElement *elem, styleid_t styleid, BSTR *ret)
{
    nsIDOMCSSStyleDeclaration *style;
    HRESULT hres;

    hres = get_style_from_elem(elem, &style);
    if(FAILED(hres))
        return hres;

10134
    hres = get_nsstyle_property(style, styleid, COMPAT_MODE_IE11, ret);
10135 10136 10137 10138 10139 10140 10141
    nsIDOMCSSStyleDeclaration_Release(style);
    return hres;
}

HRESULT set_elem_style(HTMLElement *elem, styleid_t styleid, const WCHAR *val)
{
    nsIDOMCSSStyleDeclaration *style;
10142
    nsAString value_str;
10143 10144 10145 10146 10147 10148
    HRESULT hres;

    hres = get_style_from_elem(elem, &style);
    if(FAILED(hres))
        return hres;

10149 10150 10151
    nsAString_InitDepend(&value_str, val);
    hres = set_nsstyle_property(style, styleid, &value_str);
    nsAString_Finish(&value_str);
10152 10153 10154
    nsIDOMCSSStyleDeclaration_Release(style);
    return hres;
}