Any Javascript Expert: Who can add multiple IDs in This Script to Check If CSS does not match redirect Page : Javascript expert,

i have the below script

    $('#copyright, #credit, #doom a').each(function () {
        if ($(this).css('font-size') != '15px') {
            document.location.href = "http://www.example.com";
        }
    });

It check all these IDs Css properties for font-size 15px if not equal then the page will be redirect to example.com


Now here what i want, I want to know how can i add **multiple css property** in that script not only the font-size but i also want to include position:relative;height:auto;background:#000; to check it..

it may be look like this: (this is only example not the working script )

      $('#copyright, #credit, #doom a').each(function () {
            if 
               position:relative;height:auto;background:#000
            
                { do nothing }
    
    else
            {
                document.location.href = "http://www.example.com";
            }
        });
