WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
264071
Sync 'svg.css' UA stylesheet with SVG2 Web Specification
https://bugs.webkit.org/show_bug.cgi?id=264071
Summary
Sync 'svg.css' UA stylesheet with SVG2 Web Specification
Ahmad Saleem
Reported
2023-11-01 18:30:27 PDT
Hi Team, While going through random google searches, I came across that we don't have few of SVG UA Stylesheet rules, I think syncing them up would be good idea: Web-Spec Link:
https://svgwg.org/svg2-draft/styling.html#UAStyleSheet
We don't have: *[xml|space=preserve] { text-space-collapse: preserve-spaces; } defs, clipPath, mask, marker, desc, title, metadata, pattern, linearGradient, radialGradient, script, style, symbol { display: none !important; } :host(use) > symbol { display: inline !important; } and also :link, :visited { cursor: pointer; } ____ From above.
> text-space-collapse is renamed to 'white-space-collapse', so need to update and also :link and :visited, would need 'WebKit' specific bits.
Just raising, so we can fix them up and also would like to get inputs from others. Thanks!
Attachments
Add attachment
proposed patch, testcase, etc.
Ahmad Saleem
Comment 1
2023-11-01 18:51:11 PDT
We don't have to adopt all since they might not be right but we should evaluate, which don't lead to any regression. On Experimental basis, I copy pasted and tried and it leads to 1200+ test differences (from SVG and WPT 'SVG' directory).
Nikolas Zimmermann
Comment 2
2023-11-06 00:33:06 PST
(In reply to Ahmad Saleem from
comment #1
)
> We don't have to adopt all since they might not be right but we should > evaluate, which don't lead to any regression. > > On Experimental basis, I copy pasted and tried and it leads to 1200+ test > differences (from SVG and WPT 'SVG' directory).
Still makes sense, to adopt that.
Nikolas Zimmermann
Comment 3
2023-11-06 00:33:12 PST
(In reply to Ahmad Saleem from
comment #1
)
> We don't have to adopt all since they might not be right but we should > evaluate, which don't lead to any regression. > > On Experimental basis, I copy pasted and tried and it leads to 1200+ test > differences (from SVG and WPT 'SVG' directory).
Still makes sense, to adopt that.
Radar WebKit Bug Importer
Comment 4
2023-11-08 17:31:31 PST
<
rdar://problem/118149143
>
Ahmad Saleem
Comment 5
2023-11-08 17:32:23 PST
Nikolas - I will create separate bugs (using this as blocker) to do them one by one to ensure that I don't regress anything. :-)
Tim Nguyen (:ntim)
Comment 6
2023-11-08 17:34:18 PST
WebKit doesn't implement `white-space-collapse: preserve-spaces;` currently.
Ahmad Saleem
Comment 7
2024-07-26 08:48:39 PDT
NOTE - text-xml-space-001.svg will be progressed after: *[xml|space=preserve] { text-space-collapse: preserve-spaces; } Currently, Blink and WebKit (post my change yesterday), make it work like 'nowrap'.
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