Hong Kong , which was reunited with China in 1997 , having been in British hands since 1841 , was supposed , under the terms of the handover , to enjoy a high degree of autonomy for the next 50 years .