@@ -2098,60 +2098,68 @@ <h4 id=css-page-rule><span class=secno>7.2.7. </span>CSS <code
20982098 title =""> @page</ code > Rule</ h4 >
20992099
21002100 < p class =XXX > Need to define the rules for < dfn
2101- id =css-page-selectors-parsing title ="CSS page selectors parsing "> parsing a
2102- CSS page selector</ dfn > and < dfn id =css-page-selectors-serializing
2103- title ="CSS page selectors serializing "> serializing a CSS page
2104- selector</ dfn > .
2101+ id =parse-a-css-page-selector > parse a CSS page selector</ dfn > and < dfn
2102+ id =serialize-a-css-page-selector > serialize a CSS page selector</ dfn > .
21052103
21062104 < p > The < code > < a href ="#csspagerule "> CSSPageRule</ a > </ code > object
2107- represents an < code > @page</ code > rule specified (if any) in a < span > CSS
2108- style sheet</ span > .
2105+ represents an < code > @page</ code > rule.
21092106
21102107 < pre
21112108 class =idl > interface < dfn id =csspagerule > CSSPageRule</ dfn > : < a href ="#cssrule "> CSSRule</ a > {
2112- attribute DOMString < a href ="#csspagerule-selectortext " title =csspagerule-selectortext > selectorText</ a > ;
2113- readonly attribute < a href ="#cssstyledeclaration "> CSSStyleDeclaration</ a > < a href =" #csspagerule-style " title =csspagerule- style> style</ a > ;
2109+ attribute DOMString < a href ="#dom- csspagerule-selectortext " title =dom-CSSPageRule-selectorText > selectorText</ a > ;
2110+ readonly attribute < a href ="#cssstyledeclaration "> CSSStyleDeclaration</ a > < span title =dom-CSSPageRule- style> style</ span > ;
21142111};</ pre >
21152112
2116- < p > The < dfn id =csspagerule-selectortext
2117- title =csspagerule-selectortext > < code > selectorText</ code > </ dfn > attribute,
2118- on getting, < em class =ct > must</ em > return the result of < a
2119- href ="#css-page-selectors-serializing " title ="CSS page selectors
2120- serializing "> serializing CSS page selectors</ a > . On setting, the setted
2121- value < em class =ct > must</ em > be used as input for < a
2122- href ="#css-page-selectors-parsing " title ="CSS page selectors
2123- parsing "> parsing CSS page selectors</ a > and if that returns a non-null
2124- value that is to be used as a selector for the < code > @page</ code > rule. If
2125- it returns null setting < em class =ct > must not</ em > have an effect.
2113+ < p > The < dfn id =dom-csspagerule-selectortext
2114+ title =dom-CSSPageRule-selectorText > < code > selectorText</ code > </ dfn >
2115+ attribute, on getting, < em class =ct > must</ em > return the result of < a
2116+ href ="#serialize-a-css-page-selector " title ="serialize a CSS page
2117+ selector "> serializing</ a > the associated < span > CSS page selector</ span > .
2118+
2119+ < p > On setting the < code title =dom-CSSPageRule-selectorText > < a
2120+ href ="#dom-csspagerule-selectortext "> selectorText</ a > </ code > attribute
2121+ these steps < em class =ct > must</ em > be run:
2122+
2123+ < ol >
2124+ < li >
2125+ < p > Run the < a href ="#parse-a-css-page-selector "> parse a CSS page
2126+ selector</ a > algorithm on the given value.
2127+
2128+ < li >
2129+ < p > If the algorithm returns a non-null value replace the associated
2130+ < span > CSS page selector</ span > with the returned value.
2131+
2132+ < li >
2133+ < p > Otherwise, if the algorithm returns a null value, do nothing.
2134+ </ ol >
21262135
21272136 < p > The < dfn id =csspagerule-style
21282137 title =csspagerule-style > < code > style</ code > </ dfn > attribute, on getting,
21292138 < em class =ct > must</ em > return a < code > < a
2130- href ="#cssstyledeclaration "> CSSStyleDeclaration</ a > </ code > that contains
2131- the specified property declarations within the < code > @page</ code > rule.
2139+ href ="#cssstyledeclaration "> CSSStyleDeclaration</ a > </ code > for the
2140+ < code > @page</ code > rule.
21322141
21332142 < h4 id =css-namespace-rule > < span class =secno > 7.2.8. </ span > CSS < code
21342143 title =""> @namespace</ code > Rule</ h4 >
21352144
21362145 < p > The < code > < a href ="#cssnamespacerule "> CSSNamespaceRule</ a > </ code > object
2137- represents an < code > @namespace</ code > rule specified (if any) in a
2138- < span > CSS style sheet</ span > that consists of a prefix and namespace.
2146+ represents an < code > @namespace</ code > rule.
21392147
21402148 < pre
21412149 class =idl > interface < dfn id =cssnamespacerule > CSSNamespaceRule</ dfn > : < a href ="#cssrule "> CSSRule</ a > {
2142- readonly attribute DOMString < a href ="#cssnamespacerule-namespaceuri "> namespaceURI</ a > ;
2143- readonly attribute DOMString < a href ="#cssnamespacerule-prefix "> prefix</ a > ;
2150+ readonly attribute DOMString < a href ="#dom- cssnamespacerule-namespaceuri " title = dom-CSSNamespaceRule-namespaceURI > namespaceURI</ a > ;
2151+ readonly attribute DOMString < a href ="#dom- cssnamespacerule-prefix " title = dom-CSSNamespaceRule-prefix > prefix</ a > ;
21442152};</ pre >
21452153
2146- < p > The < dfn
2147- id = cssnamespacerule-namespaceuri > < code > namespaceURI</ code > </ dfn >
2148- attribute, on getting, < em class =ct > must</ em > return specified namespace
2149- IRI from the < code > @namespace</ code > rule.
2150-
2151- < p > The < dfn id =cssnamespacerule-prefix > < code > prefix </ code > </ dfn > attribute,
2152- on getting, < em class = ct > must </ em > return the specified prefix from the
2153- < code > @namespace </ code > rule or the empty string if there is no prefix. </ p >
2154- <!-- XXX lowercased? -->
2154+ < p > The < dfn id = dom-cssnamespacerule-namespaceuri
2155+ title = dom-CSSNamespaceRule-namespaceURI > < code > namespaceURI</ code > </ dfn >
2156+ attribute, on getting, < em class =ct > must</ em > return the namespace of the
2157+ < code > @namespace</ code > rule.
2158+
2159+ < p > The < dfn id =dom- cssnamespacerule-prefix
2160+ title = dom-CSSNamespaceRule-prefix > < code > prefix </ code > </ dfn > attribute, on
2161+ getting, < em class = ct > must </ em > return the prefix of the
2162+ < code > @namespace </ code > rule or the empty string if there is no prefix.
21552163
21562164 < h3 id =css-declaration-blocks > < span class =secno > 7.3. </ span > CSS Declaration
21572165 Blocks</ h3 >
0 commit comments