Prev | Current Page 97 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"


@namespace rules must follow all
@charset and @import rules, and
precede all other at-rules and rule sets
in a style sheet.
The scope of an @namespace rule is the
style sheet in which it??™s declared??”it
doesn??™t extend to imported style sheets.
If no prefix is specified in the
4
5 http://webkit.org/blog/124/downloadable-fonts/
6 Web Kit is used by Safari.
SPEC
CSS3
BROWSER SUPPORT
Op9.2+ Saf3 FF2+ IE7
FULL NONE FULL NONE
Example
The first example below declares a default
namespace; the second declares that the
prefix svg can be used to refer to elements
from the SVG namespace,
"http://www.w3.org/2000/svg":
@namespace
"http://www.w3.org/1999/xhtml";
@namespace svg
"http://www.w3.org/2000/svg";
@namespace rule, the rule defines the default namespace.
http://www.microsoft.com/typography/web/embedding/weft3/
At-rules Reference
The Ultimate CSS Reference 56
If a prefix is specified, you can refer to elements in that namespace by prepending
the prefix and a vertical bar, |, to the element selector, like so:7
@namespace "http://www.


Pages:
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109