Re: [whatwg] Canvas 2d methods

2006-07-02 Thread Stefan Gössner
Benjamin Joffe wrote: Each of the methods defined for the canvas 2d context return null. I think it would be very convenient if instead they would return a reference to the 2d context for that canvas. This would allow writing such code as ctx.fill().stroke() or ctx.moveTo(0,0).lineTo(10,10).

Re: [whatwg] Canvas 2d methods

2006-07-02 Thread Ian Hickson
On Sat, 1 Jul 2006, Andrew Fedoniouk wrote: In prototype based languages it is almost impossible to implement 'with' effectively in the given notation. ctx.moveTo(0,0).lineTo(10,10); is more effective. In some circumstances - in times. Why is it more effective for JS? -- Ian Hickson

Re: [whatwg] Canvas 2d methods

2006-07-02 Thread Stefan Gössner
Ian Hickson wrote: On Sat, 1 Jul 2006, Andrew Fedoniouk wrote: In prototype based languages it is almost impossible to implement 'with' effectively in the given notation. ctx.moveTo(0,0).lineTo(10,10); is more effective. In some circumstances - in times. Why is it more effective

[whatwg] css3-fonts: New values for generic font families

2006-07-02 Thread Nicholas Shanks
I wish to submit two proposals for changes to the generic font families built into CSS. If someone could please forward these to whomever is currently working on the css3-fonts module, I would be much obliged. 1) That monospace and it's new inverse proportional be independent of the

Re: [whatwg] css3-fonts: New values for generic font families

2006-07-02 Thread Håkon Wium Lie
Also sprach Nicholas Shanks: I wish to submit two proposals for changes to the generic font families built into CSS. If someone could please forward these to whomever is currently working on the css3-fonts module, I would be much obliged. Why not just follow the guidelines in the

Re: [whatwg] Canvas 2d methods

2006-07-02 Thread Stefan Gössner
Ian Hickson wrote: On Sun, 2 Jul 2006, Stefan Gössner wrote: Ian Hickson wrote: On Sat, 1 Jul 2006, Andrew Fedoniouk wrote: In prototype based languages it is almost impossible to implement 'with' effectively in the given notation. ctx.moveTo(0,0).lineTo(10,10); is more

Re: [whatwg] [html5] HTMLMapElement.images

2006-07-02 Thread Shadow2531
On 7/1/06, dolphinling [EMAIL PROTECTED] wrote: Can you even have an image map on an input type=image ? Yes -- burnout426

Re: [whatwg] css3-fonts: New values for generic font families

2006-07-02 Thread Nicholas Shanks
Hi Håkon, thanks for replying. Why not just follow the guidelines in the CSS3 font module?: Ahh, I didn't see there were instructions on the module itself on where to send suggestions, and it doesn't give the main author's name (just the CSS2 authors and Tantek… et al). I was on that css

Re: [whatwg] Canvas 2d methods

2006-07-02 Thread Andrew Fedoniouk
- Original Message - From: Ian Hickson [EMAIL PROTECTED] To: Andrew Fedoniouk [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; Benjamin Joffe [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, July 01, 2006 10:21 PM Subject: Re: [whatwg] Canvas 2d methods On Sat, 1 Jul 2006, Andrew

Re: [whatwg] Canvas 2d methods

2006-07-02 Thread Ian Hickson
On Sun, 2 Jul 2006, Stefan Gössner wrote: If I understand this correctly, in the following code var a=1, f=function(x){}, X={b:2,c:3}; with(X) { a=4; f(b); c=5; } *every* variable a,b,c,f in the with-block must be dynamically checked, if it *either* belongs to the global

Re: [whatwg] Canvas 2d methods

2006-07-02 Thread Ian Hickson
On Sun, 2 Jul 2006, Andrew Fedoniouk wrote: On Sat, 1 Jul 2006, Andrew Fedoniouk wrote: In prototype based languages it is almost impossible to implement 'with' effectively in the given notation. ctx.moveTo(0,0).lineTo(10,10); is more effective. In some circumstances -

Re: [whatwg] Canvas 2d methods

2006-07-02 Thread Stefan Gössner
as well as more elegantly in my opinion X.a().b().c(); The latter, IMHO, is semantically bogus. But that's just a matter of opinion, of course. hmm ... ctx.scale(2,1) .rotate(Math.PI/4) .translate(4,-6); illustrates a sequence of manipulations semantically very well, doesn't

Re: [whatwg] Canvas 2d methods

2006-07-02 Thread Stefan Haustein
Hi, I would like to second the request for returning the context in drawing methods that currently return null. I think the following example illustrates why with is considered harmful: var lineWidth = 10; var lineHeight = 20; with(ctx){ fillRect(0, 0, lineWidth, lineHeight); } Best

Re: [whatwg] Canvas 2d methods

2006-07-02 Thread Håkon Wium Lie
Also sprach Ian Hickson: Anyway, this is all a straw man -- this isn't the reason that the spec doesn't allow this. It doesn't allow this because Safari didn't do it this way in the first place, and changing it would likely introduce bugs (while still not helping authors for some time

Re: [whatwg] Canvas 2d methods

2006-07-02 Thread Ian Hickson
On Mon, 3 Jul 2006, Håkon Wium Lie wrote: Anyway, this is all a straw man -- this isn't the reason that the spec doesn't allow this. It doesn't allow this because Safari didn't do it this way in the first place, and changing it would likely introduce bugs (while still not helping