-
Improvement
-
Resolution: Fixed
-
Minor
-
4.2, 4.3, 4.4
When the Boost theme uses its 'scss' / 'scsspre' settings, that causes all of the valid Moodle styles to be injected into the H5P module 'iFrame' causing breakage.
This has already been explained in MDL-79707, however it appears that the mechanism has been misunderstood, therefore:
Whereby you can visualise what is happening. In essence all of the Moodle styles are being injected into the H5P iFrame (used to bring separation between H5P and the containing application) and that causes the brakeage:
And as the CSS file is called 'boost_h5p.css' then effectively the 'all' CSS is loaded twice by the browser! And its not exactly small!
References to backup my assertions: https://h5p.org/documentation/for-developers/visual-changes, https://github.com/sarjona/h5pmods-moodle-plugin/tree/master and https://tracker.moodle.org/browse/MDL-69087.
The solution is for Boost (Classic?) to have a separate setting for adding custom H5P styles via the user interface. If you agree, then I (gb2048) will even implement it.
- has been marked as being related by
-
MDL-79707 Boost styles break H5P styles when scsspre and / or scss settings are used
-
- Closed
-
-
MDL-72778 Personalize H5P styles/javascript by 'local' plugin callback
-
- Development in progress
-
- is a regression caused by
-
MDL-77049 Customise H5P styles via Raw SCSS theme setting
-
- Closed
-
- is documented by
-
MDL-69087 Add the option to personalize H5P styles
-
- Closed
-
- will help resolve
-
MOBILE-3622 Customize H5P styles via Moodle theme doesn't work in the app
-
- Closed
-
-
MDL-80825 Boost styles break h5p edit interactive video functionality when scsspre and / or css are used.
-
- Closed
-