Bug 79380 - resize property doesn't work on images
: resize property doesn't work on images
Status: RESOLVED WONTFIX
Product: WebKit
Classification: Unclassified
Component: CSS
: 528+ (Nightly build)
: Unspecified Unspecified
: P2 Normal
Assigned To: Nobody
:
Depends on:
Blocks: 12250
  Show dependency treegraph
 
Reported: 2012-02-23 11:12 PST by Ryosuke Niwa
Modified: 2012-08-13 16:08 PDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Ryosuke Niwa 2012-02-23 19:19:54 PST
+adele since she's the original author of the resize handle in http://trac.webkit.org/changeset/14674.
Comment 2 Adele Peterson 2012-02-23 21:30:47 PST
Resize only applies to "elements with ‘overflow’ other than visible".  Can an image have overflow?
Comment 3 Ryosuke Niwa 2012-02-23 21:58:15 PST
(In reply to comment #2)
> Resize only applies to "elements with ‘overflow’ other than visible".  Can an image have overflow?

I can manually set overflow: hidden but maybe they're ignored?  The computed style says overflow-x and overflow-y are both auto :(
Comment 4 Adele Peterson 2012-02-23 22:13:12 PST
I think overflow doesn't apply to an image element because it is a replaced element.  But don't quote me on that...
Comment 5 Ryosuke Niwa 2012-02-23 22:33:24 PST
(In reply to comment #4)
> I think overflow doesn't apply to an image element because it is a replaced element.  But don't quote me on that...

You're right. The spec says so: http://www.w3.org/TR/css3-box/#overflow1 although MDN claims Firefox applies it to replaced elements as well but this isn't the case as far as I tested on Firefox 9: https://developer.mozilla.org/en/CSS/resize
Comment 6 Koji Ishii 2012-05-03 23:12:34 PDT
Aren't images and other replaced elements simply resizable regardless of the resize property? It looks like IE/FF behaves so.

If so, I guess this is dup of bug 7154.

In addition, IE9 selects div and show resize handle if it has width or height, and then show carets on the next click. There may be preferences on this behavior, but at least making replaced elements selectable and resizable makes sense to me, with or without the resize property set.