W3C home > Mailing lists > Public > www-style@w3.org > October 2012

Re: [cssom] Proposing a getDefaultComputedStyle method

From: Mike Sherov <mike.sherov@gmail.com>
Date: Fri, 12 Oct 2012 17:23:33 -0400
Message-ID: <-663513938837033499@unknownmsgid>
To: "www-style@w3.org" <www-style@w3.org>
Yeah, as a jQuery team member here, I would say this is a top ask of ours.

The IFRAME hack is nasty, and the none IFRAME case isn't much better.

The use case here is $(elem).show() when the author rules say the CSS
display value is "none". What CSS display value should be added?
Without keeping a large map of elements to default value, its
impossible to say without jumping through hoops.

We even have several tickets dedicated to working around the issue be
using the .hidden property of the element, but that'll be a dead end
too.

I'm glad to see this gaining support!

Mike Sherov
Lead Developer
SNAP Interactive, Inc.
http://snap-interactive.com
http://areyouinterested.com
Ticker: STVI

Sent From Mobile: Please excuse my grammar, tone, and punctuation. My
thumbs can't produce flowery prose.
Received on Friday, 12 October 2012 21:24:01 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:01 GMT