Attachment #468596: patch (2/2): by-hand changes for bug #451134

View | Details | Raw Unified | Return to bug 451134 | Differences between
and this patch

Collapse All | Expand All

(-)a/dom/interfaces/css/nsIDOMCSS2Properties.idl (-16 / +16 lines)
Line     Link Here 
 Lines 45-61    Link Here 
45
 * The nsIDOMCSS2Properties interface is a datatype for additional
45
 * The nsIDOMCSS2Properties interface is a datatype for additional
46
 * reflection of data already provided in nsIDOMCSSStyleDeclaration in
46
 * reflection of data already provided in nsIDOMCSSStyleDeclaration in
47
 * the Document Object Model.
47
 * the Document Object Model.
48
 *
48
 *
49
 * For more information on this interface please see
49
 * For more information on this interface please see
50
 * http://www.w3.org/TR/DOM-Level-2-Style
50
 * http://www.w3.org/TR/DOM-Level-2-Style
51
 */
51
 */
52
52
53
[scriptable, uuid(c8db3d5b-8e11-4219-84ea-d72b565ec738)]
53
[scriptable, uuid(6e583050-7345-4623-9acf-44dc7136e09f)]
54
interface nsIDOMCSS2Properties : nsISupports
54
interface nsIDOMCSS2Properties : nsISupports
55
{
55
{
56
           attribute DOMString        azimuth;
56
           attribute DOMString        azimuth;
57
                                        // raises(DOMException) on setting
57
                                        // raises(DOMException) on setting
58
58
59
           attribute DOMString        background;
59
           attribute DOMString        background;
60
                                        // raises(DOMException) on setting
60
                                        // raises(DOMException) on setting
61
61
 Lines 135-150   interface nsIDOMCSS2Properties : nsISupp Link Here 
135
                                        // raises(DOMException) on setting
135
                                        // raises(DOMException) on setting
136
136
137
           attribute DOMString        borderLeftWidth;
137
           attribute DOMString        borderLeftWidth;
138
                                        // raises(DOMException) on setting
138
                                        // raises(DOMException) on setting
139
139
140
           attribute DOMString        borderWidth;
140
           attribute DOMString        borderWidth;
141
                                        // raises(DOMException) on setting
141
                                        // raises(DOMException) on setting
142
142
143
           attribute DOMString        borderRadius;
144
                                        // raises(DOMException) on setting
145
146
           attribute DOMString        borderTopLeftRadius;
147
                                        // raises(DOMException) on setting
148
149
           attribute DOMString        borderTopRightRadius;
150
                                        // raises(DOMException) on setting
151
152
           attribute DOMString        borderBottomLeftRadius;
153
                                        // raises(DOMException) on setting
154
155
           attribute DOMString        borderBottomRightRadius;
156
                                        // raises(DOMException) on setting
157
143
           attribute DOMString        bottom;
158
           attribute DOMString        bottom;
144
                                        // raises(DOMException) on setting
159
                                        // raises(DOMException) on setting
145
160
146
           attribute DOMString        captionSide;
161
           attribute DOMString        captionSide;
147
                                        // raises(DOMException) on setting
162
                                        // raises(DOMException) on setting
148
163
149
           attribute DOMString        clear;
164
           attribute DOMString        clear;
150
                                        // raises(DOMException) on setting
165
                                        // raises(DOMException) on setting
 Lines 535-565   interface nsIDOMCSS2Properties : nsISupp Link Here 
535
                                        // raises(DOMException) on setting
550
                                        // raises(DOMException) on setting
536
551
537
           attribute DOMString        MozBorderRightColors;
552
           attribute DOMString        MozBorderRightColors;
538
                                        // raises(DOMException) on setting
553
                                        // raises(DOMException) on setting
539
554
540
           attribute DOMString        MozBorderTopColors;
555
           attribute DOMString        MozBorderTopColors;
541
                                        // raises(DOMException) on setting
556
                                        // raises(DOMException) on setting
542
557
543
           attribute DOMString        MozBorderRadius;
544
                                        // raises(DOMException) on setting
545
546
           attribute DOMString        MozBorderRadiusTopleft;
547
                                        // raises(DOMException) on setting
548
549
           attribute DOMString        MozBorderRadiusTopright;
550
                                        // raises(DOMException) on setting
551
552
           attribute DOMString        MozBorderRadiusBottomleft;
553
                                        // raises(DOMException) on setting
554
555
           attribute DOMString        MozBorderRadiusBottomright;
556
                                        // raises(DOMException) on setting
557
558
           attribute DOMString        MozBoxAlign;
558
           attribute DOMString        MozBoxAlign;
559
                                        // raises(DOMException) on setting
559
                                        // raises(DOMException) on setting
560
560
561
           attribute DOMString        MozBoxDirection;
561
           attribute DOMString        MozBoxDirection;
562
                                        // raises(DOMException) on setting
562
                                        // raises(DOMException) on setting
563
563
564
           attribute DOMString        MozBoxFlex;
564
           attribute DOMString        MozBoxFlex;
565
                                        // raises(DOMException) on setting
565
                                        // raises(DOMException) on setting
(-)a/layout/style/nsCSSPropList.h (-45 / +45 lines)
Line     Link Here 
 Lines 293-353   CSS_PROP_DISPLAY( Link Here 
293
    MozAppearance,
293
    MozAppearance,
294
    0,
294
    0,
295
    Display,
295
    Display,
296
    mAppearance,
296
    mAppearance,
297
    kAppearanceKTable,
297
    kAppearanceKTable,
298
    CSS_PROP_NO_OFFSET,
298
    CSS_PROP_NO_OFFSET,
299
    eStyleAnimType_None)
299
    eStyleAnimType_None)
300
CSS_PROP_SHORTHAND(
300
CSS_PROP_SHORTHAND(
301
    border-radius,
302
    border_radius,
303
    MozBorderRadius,
304
    0)
305
CSS_PROP_BORDER(
306
    border-top-left-radius,
307
    border_top_left_radius,
308
    MozBorderRadiusTopleft,
309
    CSS_PROPERTY_APPLIES_TO_FIRST_LETTER,
310
    Margin,
311
    mBorderRadius.mTopLeft,
312
    nsnull,
313
    offsetof(nsStyleBorder, mBorderRadius),
314
    eStyleAnimType_Corner_TopLeft)
315
CSS_PROP_BORDER(
316
    border-top-right-radius,
317
    border_top_right_radius,
318
    MozBorderRadiusTopright,
319
    CSS_PROPERTY_APPLIES_TO_FIRST_LETTER,
320
    Margin,
321
    mBorderRadius.mTopRight,
322
    nsnull,
323
    offsetof(nsStyleBorder, mBorderRadius),
324
    eStyleAnimType_Corner_TopRight)
325
CSS_PROP_BORDER(
326
    border-bottom-right-radius,
327
    border_bottom_right_radius,
328
    MozBorderRadiusBottomright,
329
    CSS_PROPERTY_APPLIES_TO_FIRST_LETTER,
330
    Margin,
331
    mBorderRadius.mBottomRight,
332
    nsnull,
333
    offsetof(nsStyleBorder, mBorderRadius),
334
    eStyleAnimType_Corner_BottomRight)
335
CSS_PROP_BORDER(
336
    border-bottom-left-radius,
337
    border_bottom_left_radius,
338
    MozBorderRadiusBottomleft,
339
    CSS_PROPERTY_APPLIES_TO_FIRST_LETTER,
340
    Margin,
341
    mBorderRadius.mBottomLeft,
342
    nsnull,
343
    offsetof(nsStyleBorder, mBorderRadius),
344
    eStyleAnimType_Corner_BottomLeft)
345
CSS_PROP_SHORTHAND(
346
    -moz-outline-radius,
301
    -moz-outline-radius,
347
    _moz_outline_radius,
302
    _moz_outline_radius,
348
    MozOutlineRadius,
303
    MozOutlineRadius,
349
    0)
304
    0)
350
CSS_PROP_OUTLINE(
305
CSS_PROP_OUTLINE(
351
    -moz-outline-radius-topleft,
306
    -moz-outline-radius-topleft,
352
    _moz_outline_radius_topLeft,
307
    _moz_outline_radius_topLeft,
353
    MozOutlineRadiusTopleft,
308
    MozOutlineRadiusTopleft,
 Lines 1063-1078   CSS_PROP_BORDER( Link Here 
1063
    kBorderWidthKTable,
1018
    kBorderWidthKTable,
1064
    CSS_PROP_NO_OFFSET,
1019
    CSS_PROP_NO_OFFSET,
1065
    eStyleAnimType_Custom)
1020
    eStyleAnimType_Custom)
1066
CSS_PROP_SHORTHAND(
1021
CSS_PROP_SHORTHAND(
1067
    border-width,
1022
    border-width,
1068
    border_width,
1023
    border_width,
1069
    BorderWidth,
1024
    BorderWidth,
1070
    0)
1025
    0)
1026
CSS_PROP_SHORTHAND(
1027
    border-radius,
1028
    border_radius,
1029
    BorderRadius,
1030
    0)
1031
CSS_PROP_BORDER(
1032
    border-top-left-radius,
1033
    border_top_left_radius,
1034
    BorderTopLeftRadius,
1035
    CSS_PROPERTY_APPLIES_TO_FIRST_LETTER,
1036
    Margin,
1037
    mBorderRadius.mTopLeft,
1038
    nsnull,
1039
    offsetof(nsStyleBorder, mBorderRadius),
1040
    eStyleAnimType_Corner_TopLeft)
1041
CSS_PROP_BORDER(
1042
    border-top-right-radius,
1043
    border_top_right_radius,
1044
    BorderTopRightRadius,
1045
    CSS_PROPERTY_APPLIES_TO_FIRST_LETTER,
1046
    Margin,
1047
    mBorderRadius.mTopRight,
1048
    nsnull,
1049
    offsetof(nsStyleBorder, mBorderRadius),
1050
    eStyleAnimType_Corner_TopRight)
1051
CSS_PROP_BORDER(
1052
    border-bottom-right-radius,
1053
    border_bottom_right_radius,
1054
    BorderBottomRightRadius,
1055
    CSS_PROPERTY_APPLIES_TO_FIRST_LETTER,
1056
    Margin,
1057
    mBorderRadius.mBottomRight,
1058
    nsnull,
1059
    offsetof(nsStyleBorder, mBorderRadius),
1060
    eStyleAnimType_Corner_BottomRight)
1061
CSS_PROP_BORDER(
1062
    border-bottom-left-radius,
1063
    border_bottom_left_radius,
1064
    BorderBottomLeftRadius,
1065
    CSS_PROPERTY_APPLIES_TO_FIRST_LETTER,
1066
    Margin,
1067
    mBorderRadius.mBottomLeft,
1068
    nsnull,
1069
    offsetof(nsStyleBorder, mBorderRadius),
1070
    eStyleAnimType_Corner_BottomLeft)
1071
CSS_PROP_POSITION(
1071
CSS_PROP_POSITION(
1072
    bottom,
1072
    bottom,
1073
    bottom,
1073
    bottom,
1074
    Bottom,
1074
    Bottom,
1075
    0,
1075
    0,
1076
    Position,
1076
    Position,
1077
    mOffset.mBottom,
1077
    mOffset.mBottom,
1078
    nsnull,
1078
    nsnull,
(-)a/layout/style/nsCSSProps.cpp (-1 / +1 lines)
Line     Link Here 
 Lines 1562-1578   const PRUint32 nsCSSProps::kFlagsTable[e Link Here 
1562
  flags_,
1562
  flags_,
1563
#include "nsCSSPropList.h"
1563
#include "nsCSSPropList.h"
1564
#undef CSS_PROP
1564
#undef CSS_PROP
1565
#define CSS_PROP_SHORTHAND(name_, id_, method_, flags_) flags_,
1565
#define CSS_PROP_SHORTHAND(name_, id_, method_, flags_) flags_,
1566
#include "nsCSSPropList.h"
1566
#include "nsCSSPropList.h"
1567
#undef CSS_PROP_SHORTHAND
1567
#undef CSS_PROP_SHORTHAND
1568
};
1568
};
1569
1569
1570
static const nsCSSProperty gMozBorderRadiusSubpropTable[] = {
1570
static const nsCSSProperty gBorderRadiusSubpropTable[] = {
1571
  // Code relies on these being in topleft-topright-bottomright-bottomleft
1571
  // Code relies on these being in topleft-topright-bottomright-bottomleft
1572
  // order.
1572
  // order.
1573
  eCSSProperty_border_top_left_radius,
1573
  eCSSProperty_border_top_left_radius,
1574
  eCSSProperty_border_top_right_radius,
1574
  eCSSProperty_border_top_right_radius,
1575
  eCSSProperty_border_bottom_right_radius,
1575
  eCSSProperty_border_bottom_right_radius,
1576
  eCSSProperty_border_bottom_left_radius,
1576
  eCSSProperty_border_bottom_left_radius,
1577
  eCSSProperty_UNKNOWN
1577
  eCSSProperty_UNKNOWN
1578
};
1578
};
(-)a/layout/style/nsComputedDOMStyle.cpp (-8 / +8 lines)
Line     Link Here 
 Lines 2000-2037   nsComputedDOMStyle::DoGetBorderRightColo Link Here 
2000
2000
2001
nsresult
2001
nsresult
2002
nsComputedDOMStyle::DoGetBorderTopColors(nsIDOMCSSValue** aValue)
2002
nsComputedDOMStyle::DoGetBorderTopColors(nsIDOMCSSValue** aValue)
2003
{
2003
{
2004
  return GetBorderColorsFor(NS_SIDE_TOP, aValue);
2004
  return GetBorderColorsFor(NS_SIDE_TOP, aValue);
2005
}
2005
}
2006
2006
2007
nsresult
2007
nsresult
2008
nsComputedDOMStyle::DoGetBorderRadiusBottomLeft(nsIDOMCSSValue** aValue)
2008
nsComputedDOMStyle::DoGetBorderBottomLeftRadius(nsIDOMCSSValue** aValue)
2009
{
2009
{
2010
  return GetEllipseRadii(GetStyleBorder()->mBorderRadius,
2010
  return GetEllipseRadii(GetStyleBorder()->mBorderRadius,
2011
                         NS_CORNER_BOTTOM_LEFT, aValue);
2011
                         NS_CORNER_BOTTOM_LEFT, aValue);
2012
}
2012
}
2013
2013
2014
nsresult
2014
nsresult
2015
nsComputedDOMStyle::DoGetBorderRadiusBottomRight(nsIDOMCSSValue** aValue)
2015
nsComputedDOMStyle::DoGetBorderBottomRightRadius(nsIDOMCSSValue** aValue)
2016
{
2016
{
2017
  return GetEllipseRadii(GetStyleBorder()->mBorderRadius,
2017
  return GetEllipseRadii(GetStyleBorder()->mBorderRadius,
2018
                         NS_CORNER_BOTTOM_RIGHT, aValue);
2018
                         NS_CORNER_BOTTOM_RIGHT, aValue);
2019
}
2019
}
2020
2020
2021
nsresult
2021
nsresult
2022
nsComputedDOMStyle::DoGetBorderRadiusTopLeft(nsIDOMCSSValue** aValue)
2022
nsComputedDOMStyle::DoGetBorderTopLeftRadius(nsIDOMCSSValue** aValue)
2023
{
2023
{
2024
  return GetEllipseRadii(GetStyleBorder()->mBorderRadius,
2024
  return GetEllipseRadii(GetStyleBorder()->mBorderRadius,
2025
                         NS_CORNER_TOP_LEFT, aValue);
2025
                         NS_CORNER_TOP_LEFT, aValue);
2026
}
2026
}
2027
2027
2028
nsresult
2028
nsresult
2029
nsComputedDOMStyle::DoGetBorderRadiusTopRight(nsIDOMCSSValue** aValue)
2029
nsComputedDOMStyle::DoGetBorderTopRightRadius(nsIDOMCSSValue** aValue)
2030
{
2030
{
2031
  return GetEllipseRadii(GetStyleBorder()->mBorderRadius,
2031
  return GetEllipseRadii(GetStyleBorder()->mBorderRadius,
2032
                         NS_CORNER_TOP_RIGHT, aValue);
2032
                         NS_CORNER_TOP_RIGHT, aValue);
2033
}
2033
}
2034
2034
2035
nsresult
2035
nsresult
2036
nsComputedDOMStyle::DoGetBorderWidth(nsIDOMCSSValue** aValue)
2036
nsComputedDOMStyle::DoGetBorderWidth(nsIDOMCSSValue** aValue)
2037
{
2037
{
 Lines 4809-4828   nsComputedDOMStyle::GetQueryableProperty Link Here 
4809
    COMPUTED_STYLE_MAP_ENTRY(background_origin,             BackgroundOrigin),
4809
    COMPUTED_STYLE_MAP_ENTRY(background_origin,             BackgroundOrigin),
4810
    COMPUTED_STYLE_MAP_ENTRY(background_size,               MozBackgroundSize),
4810
    COMPUTED_STYLE_MAP_ENTRY(background_size,               MozBackgroundSize),
4811
    COMPUTED_STYLE_MAP_ENTRY(binding,                       Binding),
4811
    COMPUTED_STYLE_MAP_ENTRY(binding,                       Binding),
4812
    COMPUTED_STYLE_MAP_ENTRY(border_bottom_colors,          BorderBottomColors),
4812
    COMPUTED_STYLE_MAP_ENTRY(border_bottom_colors,          BorderBottomColors),
4813
    COMPUTED_STYLE_MAP_ENTRY(border_image,                  BorderImage),
4813
    COMPUTED_STYLE_MAP_ENTRY(border_image,                  BorderImage),
4814
    COMPUTED_STYLE_MAP_ENTRY(border_left_colors,            BorderLeftColors),
4814
    COMPUTED_STYLE_MAP_ENTRY(border_left_colors,            BorderLeftColors),
4815
    COMPUTED_STYLE_MAP_ENTRY(border_right_colors,           BorderRightColors),
4815
    COMPUTED_STYLE_MAP_ENTRY(border_right_colors,           BorderRightColors),
4816
    COMPUTED_STYLE_MAP_ENTRY(border_top_colors,             BorderTopColors),
4816
    COMPUTED_STYLE_MAP_ENTRY(border_top_colors,             BorderTopColors),
4817
    COMPUTED_STYLE_MAP_ENTRY_LAYOUT(border_bottom_left_radius, BorderRadiusBottomLeft),
4817
    COMPUTED_STYLE_MAP_ENTRY_LAYOUT(border_bottom_left_radius, BorderBottomLeftRadius),
4818
    COMPUTED_STYLE_MAP_ENTRY_LAYOUT(border_bottom_right_radius,BorderRadiusBottomRight),
4818
    COMPUTED_STYLE_MAP_ENTRY_LAYOUT(border_bottom_right_radius,BorderBottomRightRadius),
4819
    COMPUTED_STYLE_MAP_ENTRY_LAYOUT(border_top_left_radius,    BorderRadiusTopLeft),
4819
    COMPUTED_STYLE_MAP_ENTRY_LAYOUT(border_top_left_radius,    BorderTopLeftRadius),
4820
    COMPUTED_STYLE_MAP_ENTRY_LAYOUT(border_top_right_radius,   BorderRadiusTopRight),
4820
    COMPUTED_STYLE_MAP_ENTRY_LAYOUT(border_top_right_radius,   BorderTopRightRadius),
4821
    COMPUTED_STYLE_MAP_ENTRY(box_align,                     BoxAlign),
4821
    COMPUTED_STYLE_MAP_ENTRY(box_align,                     BoxAlign),
4822
    COMPUTED_STYLE_MAP_ENTRY(box_direction,                 BoxDirection),
4822
    COMPUTED_STYLE_MAP_ENTRY(box_direction,                 BoxDirection),
4823
    COMPUTED_STYLE_MAP_ENTRY(box_flex,                      BoxFlex),
4823
    COMPUTED_STYLE_MAP_ENTRY(box_flex,                      BoxFlex),
4824
    COMPUTED_STYLE_MAP_ENTRY(box_ordinal_group,             BoxOrdinalGroup),
4824
    COMPUTED_STYLE_MAP_ENTRY(box_ordinal_group,             BoxOrdinalGroup),
4825
    COMPUTED_STYLE_MAP_ENTRY(box_orient,                    BoxOrient),
4825
    COMPUTED_STYLE_MAP_ENTRY(box_orient,                    BoxOrient),
4826
    COMPUTED_STYLE_MAP_ENTRY(box_pack,                      BoxPack),
4826
    COMPUTED_STYLE_MAP_ENTRY(box_pack,                      BoxPack),
4827
    COMPUTED_STYLE_MAP_ENTRY(box_shadow,                    BoxShadow),
4827
    COMPUTED_STYLE_MAP_ENTRY(box_shadow,                    BoxShadow),
4828
    COMPUTED_STYLE_MAP_ENTRY(box_sizing,                    BoxSizing),
4828
    COMPUTED_STYLE_MAP_ENTRY(box_sizing,                    BoxSizing),
(-)a/layout/style/nsComputedDOMStyle.h (-4 / +4 lines)
Line     Link Here 
 Lines 247-266   private: Link Here 
247
  nsresult DoGetBorderTopColor(nsIDOMCSSValue** aValue);
247
  nsresult DoGetBorderTopColor(nsIDOMCSSValue** aValue);
248
  nsresult DoGetBorderBottomColor(nsIDOMCSSValue** aValue);
248
  nsresult DoGetBorderBottomColor(nsIDOMCSSValue** aValue);
249
  nsresult DoGetBorderLeftColor(nsIDOMCSSValue** aValue);
249
  nsresult DoGetBorderLeftColor(nsIDOMCSSValue** aValue);
250
  nsresult DoGetBorderRightColor(nsIDOMCSSValue** aValue);
250
  nsresult DoGetBorderRightColor(nsIDOMCSSValue** aValue);
251
  nsresult DoGetBorderBottomColors(nsIDOMCSSValue** aValue);
251
  nsresult DoGetBorderBottomColors(nsIDOMCSSValue** aValue);
252
  nsresult DoGetBorderLeftColors(nsIDOMCSSValue** aValue);
252
  nsresult DoGetBorderLeftColors(nsIDOMCSSValue** aValue);
253
  nsresult DoGetBorderRightColors(nsIDOMCSSValue** aValue);
253
  nsresult DoGetBorderRightColors(nsIDOMCSSValue** aValue);
254
  nsresult DoGetBorderTopColors(nsIDOMCSSValue** aValue);
254
  nsresult DoGetBorderTopColors(nsIDOMCSSValue** aValue);
255
  nsresult DoGetBorderRadiusBottomLeft(nsIDOMCSSValue** aValue);
255
  nsresult DoGetBorderBottomLeftRadius(nsIDOMCSSValue** aValue);
256
  nsresult DoGetBorderRadiusBottomRight(nsIDOMCSSValue** aValue);
256
  nsresult DoGetBorderBottomRightRadius(nsIDOMCSSValue** aValue);
257
  nsresult DoGetBorderRadiusTopLeft(nsIDOMCSSValue** aValue);
257
  nsresult DoGetBorderTopLeftRadius(nsIDOMCSSValue** aValue);
258
  nsresult DoGetBorderRadiusTopRight(nsIDOMCSSValue** aValue);
258
  nsresult DoGetBorderTopRightRadius(nsIDOMCSSValue** aValue);
259
  nsresult DoGetFloatEdge(nsIDOMCSSValue** aValue);
259
  nsresult DoGetFloatEdge(nsIDOMCSSValue** aValue);
260
  nsresult DoGetBorderImage(nsIDOMCSSValue** aValue);
260
  nsresult DoGetBorderImage(nsIDOMCSSValue** aValue);
261
261
262
  /* Box Shadow */
262
  /* Box Shadow */
263
  nsresult DoGetBoxShadow(nsIDOMCSSValue** aValue);
263
  nsresult DoGetBoxShadow(nsIDOMCSSValue** aValue);
264
264
265
  /* Window Shadow */
265
  /* Window Shadow */
266
  nsresult DoGetWindowShadow(nsIDOMCSSValue** aValue);
266
  nsresult DoGetWindowShadow(nsIDOMCSSValue** aValue);
(-)a/layout/style/test/property_database.js (-5 / +5 lines)
Line     Link Here 
 Lines 154-211   var gCSSProperties = { Link Here 
154
		domProp: "MozBorderLeftColors",
154
		domProp: "MozBorderLeftColors",
155
		inherited: false,
155
		inherited: false,
156
		type: CSS_TYPE_LONGHAND,
156
		type: CSS_TYPE_LONGHAND,
157
		initial_values: [ "none" ],
157
		initial_values: [ "none" ],
158
		other_values: [ "red green", "red #fc3", "#ff00cc", "currentColor", "blue currentColor orange currentColor" ],
158
		other_values: [ "red green", "red #fc3", "#ff00cc", "currentColor", "blue currentColor orange currentColor" ],
159
		invalid_values: [ "red none", "red inherit", "red, green", "none red", "inherit red" ]
159
		invalid_values: [ "red none", "red inherit", "red, green", "none red", "inherit red" ]
160
	},
160
	},
161
	"border-radius": {
161
	"border-radius": {
162
		domProp: "MozBorderRadius",
162
		domProp: "borderRadius",
163
		inherited: false,
163
		inherited: false,
164
		type: CSS_TYPE_TRUE_SHORTHAND,
164
		type: CSS_TYPE_TRUE_SHORTHAND,
165
		subproperties: [ "border-bottom-left-radius", "border-bottom-right-radius", "border-top-left-radius", "border-top-right-radius" ],
165
		subproperties: [ "border-bottom-left-radius", "border-bottom-right-radius", "border-top-left-radius", "border-top-right-radius" ],
166
		initial_values: [ "0", "0px", "0px 0 0 0px" ], /* 0% ? */
166
		initial_values: [ "0", "0px", "0px 0 0 0px" ], /* 0% ? */
167
		other_values: [ "3%", "1px", "2em", "3em 2px", "2pt 3% 4em", "2px 2px 2px 2px", // circular
167
		other_values: [ "3%", "1px", "2em", "3em 2px", "2pt 3% 4em", "2px 2px 2px 2px", // circular
168
						"3% / 2%", "1px / 4px", "2em / 1em", "3em 2px / 2px 3em", "2pt 3% 4em / 4pt 1% 5em", "2px 2px 2px 2px / 4px 4px 4px 4px", "1pt / 2pt 3pt", "4pt 5pt / 3pt" // elliptical
168
						"3% / 2%", "1px / 4px", "2em / 1em", "3em 2px / 2px 3em", "2pt 3% 4em / 4pt 1% 5em", "2px 2px 2px 2px / 4px 4px 4px 4px", "1pt / 2pt 3pt", "4pt 5pt / 3pt" // elliptical
169
					  ],
169
					  ],
170
		invalid_values: [ "2px -2px", "inherit 2px", "inherit / 2px", "2px inherit", "2px / inherit", "2px 2px 2px 2px 2px", "1px / 2px 2px 2px 2px 2px" ]
170
		invalid_values: [ "2px -2px", "inherit 2px", "inherit / 2px", "2px inherit", "2px / inherit", "2px 2px 2px 2px 2px", "1px / 2px 2px 2px 2px 2px" ]
171
	},
171
	},
172
	"border-bottom-left-radius": {
172
	"border-bottom-left-radius": {
173
		domProp: "MozBorderRadiusBottomleft",
173
		domProp: "borderBottomLeftRadius",
174
		inherited: false,
174
		inherited: false,
175
		type: CSS_TYPE_LONGHAND,
175
		type: CSS_TYPE_LONGHAND,
176
		initial_values: [ "0", "0px" ], /* 0% ? */
176
		initial_values: [ "0", "0px" ], /* 0% ? */
177
		other_values: [ "3%", "1px", "2em", // circular
177
		other_values: [ "3%", "1px", "2em", // circular
178
						"3% 2%", "1px 4px", "2em 2pt" // elliptical
178
						"3% 2%", "1px 4px", "2em 2pt" // elliptical
179
					  ],
179
					  ],
180
		invalid_values: [ "-1px", "4px -2px", "inherit 2px", "2px inherit" ]
180
		invalid_values: [ "-1px", "4px -2px", "inherit 2px", "2px inherit" ]
181
	},
181
	},
182
	"border-bottom-right-radius": {
182
	"border-bottom-right-radius": {
183
		domProp: "MozBorderRadiusBottomright",
183
		domProp: "borderBottomRightRadius",
184
		inherited: false,
184
		inherited: false,
185
		type: CSS_TYPE_LONGHAND,
185
		type: CSS_TYPE_LONGHAND,
186
		initial_values: [ "0", "0px" ], /* 0% ? */
186
		initial_values: [ "0", "0px" ], /* 0% ? */
187
		other_values: [ "3%", "1px", "2em", // circular
187
		other_values: [ "3%", "1px", "2em", // circular
188
						"3% 2%", "1px 4px", "2em 2pt" // elliptical
188
						"3% 2%", "1px 4px", "2em 2pt" // elliptical
189
					  ],
189
					  ],
190
		invalid_values: [ "-1px", "4px -2px", "inherit 2px", "2px inherit" ]
190
		invalid_values: [ "-1px", "4px -2px", "inherit 2px", "2px inherit" ]
191
	},
191
	},
192
	"border-top-left-radius": {
192
	"border-top-left-radius": {
193
		domProp: "MozBorderRadiusTopleft",
193
		domProp: "borderTopLeftRadius",
194
		inherited: false,
194
		inherited: false,
195
		type: CSS_TYPE_LONGHAND,
195
		type: CSS_TYPE_LONGHAND,
196
		initial_values: [ "0", "0px" ], /* 0% ? */
196
		initial_values: [ "0", "0px" ], /* 0% ? */
197
		other_values: [ "3%", "1px", "2em", // circular
197
		other_values: [ "3%", "1px", "2em", // circular
198
						"3% 2%", "1px 4px", "2em 2pt" // elliptical
198
						"3% 2%", "1px 4px", "2em 2pt" // elliptical
199
					  ],
199
					  ],
200
		invalid_values: [ "-1px", "4px -2px", "inherit 2px", "2px inherit" ]
200
		invalid_values: [ "-1px", "4px -2px", "inherit 2px", "2px inherit" ]
201
	},
201
	},
202
	"border-top-right-radius": {
202
	"border-top-right-radius": {
203
		domProp: "MozBorderRadiusTopright",
203
		domProp: "borderTopRightRadius",
204
		inherited: false,
204
		inherited: false,
205
		type: CSS_TYPE_LONGHAND,
205
		type: CSS_TYPE_LONGHAND,
206
		initial_values: [ "0", "0px" ], /* 0% ? */
206
		initial_values: [ "0", "0px" ], /* 0% ? */
207
		other_values: [ "3%", "1px", "2em", // circular
207
		other_values: [ "3%", "1px", "2em", // circular
208
						"3% 2%", "1px 4px", "2em 2pt" // elliptical
208
						"3% 2%", "1px 4px", "2em 2pt" // elliptical
209
					  ],
209
					  ],
210
		invalid_values: [ "-1px", "4px -2px", "inherit 2px", "2px inherit" ]
210
		invalid_values: [ "-1px", "4px -2px", "inherit 2px", "2px inherit" ]
211
	},
211
	},

Return to bug 451134