[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
Mon May 7 01:37:50 PDT 2012


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


Kent Tamura <tkent at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #140493|review?, commit-queue?      |review-, commit-queue-
               Flag|                            |




--- Comment #68 from Kent Tamura <tkent at chromium.org>  2012-05-07 01:37:47 PST ---
(From update of attachment 140493)
View in context: https://bugs.webkit.org/attachment.cgi?id=140493&action=review

> LayoutTests/fast/forms/input-width-height-attributes-without-renderer-loaded-image.html:18
> +        if (readyState == 'complete') {
> +            shouldBe('e.width', '0');
> +            shouldBe('e.height', '0');

The code says:
     // If the image is available, use its width.
      if (m_imageLoader->image())
          return m_imageLoader->image()->imageSizeForRenderer(element->renderer(), 1).width();

e.width and e.height should not be 0, right?
You need to set display:none after completing the image loading.

-- 
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