Bug 15383

Summary: resize: vertical does not restrict to vertical resize
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bdakin, bryce, jjj, mitz
Priority: P2 Keywords: InRadar
Version: 523.x (Safari 3)   
Hardware: Mac   
OS: OS X 10.4   
URL: data:text/html,<div style="border: solid; width: 200px; position: absolute; overflow: hidden; resize: -webkit-vertical; height: 200px;"><div><div style="height: 50%; background: red"></div></div></div>
Attachments:
Description Flags
Ignore movement along the non-resizing axis sam: review+

Description Eric Seidel (no email) 2007-10-05 15:40:09 PDT
resize: vertical does not restrict to vertical resize

This seems easy to fix.  It could just effectively do max-width: current width.

The example is taken from another bug I'm filing.  But you should only be able to resize the div vertically.
Comment 1 Jan Boeijink 2007-11-21 01:10:07 PST
Horizontal restriction is broken as well.
Comment 2 mitz 2008-01-10 18:24:16 PST
<rdar://problem/5682745>
Comment 3 mitz 2008-05-21 18:15:54 PDT
*** Bug 19170 has been marked as a duplicate of this bug. ***
Comment 4 Chris Suter 2008-05-28 21:15:58 PDT
It's possible to workaround this bug in some circumstances by setting setting the max-width attribute.

However, this doesn't work if you use %ages. Setting max-width to 100%, say, will cause the computed max-width to end up as none. I'm not sure if this is another bug or not.
Comment 5 mitz 2009-06-21 13:52:50 PDT
Created attachment 31620 [details]
Ignore movement along the non-resizing axis
Comment 6 mitz 2009-06-21 13:57:29 PDT
Fixed in <http://trac.webkit.org/projects/webkit/changeset/44914>.