Wednesday, January 21st, 2009
CSS Selector Shell: See what the browsers see
>Lindsey Simon was always a great guy to chat with at Google. He always had an idea and something cool that he was working on. His latest little tool is fun to play with. It is called CSS Selector Shell and it "is a browser-based tool for testing what CSS becomes in different browsers. It works by taking some raw text, inserting a dynamic STYLE element into the HEAD with that raw text as its content, and then reading the CSSOM to see what the browser has parsed it into. It is written in Javascript."

The example above is WebKit nightly. When running in Firefox you get very different results. Even for small things like saying: "What will this do?"
-
-
/* Combined selector. */
-
.class1.class2 {
-
color: blue;
-
color: orange;
-
}
-
and seeing "color: orange;" come out is nice. A very useful little tool Lindsey!
Related Content:











I suppose this will come in handy for some of the harder cascade questions that I’m guilty of sometimes answering coarsely with “!important”