WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
214418
CSS clip-path is applied to the <svg> root element in the view-box coordinates
https://bugs.webkit.org/show_bug.cgi?id=214418
Summary
CSS clip-path is applied to the <svg> root element in the view-box coordinates
Said Abou-Hallawa
Reported
2020-07-16 12:32:29 PDT
Created
attachment 404473
[details]
test case Open the attached test case. Results: A 100x100 green box is displayed Expected: A 250x250 green box is displayed The CSS size of the <svg> root element is 400x400 but its view-box size is 200x200. The <svg> root element also has a clip-path: inset(0 150px 150px 0). This means 150 pixels from the right and from the bottom should be clipped to the 400x400 bounding box. And a 250x250 green box should be displayed. The bug is the clipping is applied to the view-box rectangle. This leaves only 50x50 box. This box is displayed 100x100 because the local-to-parent transformation is 2:1.
Attachments
test case
(293 bytes, text/html)
2020-07-16 12:32 PDT
,
Said Abou-Hallawa
no flags
Details
Patch
(4.27 KB, patch)
2020-07-16 20:28 PDT
,
Said Abou-Hallawa
no flags
Details
Formatted Diff
Diff
Patch
(4.47 KB, patch)
2020-07-20 12:58 PDT
,
Said Abou-Hallawa
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Said Abou-Hallawa
Comment 1
2020-07-16 12:33:55 PDT
<
rdar://problem/65058191
>
Said Abou-Hallawa
Comment 2
2020-07-16 20:28:52 PDT
Created
attachment 404528
[details]
Patch
Darin Adler
Comment 3
2020-07-19 12:27:19 PDT
Comment on
attachment 404528
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=404528&action=review
> Source/WebCore/rendering/svg/SVGRenderSupport.cpp:401 > + // Transfer referenceBox to CSS coordinates if needed.
Please omit this comment. It just says what the code says.
> Source/WebCore/rendering/svg/SVGRenderSupport.cpp:405 > + // Transfer path back to SVG coordinates.
Ditto.
Said Abou-Hallawa
Comment 4
2020-07-20 12:58:00 PDT
Created
attachment 404746
[details]
Patch
EWS
Comment 5
2020-07-20 15:12:26 PDT
Committed
r264622
: <
https://trac.webkit.org/changeset/264622
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 404746
[details]
.
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