I know this is a very odd issue, and involves custom development work I did, so I hope you can answer it.
I have written a plugin that uses a custom post type and ties into ACF for specific fields I need for the posts. For the editor I’m using Cornerstone to make it simple for my clients (and because they’re used to using it). The posts are included in a page using a shortcode. This is because my plugin script needs to manipulate which post gets put on the page based on things in the custom fields.
While the posts look great in Cornerstone when editing, the x-generated-css doesn’t always get written to the page where I use the shortcode. SOMETIMES it will write, but other times it doesn’t. This means any kind of padding, margins, spacing, etc that I put into an element is ignored since that gets passed using the x-generated-css. To work around it, I’ve been adding CSS inline to text elements to get the spacing I want, but I want to fix the problem rather than try to work around it. I’ve tried changing the priority of when the CSS gets written (in X’s core file) but it hasn’t made any difference.
Is there something I can do to ensure the x-generated-css actually gets written to the page where I have the shortcode? And before you ask, I can’t use Global Blocks for this because - as I mentioned - I have to be able to manipulate which post gets put onto the page. This is dynamic content, not anything static.
