PEAR logo

HTML_CSS : The Definitive Guide

Handle At-Rules

HTML_CSS::getAtRulesList - Return list of supported At-Rules
HTML_CSS::createAtRule - Create a new simple declarative At-Rule
HTML_CSS::unsetAtRule - Remove an existing At-Rule
HTML_CSS::getAtRuleStyle - Get style value of an existing At-Rule
HTML_CSS::setAtRuleStyle - Define a conditional/informative At-Rule

List of at-rules supported can be obtained by call to function HTML_CSS::getAtRulesList()

[Important] Important

All these related at-rules functions are available since version 1.5.0

Distinguish simple declarative at-rules (without declaration style blocks) : @charset, @import, @namespace, handled by : HTML_CSS::createAtRule() and HTML_CSS::unsetAtRule()

And conditional/informative at-rules (with declaration style blocks) : @media, @page, @font-face, handled by : HTML_CSS::getAtRuleStyle() and HTML_CSS::setAtRuleStyle()

HTML_CSS : The Definitive Guide v 1.5.0 : January 15, 2008