Add prerequisites for better testing of 'top', 'right', 'bottom', and 'left'. (Bug 585715) r=bzbarsky a2.0=blocking+

This commit is contained in:
L. David Baron 2010-08-25 12:17:55 +02:00
parent b1710a1d59
commit 4bec3e8641
2 changed files with 14 additions and 4 deletions

View File

@ -1337,7 +1337,8 @@ var gCSSProperties = {
domProp: "bottom",
inherited: false,
type: CSS_TYPE_LONGHAND,
/* XXX requires position to be set */
/* FIXME: run tests with multiple prerequisites */
prerequisites: { "position": "relative" },
/* XXX 0 may or may not be equal to auto */
initial_values: [ "auto" ],
other_values: [ "32px", "-3em", "12%" ],
@ -1598,7 +1599,8 @@ var gCSSProperties = {
domProp: "left",
inherited: false,
type: CSS_TYPE_LONGHAND,
/* XXX requires position to be set */
/* FIXME: run tests with multiple prerequisites */
prerequisites: { "position": "relative" },
/* XXX 0 may or may not be equal to auto */
initial_values: [ "auto" ],
other_values: [ "32px", "-3em", "12%" ],
@ -2044,7 +2046,8 @@ var gCSSProperties = {
domProp: "right",
inherited: false,
type: CSS_TYPE_LONGHAND,
/* XXX requires position to be set */
/* FIXME: run tests with multiple prerequisites */
prerequisites: { "position": "relative" },
/* XXX 0 may or may not be equal to auto */
initial_values: [ "auto" ],
other_values: [ "32px", "-3em", "12%" ],
@ -2185,7 +2188,8 @@ var gCSSProperties = {
domProp: "top",
inherited: false,
type: CSS_TYPE_LONGHAND,
/* XXX requires position to be set */
/* FIXME: run tests with multiple prerequisites */
prerequisites: { "position": "relative" },
/* XXX 0 may or may not be equal to auto */
initial_values: [ "auto" ],
other_values: [ "32px", "-3em", "12%" ],

View File

@ -69,6 +69,12 @@ var gBadComputedNoFrame = {
"padding-left": [ "0%" ],
"padding-right": [ "0%" ],
"padding-top": [ "0%" ],
// FIXME: file a bug
"top": [ "12%" ],
"right": [ "12%" ],
"bottom": [ "12%" ],
"left": [ "12%" ],
};
function xfail_value(property, value, is_initial, has_frame) {