Methods#
(inner) svgBackdrop()#
Marpit PostCSS SVG backdrop plugin.
Retarget ::backdrop and section::backdrop selector to @media screen { :marpit-container > svg[data-marpit-svg] { .. } }. It means ::backdrop targets the SVG container in inline SVG mode.
It's useful for setting style of the letterbox and pillarbox in the SVG scaled slide.
::backdrop { background-color: #448; }
The original definition will remain to support an original usage of ::backdrop.
The important differences from an original ::backdrop are following:
- In original spec,
::backdropcreates a separated layer from the target element, but Marpit's::backdropdoes not. The slide elements still become the child of::backdropso setting some properties that are inherited may make broken slide rendering. - Even if the browser is not fullscreen,
::backdropwill match to SVG container whenever matched to@media screenmedia query.
If concerned to conflict with the style provided by the app, consider to disable the selector support by inlineSVG: { backdropSelector: false }.
- Source