A state law that mandates affordable housing development for projects within the coastal zone does not apply if a housing project that straddles the coastal zone boundary places no houses or other private facilities within the coastal zone, the California Supreme Court has ruled.