Re: [whatwg] CSS canvas() function

2010-12-02 Thread Simon Pieters
On Thu, 02 Dec 2010 06:34:05 +0100, Simon Fraser s...@me.com wrote: On Dec 1, 2010, at 5:37 PM, Robert O'Callahan wrote: On Thu, Dec 2, 2010 at 2:25 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: On Wed, Dec 1, 2010 at 5:20 PM, Robert O'Callahan rob...@ocallahan.org wrote: In the absence

Re: [whatwg] CSS canvas() function

2010-12-02 Thread Tab Atkins Jr.
On Thu, Dec 2, 2010 at 2:28 AM, Simon Pieters sim...@opera.com wrote: On Thu, 02 Dec 2010 06:34:05 +0100, Simon Fraser s...@me.com wrote: On Dec 1, 2010, at 5:37 PM, Robert O'Callahan wrote: On Thu, Dec 2, 2010 at 2:25 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: On Wed, Dec 1, 2010 at 5:20

Re: [whatwg] CSS canvas() function

2010-12-02 Thread Charles Pritchard
On 12/2/2010 2:48 AM, whatwg-requ...@lists.whatwg.org wrote: Message: 2 Date: Wed, 01 Dec 2010 21:58:46 -0500 From: Boris Zbarskybzbar...@mit.edu To:whatwg@lists.whatwg.org Subject: Re: [whatwg] CSS canvas() function Message-ID:4cf70b66.7060...@mit.edu Content-Type: text/plain; charset=UTF-8

Re: [whatwg] CSS canvas() function

2010-12-02 Thread Boris Zbarsky
On 12/2/10 1:06 PM, Tab Atkins Jr. wrote: img does, though, if the resource for whatever reason hasn't been received and successfully decoded yet. I think showing @alt in this context for img would be _really_ weird... -Boris

Re: [whatwg] CSS canvas() function

2010-12-02 Thread Boris Zbarsky
On 12/2/10 1:27 PM, Charles Pritchard wrote: Is this one in specs somewhere? No, though there is ongoing work to create a way to have iframes outside the DOM that load documents. -Boris

Re: [whatwg] CSS canvas() function

2010-12-02 Thread Tab Atkins Jr.
On Thu, Dec 2, 2010 at 10:30 AM, Boris Zbarsky bzbar...@mit.edu wrote: On 12/2/10 1:06 PM, Tab Atkins Jr. wrote: img  does, though, if the resource for whatever reason hasn't been received and successfully decoded yet. I think showing @alt in this context for img would be _really_ weird...

Re: [whatwg] CSS canvas() function

2010-12-02 Thread Charles Pritchard
On 12/2/2010 12:08 PM, whatwg-requ...@lists.whatwg.org wrote: Date: Thu, 02 Dec 2010 13:39:35 -0500 From: Boris Zbarskybzbar...@mit.edu To:whatwg@lists.whatwg.org Subject: Re: [whatwg] CSS canvas() function Message-ID:4cf7e7e7.3080...@mit.edu Content-Type: text/plain; charset=ISO-8859-1; format

Re: [whatwg] CSS canvas() function

2010-12-02 Thread Robert O'Callahan
On Thu, Dec 2, 2010 at 6:34 PM, Simon Fraser s...@me.com wrote: On Dec 1, 2010, at 5:37 PM, Robert O'Callahan wrote: On Thu, Dec 2, 2010 at 2:25 PM, Tab Atkins Jr. jackalm...@gmail.comwrote: On Wed, Dec 1, 2010 at 5:20 PM, Robert O'Callahan rob...@ocallahan.org wrote: In the absence of

Re: [whatwg] CSS canvas() function

2010-12-02 Thread Tab Atkins Jr.
On Thu, Dec 2, 2010 at 3:55 PM, Robert O'Callahan rob...@ocallahan.org wrote: I think we could spec the following cases: 1) img containing a fully loaded image; size is the intrinsic size of the image 2) video when it's displaying a video or fully loaded poster image; size is the intrinsic

Re: [whatwg] CSS canvas() function

2010-12-01 Thread Tab Atkins Jr.
On Tue, Nov 23, 2010 at 5:35 PM, Robert O'Callahan rob...@ocallahan.org wrote: On Wed, Nov 24, 2010 at 2:23 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: For example, I've recently been playing with fractals in canvas, and temporarily set my blog to have a screen-filling canvas z-index'd

Re: [whatwg] CSS canvas() function

2010-12-01 Thread Tab Atkins Jr.
On Wed, Dec 1, 2010 at 2:16 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: I've gone with using element() for selectors (limited to only ID selectors, but other valid selectors are accepted, they just don't currently do anything).  Then element-ref() takes an ident, which the js function maps

Re: [whatwg] CSS canvas() function

2010-12-01 Thread Olli Pettay
On 12/02/2010 12:42 AM, Tab Atkins Jr. wrote: On Wed, Dec 1, 2010 at 2:16 PM, Tab Atkins Jr.jackalm...@gmail.com wrote: I've gone with using element() for selectors (limited to only ID selectors, but other valid selectors are accepted, they just don't currently do anything). Then

