I don't think it's safe to assume that taking the first CSS file will always be enough. Even though that's the case for our current widgets, these tests should be applicable to contributed widgets as well.