[Webkit-unassigned] [Bug 70304] width/height attributes of input element should be supported when the type of the input element is image.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 2 00:14:00 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=70304





--- Comment #21 from Dongwoo Joshua Im <dw.im at samsung.com>  2011-11-02 00:13:59 PST ---
(In reply to comment #20)
> The specification was updated.
> 
> --------
> 
>           attribute unsigned long height;
>           attribute unsigned long width;
> 
> --------
> The IDL attributes width and height must return the rendered width and height of the image, in CSS pixels, if an image is being rendered, and is being rendered to a visual medium; or else the intrinsic width and height of the image, in CSS pixels, if an image is available but not being rendered to a visual medium; or else 0, if no image is available. When the input element's type attribute is not in the Image Button state, then no image is available. [CSS]
> --------

Thanks to inform this.


There is one more line below the paragraph which you quote.

"On setting, they must act as if they reflected the respective content attributes of the same name."

IMO, Even though the line says "reflect", I can't use [Reflect] for those two attributes, because width and height is valuable when the type is image.

I think I need to handle those attributes regarding the type of the input element.

Am I right?


I'll upload new patch with width and height attributes which are "unsigned long" type.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list