Those are the old rules.
Distance learning
Under normal circumstances, all distance learning courses completed outside Canada are excluded from the time accumulated towards the length of the post-graduation work permit, and 50% of a student’s courses must be completed in Canada and in person.
The following temporary policy changes have been made to better accommodate
eligible international students who have completed distance learning in or outside Canada.
All students who were enrolled in a PGWP-eligible program in progress in March 2020 or who started a program of study from spring 2020 up to and including the fall 2021 semester are not required to complete 50% of their program (or programs) of study in Canada. Up to 100% of their program can be completed online from outside Canada.
Time spent studying outside of Canada can be counted towards the overall length of the post-graduation work permit until December 31, 2021. Any time spent studying outside of Canada after December 31, 2021 should be deducted from the length of the post-graduation work permit.
Note: The minimum length of time a PGWP should be issued for is 8 months.
All other program criteria and requirements must be met.
Note: In cases where a study permit application is submitted before a program starts but is refused, if a subsequent study permit application is received before the end of the program and is eventually approved, the studies undertaken after the first study permit application was received by the department count towards the length of the PGWP.
https://www.canada.ca/en/immigratio...rary-residence/study-permit/pgwpp.html#sec6.2