- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Mon, 7 Nov 2011 18:00:02 -0800
- To: Alex Mogilevsky <alexmog@microsoft.com>
- Cc: "www-style@w3.org list" <www-style@w3.org>
On Mon, Nov 7, 2011 at 5:27 PM, Alex Mogilevsky <alexmog@microsoft.com> wrote: > How should be flexible width exposed in DOM, in particular in existing APIs? > > I think I have the answer, just want to check: > > If something has “width:flex(1)”, > > element.style.width returns the specified value – “flex(1)” or “flex(1 0 > auto)” (should be ok to expand the defaults). > > getComputedStyle() returns used value (pixels), after any flexibility has > done its damage. > > element.offsetWidth returns pixels as well > > Right? Yes, all of these fall out of the definition of specified values and used values. ~TJ
Received on Tuesday, 8 November 2011 02:00:57 UTC