is it possible to use post-type as part of a css selector in block editor stylesheet?

In the meanwhile I posted this question also on Stackoverflow. I got a hint in a comment to the question which led me to a solution. I didn’t find a pure CSS solution, but used the following jQuery script to add according classes dynamically: $(document).ready(function() { if($(‘body’).hasClass(‘post-type-page’)) { $(‘#editor’).addClass(‘post-type-page’); } else if($(‘body’).hasClass(‘post-type-post’)) { $(‘#editor’).addClass(‘post-type-post’); } … Read more