Summary: | resize property doesn't work on images | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WONTFIX | ||
Severity: | Normal | CC: | adele, bdakin, kojii, leviw, pcdevil7, simon.fraser, styu007 |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | |||
Bug Blocks: | 12250 |
Description
Ryosuke Niwa
2012-02-23 11:12:42 PST
+adele since she's the original author of the resize handle in http://trac.webkit.org/changeset/14674. Resize only applies to "elements with ‘overflow’ other than visible". Can an image have overflow? (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 :( I think overflow doesn't apply to an image element because it is a replaced element. But don't quote me on that... (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 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. |