Default SVG namespace
@namespace url("http://www.w3.org/2000/svg");
circle { fill: teal; }
The @namespace at-rule declares an XML namespace for CSS type selectors. Use it when styling SVG or other namespaced markup so svg|a matches only namespaced elements.
@namespace url("http://www.w3.org/2000/svg");
@namespace svg url("http://www.w3.org/2000/svg");@namespace url("http://www.w3.org/2000/svg");
circle { fill: teal; }@namespace svg url("http://www.w3.org/2000/svg");
svg|rect { stroke: navy; }@namespace is a modern CSS at-rule.
Check current browsers before relying on advanced behavior.
Bottom line: Use progressive enhancement. Keep a readable fallback when a browser ignores the at-rule.
Continue with @page.
CODETOFUN NEWS
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
3 people found this page helpful