The Basic Law , the miniconstitution that China drafted for Hong Kong before Britain handed over the colony in 1997 , makes clear that Mr. Tung 's immediate successor as acting chief executive would be Donald Tsang , the chief secretary and second-ranking official .