Beging implementing reftests

This commit is contained in:
MoyuScript
2017-08-09 00:50:31 +08:00
parent 8fde015829
commit b4dfb4404f
163 changed files with 15221 additions and 14371 deletions

View File

@ -350,11 +350,13 @@ const parseBackgroundImage = (image: string, imageLoader: ImageLoader): Array<Ba
const key = imageLoader.loadImage(args[0]);
args = key ? [key] : [];
}
results.push({
prefix,
method,
args
});
if (method !== 'none') {
results.push({
prefix,
method,
args
});
}
}
args = [];
method = definition = '';

View File

@ -39,7 +39,7 @@ export const parseBorder = (style: CSSStyleDeclaration): Array<Border> => {
return SIDES.map(side => {
const borderColor = new Color(style.getPropertyValue(`border-${side}-color`));
const borderStyle = parseBorderStyle(style.getPropertyValue(`border-${side}-style`));
const borderWidth = parseInt(style.getPropertyValue(`border-${side}-width`), 10);
const borderWidth = parseFloat(style.getPropertyValue(`border-${side}-width`));
return {
borderColor,
borderStyle,