WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
267841
Changing 'namespace' in UA Stylesheet leads to failures
https://bugs.webkit.org/show_bug.cgi?id=267841
Summary
Changing 'namespace' in UA Stylesheet leads to failures
Ahmad Saleem
Reported
2024-01-21 17:23:34 PST
Hi Team, While trying to update namespace from
bug 265495
and
bug 264071
, I noticed that WebKit / Safari start failing a bucket lot of tests while ideally it shouldn't. e.g., SVG.css , update from:
https://searchfox.org/wubkat/rev/90f2bafbe99f4ab1ec05cd05d975c0bbd9aa3ad4/Source/WebCore/css/svg.css#28
Change: @namespace "
http://www.w3.org/2000/svg
"; To (As per web-spec):
https://svgwg.org/svg2-draft/styling.html#UAStyleSheet
@namespace url(
http://www.w3.org/2000/svg
); @namespace xml url(
http://www.w3.org/XML/1998/namespace
); [Same is in case with mathml.css] _____ Just try to run 'run-webkit-tests svg/ imported/w3c/web-platform-tests/svg/' and see new failures. I think it is something we need to fix and worth tracking. Thanks!
Attachments
Add attachment
proposed patch, testcase, etc.
Ahmad Saleem
Comment 1
2024-01-21 17:28:11 PST
Something to fix here?
https://searchfox.org/wubkat/rev/90f2bafbe99f4ab1ec05cd05d975c0bbd9aa3ad4/Source/WebCore/css/CSSNamespaceRule.cpp#53
Karl Dubost
Comment 2
2024-01-21 21:24:19 PST
I wonder what is returned by this in the two cases:
https://searchfox.org/wubkat/source/Source/WebCore/css/parser/CSSParserImpl.cpp#596-607
RefPtr<StyleRuleNamespace> CSSParserImpl::consumeNamespaceRule(CSSParserTokenRange prelude) { AtomString namespacePrefix; if (prelude.peek().type() == IdentToken) namespacePrefix = prelude.consumeIncludingWhitespace().value().toAtomString(); AtomString uri(consumeStringOrURI(prelude)); if (uri.isNull() || !prelude.atEnd()) return nullptr; // Parse error, expected string or URI return StyleRuleNamespace::create(namespacePrefix, uri); }
Radar WebKit Bug Importer
Comment 3
2024-01-28 17:24:22 PST
<
rdar://problem/121822502
>
Matthieu Dubet
Comment 4
2024-01-29 15:26:07 PST
I doubt it's the parsing cf
https://wpt.fyi/results/css/css-namespaces/syntax-005.xml?label=master&label=experimental&aligned&q=namespace
However, it might be a bug with having multiple @namespace defined like this
Ahmad Saleem
Comment 5
2024-01-29 15:43:12 PST
(In reply to Matthieu Dubet from
comment #4
)
> I doubt it's the parsing cf >
https://wpt.fyi/results/css/css-namespaces/syntax-005
. > xml?label=master&label=experimental&aligned&q=namespace > > However, it might be a bug with having multiple @namespace defined like this
But it happens with MathML [
bug 265495
] as well, where we only have single @namespace.
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