numbas / Numbas

A completely browser-based e-assessment/e-learning system, with an emphasis on mathematics
http://www.numbas.org.uk
Apache License 2.0
197 stars 118 forks source link

Make each question's CSS preamble specific to that question #1066

Closed christianp closed 7 months ago

christianp commented 7 months ago

At the moment, to stop different questions' preambles conflicting with each other, only the current question's preamble is inserted into the page. This doesn't work when you have several questions visible, such as when printing.

We could try parsing the preamble CSS and prepending the question's ID to each selector.