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');
    }
});

Essential was to enqueue that using admin_enqueue_scripts, separately from the frontend scripts. For more details, see https://stackoverflow.com/a/60155398/5641669