Re: [whatwg] CSS canvas() function

2010-12-01 Thread Tab Atkins Jr.
On Wed, Dec 1, 2010 at 3:38 PM, Olli Pettay olli.pet...@helsinki.fi wrote: On 12/02/2010 12:42 AM, Tab Atkins Jr. wrote: On Wed, Dec 1, 2010 at 2:16 PM, Tab Atkins Jr.jackalm...@gmail.com  wrote: I've gone with using element() for selectors (limited to only ID selectors, but other valid

Re: [whatwg] CSS canvas() function

2010-12-01 Thread Olli Pettay
On 12/02/2010 01:43 AM, Tab Atkins Jr. wrote: On Wed, Dec 1, 2010 at 3:38 PM, Olli Pettayolli.pet...@helsinki.fi wrote: On 12/02/2010 12:42 AM, Tab Atkins Jr. wrote: On Wed, Dec 1, 2010 at 2:16 PM, Tab Atkins Jr.jackalm...@gmail.com wrote: I've gone with using element() for selectors

Re: [whatwg] CSS canvas() function

2010-12-01 Thread Robert O'Callahan
On Thu, Dec 2, 2010 at 12:43 PM, Tab Atkins Jr. jackalm...@gmail.comwrote: My question was specifically for an out-of-document iframe. In-document, all elements are obviously valid. Something like: script var frame = document.createElement(iframe); frame.src = http://www.example.com;

Re: [whatwg] CSS canvas() function

2010-12-01 Thread Tab Atkins Jr.
On Wed, Dec 1, 2010 at 5:20 PM, Robert O'Callahan rob...@ocallahan.org wrote: In the absence of compelling use cases, I'd just leave it at img, canvas and video and whitelist in more elements later if necessary. input type=image? object/embed seem to have roughly equivalent use-cases to video

Re: [whatwg] CSS canvas() function

2010-12-01 Thread Robert O'Callahan
On Thu, Dec 2, 2010 at 2:25 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: On Wed, Dec 1, 2010 at 5:20 PM, Robert O'Callahan rob...@ocallahan.org wrote: In the absence of compelling use cases, I'd just leave it at img, canvas and video and whitelist in more elements later if necessary.

Re: [whatwg] CSS canvas() function

2010-12-01 Thread Tab Atkins Jr.
On Wed, Dec 1, 2010 at 5:37 PM, Robert O'Callahan rob...@ocallahan.org wrote: On Thu, Dec 2, 2010 at 2:25 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: On Wed, Dec 1, 2010 at 5:20 PM, Robert O'Callahan rob...@ocallahan.org wrote: In the absence of compelling use cases, I'd just leave it at

Re: [whatwg] CSS canvas() function

2010-12-01 Thread Boris Zbarsky
On 12/1/10 6:43 PM, Tab Atkins Jr. wrote: My question was specifically for an out-of-documentiframe. Most browsers don't load documents in such iframes at all, right? Should this work? The rendering of a non-seamlessiframe doesn't depend on any other elements in the document. In general,

Re: [whatwg] CSS canvas() function

2010-12-01 Thread Simon Fraser
On Dec 1, 2010, at 5:37 PM, Robert O'Callahan wrote: On Thu, Dec 2, 2010 at 2:25 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: On Wed, Dec 1, 2010 at 5:20 PM, Robert O'Callahan rob...@ocallahan.org wrote: In the absence of compelling use cases, I'd just leave it at img, canvas and video

Re: [whatwg] CSS canvas() function

2010-12-01 Thread Boris Zbarsky
On 12/2/10 12:34 AM, Simon Fraser wrote: It's a shame to disallow HTML elements with known width and height, e.g. if you want to render a small disconnected div subtree into a canvas or map it onto a WebGL texture. You'd have to decide how to resolve style (maybe assume it's a child of the

[whatwg] CSS canvas() function

2010-11-23 Thread Tab Atkins Jr.
(This is being sent to the WHATWG list, rather than the CSSWG list, as it seems like the sort of thing that should be primarily defined in HTML, with a CSS spec just referring to the HTML definition, like :active and similar things.) Webkit has for some time now supported using the

Re: [whatwg] CSS canvas() function

2010-11-23 Thread Tab Atkins Jr.
On Tue, Nov 23, 2010 at 4:59 PM, Robert O'Callahan rob...@ocallahan.org wrote: On Wed, Nov 24, 2010 at 1:13 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: Webkit has for some time now supported using the -webkit-canvas() function in CSS anywhere you could use an image

Re: [whatwg] CSS canvas() function

2010-11-23 Thread Robert O'Callahan
On Wed, Nov 24, 2010 at 2:23 PM, Tab Atkins Jr. jackalm...@gmail.comwrote: For example, I've recently been playing with fractals in canvas, and temporarily set my blog to have a screen-filling canvas z-index'd below the content, filled with an interactive fractal (the mandelbrot set, overlaid