Hello. I deal with a huge html file. For paragraph tags I specified three tag rules (external,embedded and internal) I specified. There are some class and id rules also have impact at some paragraph nodes. For a specific declaration (color:red) the internal rule is supposed to win but external or embedded rules might have !important declaration. And now I need to know which rule creates the declaration in effect. I need a dom function or priority that will notify me the just rule location (embed, external or inline) that wins after cascade for a specific paragraph node. Could you help please?

Thanks in advance.