• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

DOM2 CSS

The DOM2 CSS delivers a module for all style elements of an SVG document. The module consists of different interfaces, and most of the interfaces in the SVG DOM start with CSS. The DOM2 style sheet module is not focused on CSS; it provides support for all types of style sheets and all style sheets in a document. For SVG, CSS is the most important choice; therefore, we'll use it throughout this chapter. In reality, there is also only one style sheet per site.

The interface named CSSStyleSheet represents a single style sheet in a document. It contains a collection of all the rules in the style sheet. The base interface for all style rules is CSSRule. It contains all CSS statements for a document. The interface named CSSRuleList provides a full list of all rules in the document. By using the attribute length, you can determine how many elements are in the list.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint