<html> element is added between all root elements
After every element that is in my root element i get the main element with children up until the root element.
async setupPagedJS() {
window.PagedConfig = {
auto: false,
};
const previewer = require('pagedjs/dist/paged.legacy.polyfill');
const printRoot = document.querySelector('#print-root');
const printPreview = document.querySelector('#print-preview');
await previewer.preview(printRoot, false, printPreview);
}
I call this setup method from a React component in componentDidMount
.
This causes all my css adjacent sibling selectors to break.