[css] improve dependency handling for relative positioning