WebKit-Specific Style: -webkit-appearance
I was recently scoping out the horrid source code of the Google homepage when I noticed the “Google Search” and “I’m Feeling Lucky” buttons had a style definition I hadn’t seen before: -webkit-appearance. The value assigned to the style was “push-button.” They are buttons so that makes sense but I was curious as to the possible values available for that style. What I found was that there are a *ton* and that you can set any HTML element to look like a completely different element.
class="actions"> href="http://davidwalsh.name/dw-content/webkit-styles.php" class="demo">View Demo class="clear">
i believe that some value not apply to span, example, menulist apply to select tag
@David: Of course not, but it’s funny that it can be done.
Where do you see a need for this? Why would someone want to display an element as a checkbox or selectbox or whatever?
I have seen -webkit-appearance: caret; used to remove the drop-shadows inside input types of text, email search etc on the iPad.
Other than that it seems a fairly un-useful set of rules. Amusing that they work on the span though, maybe it’d be useful for JavaScript functionality somehow?