[Webkit-unassigned] [Bug 20226] 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:48:07 PDT 2008


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





------- Comment #1 from deepak.sherveghar at gmail.com  2008-07-30 03:48 PDT -------
(In reply to comment #0)
> I have this simple HTML page.
> <HTML>
>    <HEAD/>
>    <BODY>
>        <IMG SRC="abc.gif" border="0%" ALT="Alt Text">
>    </BODY>
> </HTML>
> 
> 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
> fine.
> 
> 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.
> 

sorry for small typo ..... 
the above IMG tag should be

 <IMG SRC="abc.gif" border="10%" ALT="Alt Text"> 

with border as 10% and not 0%.


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