W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2014

Re: [whatwg] High-density canvases

From: Mark Callow <callow.mark@artspark.co.jp>
Date: Wed, 18 Jun 2014 12:06:46 +0900
Message-ID: <53A10246.2030404@artspark.co.jp>
To: robert@ocallahan.org, Ian Hickson <ian@hixie.ch>
Cc: Rik Cabanier <cabanier@gmail.com>, Dean Jackson <dino@apple.com>, Stephen White <senorblanco@chromium.org>, WHAT Working Group <whatwg@whatwg.org>
On 13/06/2014 12:42, Robert O'Callahan wrote:
> Here's an alternative proposal which I think is a bit simpler and more
> flexible:
> Expose two new DOM attributes on HTMLCanvasElement:
>     readonly attribute long preferredWidth;
>     readonly attribute long preferredHeight;
> These attributes are the UA's suggested canvas size for optimizing output
> quality. It's basically what Ian's proposal would have set as the automatic
> size. We would also add a "preferredsizechange" event when those attributes
> change.
I like the functionality but these names really don't convey that
functionality. The names you originally proposed over in *Bug 1024493*
<https://bugzilla.mozilla.org/show_bug.cgi?id=1024493> at mozilla.org,
renderedPixelWidth/Height, while not perfect, convey it much better.

Regards

    -Mark

-- 
注意:この電子メールには、株式会社エイチアイの機密情報が含まれている場合
が有ります。正式なメール受信者では無い場合はメール複製、 再配信または情
報の使用を固く禁じております。エラー、手違いでこのメールを受け取られまし
たら削除を行い配信者にご連絡をお願いいたし ます.

NOTE: This electronic mail message may contain confidential and
privileged information from HI Corporation. If you are not the intended
recipient, any disclosure, photocopying, distribution or use of the
contents of the received information is prohibited. If you have received
this e-mail in error, please notify the sender immediately and
permanently delete this message and all related copies.
Received on Wednesday, 18 June 2014 03:07:14 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:21 UTC