[Webkit-unassigned] [Bug 20226] New: BORDER attribute with the IMG tag, using percentage values not working.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 30 03:43:26 PDT 2008


           Summary: BORDER attribute with the IMG tag, using percentage
                    values not working.
           Product: WebKit
           Version: 525.x (Safari 3.1)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Images
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: deepak.sherveghar at gmail.com

I have this simple HTML page.
       <IMG SRC="abc.gif" border="0%" ALT="Alt Text">

Where width and height of "abc.gif" is 320x240.

Expected result:
A black border should surround the image, of a size that is the specified
percentage of the available space, for  <IMG> tag above.

Actual result:
No matter what the size of border specified in terms of percentage, we always
see a SOLID border of width 3 pixels.

Note that if we specify the border in terms of pixel's then everthing works

Also I have debugged with a webkit windows (cairo/CURL) build and found that 
the problem is with the cssParser.

For boder=10% (anyvalue in terms of %) CSSParser::parseValue returns false.
For border values specified in terms of pixels CSSParser::parseValue returns
true and everything works fine.

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

More information about the webkit-unassigned mailing list