# HG changeset patch
# User Alan Stearns Add CSS OM Interface for @region style rules An ‘ CSSOM section should define REGIONS_RULE on CSSRule The CSSRegionStyleRule interface represents an ‘ The The The Possible exceptions:
+
+ The Possible exceptions:
+
+ The CSSOM View Module
@@ -2192,7 +2264,7 @@
well and is computed from the set of rectangles returned by Add CSS OM Interface for @region style rules An '@region' rule contains style declarations specific to particular
regions.CSS Regions Module Level 3
- Editor's Draft 23 April 2012
+ Editor's Draft 24 April 2012
getClientRects()
and
getBoundingClientRects()
- offsetTop
, offsetLeft
, offsetWidth
and
offsetWidth
@@ -1353,13 +1356,6 @@
3.5. The @region
rule
- @region
’ rule contains style declarations
specific to particular regions.
@@ -2093,14 +2089,90 @@
href="http://www.w3.org/TR/dom/#dom-domexception-invalid_access_err">INVALID_ACCESS_ERR
6.3. Region flow
+
6.3. The
+ CSSRegionStyleRule interface
+
+ @region
’ rule in a CSS
+ style sheet. This rule type is added to the CSSRule
[CSSOM] interface.
+
+
+partial interface CSSRule {
+ const unsigned short REGION_STYLE_RULE = 1001;
+}
+
+
+
+
+
+
+interface CSSRegionStyleRule : CSSRule {
+ attribute DOMString selectorText;
+ readonly attribute CSSRuleList cssRules;
+ unsigned long insertRule(DOMString rule, unsigned long index)
+ raises(DOMException);
+ void deleteRule(unsigned long index)
+ raises(DOMException);
+};
+
+
+ selectorText
attribute gets and sets the associated
+ selector as defined in section 6.4.3
+ of [CSSOM].
+
+ cssRules
attribute must return a CSSRuleList
+ [CSSOM] object for
+ the list of CSSStyleRules
specified in the region style block.
+
+ insertRule(rule, index)
method inserts a CSSStyleRule
into the region style block before the
+ specified index. If the index is equal to the length of the CSSRuleList
+ the CSSStyleRule
is inserted at the end of the list.
+
+
+
+
+ CSSStyleRule
.
+
+ deleteRule(index)
method deletes the CSSStyleRule
in the CSSRuleList at the specified
+ index.
+
+
+
+
+ 6.4. Region flow
layout events
NamedFlow
objects
@@ -2171,11 +2243,11 @@
- 6.4. Clarifications
+
6.5. Clarifications
on pre-existing APIs
6.4.1.
getClientRects()
and
+ class=secno>6.5.1. getClientRects()
and
getBoundingClientRects()
getClientRects()
.
- 6.4.2.
@@ -2824,6 +2896,8 @@
6.5.2.
offsetTop
, offsetLeft
, offsetWidth
and offsetWidth
12.2. Changes
@@ -3319,6 +3393,15 @@
+
cssRules
, 6.3.
+
deleteRule(index)
, 6.3.
+
insertRule(rule, index)
, 6.3.
+
item(index)
, regionOverset, 6.2.
+ selectorText
, 6.3.
+
The @region rule
-
- DOMException
with the
INVALID_ACCESS_ERR
error code.
CSSOM section should define REGIONS_RULE on CSSRule
-The CSSRegionStyleRule interface represents
+ an '@region' rule
+ in a CSS style sheet.
+ This rule type is added
+ to the CSSRule
[[!CSSOM]] interface.
+partial interface CSSRule { + const unsigned short REGION_STYLE_RULE = 1001; +} ++
+interface CSSRegionStyleRule : CSSRule { + attribute DOMString selectorText; + readonly attribute CSSRuleList cssRules; + unsigned long insertRule(DOMString rule, unsigned long index) + raises(DOMException); + void deleteRule(unsigned long index) + raises(DOMException); +}; ++ +
The
+ selectorText
+ attribute gets and sets
+ the associated selector
+ as defined in section 6.4.3 of [[!CSSOM]].
+
+
The
+ cssRules
+ attribute must return a
+ CSSRuleList
[[!CSSOM]]
+ object for the list of
+ CSSStyleRules
+ specified in the region style block.
The
+ insertRule(rule, index)
+ method inserts a
+ CSSStyleRule
+ into the region style block
+ before the specified index.
+ If the index is equal to the length
+ of the CSSRuleList
the
+ CSSStyleRule
+ is inserted at the end of the list.
Possible exceptions:
+CSSStyleRule
.The
+ deleteRule(index)
+ method deletes the CSSStyleRule
in the CSSRuleList
+ at the specified index.
Possible exceptions:
+NamedFlow
objects are
@@ -2355,6 +2419,7 @@