max7
asked on
Odd CSS-related question
Greetings,
I recently needed to take a quiz for front-end development skills and this one of the questions under CSS2:
Assuming I understand the question correctly, I was stumped by this. One thing that confused me was, when it refers to "user's window", I assumed it meant browser window. If that is the case, I'm not familiar with any CSS2 that would grab background and foreground colors of browser windows.
I then thought this was related to using JavaScript but it was under the CSS2>colors category.
Anybody know if this is possible to do this using CSS2 standards?
I recently needed to take a quiz for front-end development skills and this one of the questions under CSS2:
Write the code used to set the foreground and background colors of a paragraph to the same foreground and background colors of the user's window.
Assuming I understand the question correctly, I was stumped by this. One thing that confused me was, when it refers to "user's window", I assumed it meant browser window. If that is the case, I'm not familiar with any CSS2 that would grab background and foreground colors of browser windows.
I then thought this was related to using JavaScript but it was under the CSS2>colors category.
Anybody know if this is possible to do this using CSS2 standards?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The question is wrong since there is no HTML element called "user's window". If the question had been about the parent element, then the answer could be 'inherit'.
ASKER
Thanks DaveBaldwin ... so even if "user's window" was interpreted as "browser window" even using inherit still would not work for this using only CSS2 standards, right?
"browser window" is not an HTML element either. As far as I know, 'inherit' only works with the immediate parent element. Since there is no usable definition of the immediate parent element in the question, there can't be a defined answer, just a bunch of guesses like we've done on this page. 'color' and 'background' were defined in CSS1 if that means anything to you.
ASKER