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
Radar WebKit Bug Importer
Comment 1 2023-08-24 04:35:15 PDT
Ahmad Saleem
Comment 2 2024-08-23 15:50:45 PDT
Note You need to log in before you can comment on or make changes to this bug.