When exactly is inline CSS like this applied?
<p style="background: blue; color: white;">A new background and
font color with inline CSS</p>
onDomReady, onDomLoaded, instantly…?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s before onDomReady or onDomLoaded. Those style attributes will be set on the DOM node as the element is parsed, along with all of the other inline attributes. If you were to inspect the element in JavaScript in the very next line (w/out waiting for a load/ready event), you would see that the style properties are already set.
Edit: here’s a quick jsfiddle demonstrating the immediate application of the style properties: http://jsfiddle.net/QZbMv/