@namespace

Support Key: [N6]
Other
At-Rules

@charset
@import
@media
@page
@fontdef
@font-face
= Index DOT Css by Brian Wilson =
Main Index | Property Index | CSS Support History | Browser History



What is it?
The @namespace rule allows the declaration of a namespace prefix to be used by selectors in a stylesheet. It is associated with a namespace URL.

If the optional namespace prefix is omitted, then the URL provided is considered to be the default namespace. This default namespace applies only to selectors that have no explicit namespace prefix declared. Once a namespace prefix is defined though, it can be used in CSS selectors and in property values as well that use element attributes and values.

Gory details:
Any @namespace rules in a style sheet must come after all @import and @charset At-rules and come before all CSS rule sets. If a prefix is declared more than once, the last instance should be used. If a prefix is not understood by the parser in whatever the context, it should be ignored.

Selector and attribute usage of namespaces:
Namespaces can be used to further narrow down style application. They can be used with elements, attributes, and even in some CSS properties.
Syntax
Basic Syntax: @namespace [Optional Namespace Prefix] url([URL]);
Examples
@namespace foo url("http://www.example.com/");
Browser Peculiarities

Boring Copyright Stuff....