WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
260342
clip-path on SVG content should default to using the border-box (aka stroke-box)
https://bugs.webkit.org/show_bug.cgi?id=260342
Summary
clip-path on SVG content should default to using the border-box (aka stroke-box)
Philip Rogers
Reported
2023-08-17 04:34:24 PDT
Created
attachment 467305
[details]
Testcase showing two clip-paths that should render the same In the attached testcase we have 2 stroked green boxes with clip-paths of "inset(0)" and "inset(0) border-box". These should render the same due to the following lines in
http://www.w3.org/TR/css-masking-1/#the-clip-path
: 1. If no reference box is specified, the border-box will be used as reference box. 2. For SVG elements without an associated CSS layout box, the used value for ... border-box and margin-box is stroke-box. I found this while working on bringing Chromium's clip-path implementation up to speed and found no engines agree on this. I plan to land two new WPT tests covering this behavior (css/css-masking/clip-path-svg-content/clip-path-inset-stroke-001.svg and css/css-masking/clip-path-svg-content/clip-path-inset-stroke-002.svg).
Attachments
Testcase showing two clip-paths that should render the same
(349 bytes, text/html)
2023-08-17 04:34 PDT
,
Philip Rogers
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-08-24 04:35:15 PDT
<
rdar://problem/114375393
>
Ahmad Saleem
Comment 2
2024-08-23 15:50:45 PDT
Both of these WPT test cases are passing -
https://wpt.fyi/results/css/css-masking/clip-path-svg-content?label=master&label=experimental&aligned&q=clip-path-inset-stroke-00
as nearest as November 2023
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