Mayor Ed Lee raised the gay pride flag at City Hall on Tuesday.
It will stay there through the city's gay pride festival and parade during the last weekend in June.
If the justices strike down Proposition 8, Lee says the city will wait several weeks to analyze the ruling, then resume same-sex ceremonies.