701 BSTR sOverflowDefault;
730 hres = IHTMLStyle_get_marginBottom(
style, &
v);
741 hres = IHTMLStyle_get_marginBottom(
style, &
v);
763 str = (
void*)0xdeadbeef;
768 str = (
void*)0xdeadbeef;
773 hres = IHTMLStyle_get_fontWeight(
style, &sDefault);
853 ok(!
str,
"str != NULL\n");
856 hres = IHTMLStyle_put_fontWeight(
style, sDefault);
864 hres = IHTMLStyle_get_fontVariant(
style, &sDefault);
882 hres = IHTMLStyle_put_fontVariant(
style, sDefault);
886 str = (
void*)0xdeadbeef;
891 str = (
void*)0xdeadbeef;
954 hres = IHTMLStyle_get_textDecorationUnderline(
style, &
b);
955 ok(
hres ==
S_OK,
"get_textDecorationUnderline failed: %08x\n",
hres);
956 ok(
b == VARIANT_FALSE,
"textDecorationUnderline = %x\n",
b);
958 hres = IHTMLStyle_put_textDecorationUnderline(
style, VARIANT_TRUE);
959 ok(
hres ==
S_OK,
"put_textDecorationUnderline failed: %08x\n",
hres);
961 hres = IHTMLStyle_get_textDecorationUnderline(
style, &
b);
962 ok(
hres ==
S_OK,
"get_textDecorationUnderline failed: %08x\n",
hres);
963 ok(
b == VARIANT_TRUE,
"textDecorationUnderline = %x\n",
b);
965 hres = IHTMLStyle_put_textDecorationUnderline(
style, VARIANT_FALSE);
966 ok(
hres ==
S_OK,
"put_textDecorationUnderline failed: %08x\n",
hres);
969 hres = IHTMLStyle_get_textDecorationLineThrough(
style, &
b);
970 ok(
hres ==
S_OK,
"get_textDecorationLineThrough failed: %08x\n",
hres);
971 ok(
b == VARIANT_FALSE,
"textDecorationLineThrough = %x\n",
b);
973 hres = IHTMLStyle_put_textDecorationLineThrough(
style, VARIANT_TRUE);
974 ok(
hres ==
S_OK,
"put_textDecorationLineThrough failed: %08x\n",
hres);
976 hres = IHTMLStyle_get_textDecorationLineThrough(
style, &
b);
977 ok(
hres ==
S_OK,
"get_textDecorationLineThrough failed: %08x\n",
hres);
978 ok(
b == VARIANT_TRUE,
"textDecorationLineThrough = %x\n",
b);
980 hres = IHTMLStyle_put_textDecorationLineThrough(
style, VARIANT_FALSE);
981 ok(
hres ==
S_OK,
"put_textDecorationLineThrough failed: %08x\n",
hres);
984 hres = IHTMLStyle_get_textDecorationNone(
style, &
b);
986 ok(
b == VARIANT_FALSE,
"textDecorationNone = %x\n",
b);
988 hres = IHTMLStyle_put_textDecorationNone(
style, VARIANT_TRUE);
991 hres = IHTMLStyle_get_textDecorationNone(
style, &
b);
993 ok(
b == VARIANT_TRUE,
"textDecorationNone = %x\n",
b);
995 hres = IHTMLStyle_put_textDecorationNone(
style, VARIANT_FALSE);
999 hres = IHTMLStyle_get_textDecorationOverline(
style, &
b);
1000 ok(
hres ==
S_OK,
"get_textDecorationOverline failed: %08x\n",
hres);
1001 ok(
b == VARIANT_FALSE,
"textDecorationOverline = %x\n",
b);
1003 hres = IHTMLStyle_put_textDecorationOverline(
style, VARIANT_TRUE);
1004 ok(
hres ==
S_OK,
"put_textDecorationOverline failed: %08x\n",
hres);
1006 hres = IHTMLStyle_get_textDecorationOverline(
style, &
b);
1007 ok(
hres ==
S_OK,
"get_textDecorationOverline failed: %08x\n",
hres);
1008 ok(
b == VARIANT_TRUE,
"textDecorationOverline = %x\n",
b);
1010 hres = IHTMLStyle_put_textDecorationOverline(
style, VARIANT_FALSE);
1011 ok(
hres ==
S_OK,
"put_textDecorationOverline failed: %08x\n",
hres);
1014 hres = IHTMLStyle_get_textDecorationBlink(
style, &
b);
1015 ok(
hres ==
S_OK,
"get_textDecorationBlink failed: %08x\n",
hres);
1016 ok(
b == VARIANT_FALSE,
"textDecorationBlink = %x\n",
b);
1018 hres = IHTMLStyle_put_textDecorationBlink(
style, VARIANT_TRUE);
1019 ok(
hres ==
S_OK,
"put_textDecorationBlink failed: %08x\n",
hres);
1021 hres = IHTMLStyle_get_textDecorationBlink(
style, &
b);
1022 ok(
hres ==
S_OK,
"get_textDecorationBlink failed: %08x\n",
hres);
1023 ok(
b == VARIANT_TRUE,
"textDecorationBlink = %x\n",
b);
1025 hres = IHTMLStyle_put_textDecorationBlink(
style, VARIANT_FALSE);
1028 hres = IHTMLStyle_get_textDecoration(
style, &sDefault);
1046 hres = IHTMLStyle_put_textDecoration(
style, sDefault);
1055 ok(
f == 0.0
f,
"f = %f\n",
f);
1063 hres = IHTMLStyle_put_posWidth(
style, 2.2);
1075 ok(
l == 2,
"pixelWidth = %d\n",
l);
1098 ok(
l == 100,
"pixelWidth = %d\n",
l);
1107 hres = IHTMLStyle_put_pixelWidth(
style, 50);
1113 ok(
l == 50,
"pixelWidth = %d\n",
l);
1126 str = (
void*)0xdeadbeef;
1144 str = (
void*)0xdeadbeef;
1156 str = (
void*)0xdeadbeef;
1168 str = (
void*)0xdeadbeef;
1178 ok(!
str || !*
str,
"str is not empty\n");
1196 ok(!
l,
"pixelLeft = %d\n",
l);
1205 ok(
f == 0.0,
"expected 0.0 got %f\n",
f);
1214 "expected 4.0 or 4.9 (IE8) got %f\n",
f);
1235 ok(
f == 3.0,
"expected 3.0 got %f\n",
f);
1240 ok(
l == 3,
"pixelLeft = %d\n",
l);
1258 ok(
l == 4,
"pixelLeft = %d\n",
l);
1281 ok(!
l,
"pixelLeft = %d\n",
l);
1283 hres = IHTMLStyle_put_pixelLeft(
style, 6);
1289 ok(
l == 6,
"pixelLeft = %d\n",
l);
1308 ok(
f == 0.0,
"expected 0.0 got %f\n",
f);
1317 "expected 4.0 or 4.9 (IE8) got %f\n",
f);
1319 hres = IHTMLStyle_put_pixelTop(
style, 6);
1325 ok(
l == 6,
"pixelTop = %d\n",
l);
1345 ok(
f == 3.0,
"expected 3.0 got %f\n",
f);
1350 ok(
l == 3,
"pixelTop = %d\n",
l);
1366 ok(!
l,
"pixelTop = %d\n",
l);
1382 ok(
f == 0.0,
"expected 0.0 got %f\n",
f);
1385 hres = IHTMLStyle_get_pixelHeight(
style, &
l);
1387 ok(!
l,
"pixelHeight = %d\n",
l);
1389 hres = IHTMLStyle_put_posHeight(
style, 4.9
f);
1396 "expected 4.0 or 4.9 (IE8) got %f\n",
f);
1399 hres = IHTMLStyle_get_pixelHeight(
style, &
l);
1403 "pixelHeight = %d\n",
l);
1419 hres = IHTMLStyle_get_pixelHeight(
style, &
l);
1421 ok(
l == 70,
"pixelHeight = %d\n",
l);
1437 hres = IHTMLStyle_get_pixelHeight(
style, &
l);
1439 ok(!
l,
"pixelHeight = %d\n",
l);
1441 hres = IHTMLStyle_put_pixelHeight(
style, 50);
1445 hres = IHTMLStyle_get_pixelHeight(
style, &
l);
1447 ok(
l == 50,
"pixelHeight = %d\n",
l);
1466 ok(
f == 64.0,
"expected 64.0 got %f\n",
f);
1469 hres = IHTMLStyle_get_pixelHeight(
style, &
l);
1471 ok(
l == 64,
"pixelHeight = %d\n",
l);
1473 str = (
void*)0xdeadbeef;
1476 ok(!
str,
"get_cursor != NULL\n");
1491 hres = IHTMLStyle_get_verticalAlign(
style, &
v);
1499 hres = IHTMLStyle_put_verticalAlign(
style,
v);
1504 hres = IHTMLStyle_get_verticalAlign(
style, &
v);
1512 hres = IHTMLStyle_put_verticalAlign(
style,
v);
1517 hres = IHTMLStyle_get_verticalAlign(
style, &
v);
1523 str = (
void*)0xdeadbeef;
1526 ok(!
str,
"textAlign != NULL\n");
1556 str = (
void*)0xdeadbeef;
1559 ok(!
str,
"textTransform != NULL\n");
1572 str = (
void*)0xdeadbeef;
1575 ok(!
str,
"filter != NULL\n");
1586 ok(!
V_I4(&
v),
"V_I4(v) != 0\n");
1603 hres = IHTMLStyle_get_fontStyle(
style, &sDefault);
1626 hres = IHTMLStyle_put_fontStyle(
style, sDefault);
1634 hres = IHTMLStyle_get_overflow(
style, &sOverflowDefault);
1678 hres = IHTMLStyle_put_overflow(
style, sOverflowDefault);
1734 hres = IHTMLStyle_get_borderStyle(
style, &sDefault);
1737 str =
a2bstr(
"none dotted dashed solid");
1742 str =
a2bstr(
"none dotted dashed solid");
1749 str =
a2bstr(
"double groove ridge inset");
1754 str =
a2bstr(
"window-inset outset ridge inset");
1764 str =
a2bstr(
"none none none none none");
1779 hres = IHTMLStyle_put_borderStyle(
style, sDefault);
1784 hres = IHTMLStyle_get_backgroundColor(
style, &
v);
1792 hres = IHTMLStyle_put_backgroundColor(
style,
v);
1796 hres = IHTMLStyle_get_backgroundColor(
style, &
v);
1803 hres = IHTMLStyle_put_backgroundAttachment(
style,
str);
1804 ok(
hres ==
S_OK,
"put_backgroundAttachment failed: %08x\n",
hres);
1807 hres = IHTMLStyle_get_backgroundAttachment(
style, &
str);
1808 ok(
hres ==
S_OK,
"get_backgroundAttachment failed: %08x\n",
hres);
1834 hres = IHTMLStyle_get_paddingRight(
style, &
v);
1841 hres = IHTMLStyle_put_paddingRight(
style,
v);
1844 hres = IHTMLStyle_get_paddingRight(
style, &
v);
1850 hres = IHTMLStyle_get_paddingBottom(
style, &
v);
1857 hres = IHTMLStyle_put_paddingBottom(
style,
v);
1860 hres = IHTMLStyle_get_paddingBottom(
style, &
v);
1877 hres = IHTMLStyle_get_paddingLeft(
style, &vDefault);
1888 hres = IHTMLStyle_get_paddingLeft(
style, &
v);
1893 hres = IHTMLStyle_put_paddingLeft(
style, vDefault);
1897 hres = IHTMLStyle_get_backgroundRepeat(
style, &sDefault);
1930 hres = IHTMLStyle_put_backgroundRepeat(
style, sDefault);
1935 hres = IHTMLStyle_get_borderColor(
style, &sDefault);
1948 hres = IHTMLStyle_put_borderColor(
style, sDefault);
1953 hres = IHTMLStyle_get_borderRight(
style, &sDefault);
1966 hres = IHTMLStyle_get_borderRightColor(
style, &
v);
1972 hres = IHTMLStyle_get_borderRightWidth(
style, &
v);
1982 hres = IHTMLStyle_put_borderRight(
style, sDefault);
1987 hres = IHTMLStyle_get_borderTop(
style, &sDefault);
2000 hres = IHTMLStyle_get_borderTopColor(
style, &
v);
2006 hres = IHTMLStyle_get_borderTopWidth(
style, &
v);
2016 hres = IHTMLStyle_put_borderTop(
style, sDefault);
2021 hres = IHTMLStyle_get_borderBottom(
style, &sDefault);
2034 hres = IHTMLStyle_get_borderBottomColor(
style, &
v);
2040 hres = IHTMLStyle_get_borderBottomWidth(
style, &
v);
2050 hres = IHTMLStyle_put_borderBottom(
style, sDefault);
2055 hres = IHTMLStyle_get_borderLeft(
style, &sDefault);
2068 hres = IHTMLStyle_get_borderLeftColor(
style, &
v);
2074 hres = IHTMLStyle_get_borderLeftWidth(
style, &
v);
2084 hres = IHTMLStyle_put_borderLeft(
style, sDefault);
2089 hres = IHTMLStyle_get_backgroundPositionX(
style, &
v);
2090 ok(
hres ==
S_OK,
"get_backgroundPositionX failed: %08x\n",
hres);
2097 hres = IHTMLStyle_put_backgroundPositionX(
style,
v);
2098 ok(
hres ==
S_OK,
"put_backgroundPositionX failed: %08x\n",
hres);
2101 hres = IHTMLStyle_get_backgroundPositionX(
style, &
v);
2102 ok(
hres ==
S_OK,
"get_backgroundPositionX failed: %08x\n",
hres);
2108 hres = IHTMLStyle_get_backgroundPositionY(
style, &
v);
2109 ok(
hres ==
S_OK,
"get_backgroundPositionY failed: %08x\n",
hres);
2115 hres = IHTMLStyle_put_backgroundPositionY(
style,
v);
2116 ok(
hres ==
S_OK,
"put_backgroundPositionY failed: %08x\n",
hres);
2119 hres = IHTMLStyle_get_backgroundPositionY(
style, &
v);
2120 ok(
hres ==
S_OK,
"get_backgroundPositionY failed: %08x\n",
hres);
2143 hres = IHTMLStyle_get_backgroundPositionX(
style, &
v);
2144 ok(
hres ==
S_OK,
"get_backgroundPositionX failed: %08x\n",
hres);
2149 hres = IHTMLStyle_get_backgroundPositionY(
style, &
v);
2150 ok(
hres ==
S_OK,
"get_backgroundPositionY failed: %08x\n",
hres);
2156 hres = IHTMLStyle_get_borderTopWidth(
style, &vDefault);
2161 hres = IHTMLStyle_put_borderTopWidth(
style,
v);
2165 hres = IHTMLStyle_get_borderTopWidth(
style, &
v);
2170 hres = IHTMLStyle_put_borderTopWidth(
style, vDefault);
2175 hres = IHTMLStyle_get_borderRightWidth(
style, &vDefault);
2180 hres = IHTMLStyle_put_borderRightWidth(
style,
v);
2184 hres = IHTMLStyle_get_borderRightWidth(
style, &
v);
2189 hres = IHTMLStyle_put_borderRightWidth(
style, vDefault);
2194 hres = IHTMLStyle_get_borderBottomWidth(
style, &vDefault);
2199 hres = IHTMLStyle_put_borderBottomWidth(
style,
v);
2203 hres = IHTMLStyle_get_borderBottomWidth(
style, &
v);
2208 hres = IHTMLStyle_put_borderBottomWidth(
style, vDefault);
2213 hres = IHTMLStyle_get_borderLeftWidth(
style, &vDefault);
2218 hres = IHTMLStyle_put_borderLeftWidth(
style,
v);
2222 hres = IHTMLStyle_get_borderLeftWidth(
style, &
v);
2227 hres = IHTMLStyle_put_borderLeftWidth(
style, vDefault);
2232 hres = IHTMLStyle_get_wordSpacing(
style, &vDefault);
2241 hres = IHTMLStyle_get_wordSpacing(
style, &
v);
2247 hres = IHTMLStyle_put_wordSpacing(
style, vDefault);
2252 hres = IHTMLStyle_get_letterSpacing(
style, &vDefault);
2257 hres = IHTMLStyle_put_letterSpacing(
style,
v);
2261 hres = IHTMLStyle_get_letterSpacing(
style, &
v);
2267 hres = IHTMLStyle_put_letterSpacing(
style, vDefault);
2272 hres = IHTMLStyle_get_borderTopColor(
style, &vDefault);
2277 hres = IHTMLStyle_put_borderTopColor(
style,
v);
2281 hres = IHTMLStyle_get_borderTopColor(
style, &
v);
2286 hres = IHTMLStyle_put_borderTopColor(
style, vDefault);
2290 hres = IHTMLStyle_get_borderRightColor(
style, &vDefault);
2295 hres = IHTMLStyle_put_borderRightColor(
style,
v);
2299 hres = IHTMLStyle_get_borderRightColor(
style, &
v);
2304 hres = IHTMLStyle_put_borderRightColor(
style, vDefault);
2308 hres = IHTMLStyle_get_borderBottomColor(
style, &vDefault);
2313 hres = IHTMLStyle_put_borderBottomColor(
style,
v);
2317 hres = IHTMLStyle_get_borderBottomColor(
style, &
v);
2322 hres = IHTMLStyle_put_borderBottomColor(
style, vDefault);
2326 hres = IHTMLStyle_get_borderLeftColor(
style, &vDefault);
2331 hres = IHTMLStyle_put_borderLeftColor(
style,
v);
2335 hres = IHTMLStyle_get_borderLeftColor(
style, &
v);
2340 hres = IHTMLStyle_put_borderLeftColor(
style, vDefault);
2348 str =
a2bstr(
"rect(0px 1px 500px 505px)");