Support for yearlong pro-democracy protests in Hong Kong has slipped, now getting the backing of a slim majority, as the city braces for the imposition of Beijing-drafted national security legislation, a survey conducted for Reuters showed.

Protests escalated last June over a since-withdrawn bill that would have allowed extraditions of defendants to mainland China. They later morphed into a push for greater democracy, often involving violent clashes with the police.

The protests have resumed, but with far fewer participants, since China announced plans for the security law, which has alarmed foreign governments and democracy activists in Hong Kong.