It was returning the full natural size (same as -1) due to default value
handling in the code below.
Tests have been updated to match this output.
double min_width, min_height, nat_width, nat_height;
double default_size;
- if (self->paintable == NULL)
+ /* for_size = 0 below is treated as -1, but we want to return zeros. */
+ if (self->paintable == NULL || for_size == 0)
{
*minimum = 0;
*natural = 0;
background-image: image(lime);
background-repeat: no-repeat;
background-position: center;
- background-size: 150px 150px;
+ background-size: 100px 100px;
}
background-image: image(lime);
background-repeat: no-repeat;
background-position: center;
- background-size: 200px 200px;
+ background-size: 100px 100px;
}
background-image: image(lime);
background-repeat: no-repeat;
background-position: center;
- background-size: 300px 300px;
+ background-size: 100px 100px;
}