WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
137788
[CSS Shapes] shape image size not calculated correctly when the element size is different than the image size
https://bugs.webkit.org/show_bug.cgi?id=137788
Summary
[CSS Shapes] shape image size not calculated correctly when the element size ...
Rebecca Hauck
Reported
2014-10-16 14:22:54 PDT
The two attached tests have each have a shape image defined on an img element where the width and height of the element are different than the actual width and height of the image. One of them has the element larger (2x) then the image, the other is smaller (1/2). In each case, it appears as though the shape image is being calculated incorrectly. In WebKit, both cases seem to make the image 1 pixel wider than it should be, which causes the text to wrap below the element rather than to the right of it. If I increase the size of the containing element by 1px, the text wraps correctly. In Blink, it's more off in the case where the element is larger than the image - there, it appears to be 5px wider than it should be as I have to increase the containing element's width by 5px to see the text wrap correctly.
Attachments
Test case for bug
(1.74 KB, text/html)
2014-10-16 14:23 PDT
,
Rebecca Hauck
no flags
Details
Reference file for test
(702 bytes, text/html)
2014-10-16 14:24 PDT
,
Rebecca Hauck
no flags
Details
Image file for test
(17.86 KB, image/png)
2014-10-16 14:25 PDT
,
Rebecca Hauck
no flags
Details
Second test case for bug
(1.75 KB, text/html)
2014-10-16 14:25 PDT
,
Rebecca Hauck
no flags
Details
Reference file for second test
(700 bytes, text/html)
2014-10-16 14:25 PDT
,
Rebecca Hauck
no flags
Details
Image file for second test
(17.69 KB, image/png)
2014-10-16 14:26 PDT
,
Rebecca Hauck
no flags
Details
Second test case for bug
(1.75 KB, text/html)
2014-10-16 16:11 PDT
,
Rebecca Hauck
no flags
Details
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Rebecca Hauck
Comment 1
2014-10-16 14:23:47 PDT
Created
attachment 239965
[details]
Test case for bug
Rebecca Hauck
Comment 2
2014-10-16 14:24:33 PDT
Created
attachment 239966
[details]
Reference file for test
Rebecca Hauck
Comment 3
2014-10-16 14:25:00 PDT
Created
attachment 239967
[details]
Image file for test
Rebecca Hauck
Comment 4
2014-10-16 14:25:30 PDT
Created
attachment 239968
[details]
Second test case for bug
Rebecca Hauck
Comment 5
2014-10-16 14:25:54 PDT
Created
attachment 239970
[details]
Reference file for second test
Rebecca Hauck
Comment 6
2014-10-16 14:26:19 PDT
Created
attachment 239971
[details]
Image file for second test
Rebecca Hauck
Comment 7
2014-10-16 16:11:09 PDT
Created
attachment 239981
[details]
Second test case for bug
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug