@@ -1480,7 +1480,7 @@ <h4 id=extensions-to-the-document-interface><span class=secno>5.2.3.
14801480 representing the < a href ="#document-style-sheets "> document style
14811481 sheets</ a > .
14821482
1483- < p class =note > Because of IDL limitations the < a
1483+ < p class =note > Because of historical IDL limitations the < a
14841484 href ="#dom-document-stylesheets "> < code
14851485 title =dom-Document-styleSheets > styleSheets</ code > </ a > attribute used to be
14861486 on a separate interface, < code title =""> DocumentStyle</ code > .
@@ -3963,19 +3963,54 @@ <h3 id=extensions-to-the-window-interface><span class=secno>6.2.
39633963 < a href ="#cssstyledeclaration "> CSSStyleDeclaration</ a > < a href ="#dom-window-getcomputedstyle " title =dom-Window-getComputedStyle > getComputedStyle</ a > (Element < var title =""> elt</ var > , DOMString < var title =""> pseudoElt</ var > );
39643964};</ pre >
39653965
3966- < p class = XXX > The < dfn id =dom-window-getcomputedstyle
3966+ < p > The < dfn id =dom-window-getcomputedstyle
39673967 title =dom-Window-getComputedStyle > < code > getComputedStyle(< var
39683968 title =""> elt</ var > , < var title =""> pseudoElt</ var > )</ code > </ dfn > method < em
3969- class =ct > must</ em > ...</ p >
3970- <!-- XXX
3969+ class =ct > must</ em > run these steps:
39713970
3972- element not in rendered document
3973- element in subtree
3974- element moved out of document
3975- element moved into document
3976- -->
3971+ < ol >
3972+ < li >
3973+ < p > Let < var title =""> doc</ var > be the < code > Document</ code > associated
3974+ with the < code > Window</ code > object on which the method was invoked.
3975+
3976+ < li >
3977+ < p > Let < var title =""> obj</ var > be < var title =""> elt</ var > .
3978+
3979+ < li >
3980+ < p > If < var title =""> pseudoElt</ var > is as an < a
3981+ href ="#ascii-case-insensitive "> ASCII case-insensitive</ a > match for
3982+ either "< code > :before</ code > " or "< code > ::before</ code > " let < var
3983+ title =""> obj</ var > be the '::before' pseudo-element of < var
3984+ title =""> elt</ var > .
3985+
3986+ < li >
3987+ < p > If < var title =""> pseudoElt</ var > is as an < a
3988+ href ="#ascii-case-insensitive "> ASCII case-insensitive</ a > match for
3989+ either "< code > :after</ code > " or "< code > ::after</ code > " let < var
3990+ title =""> obj</ var > be the '::after' pseudo-element of < var
3991+ title =""> elt</ var > .
3992+
3993+ < li >
3994+ < p > Return a < a href ="#css-declaration-block "> CSS declaration block</ a >
3995+ with the < a href ="#css-declaration-block-readonly-flag "> CSS declaration
3996+ block readonly flag</ a > set to true and the < a
3997+ href ="#css-declaration-block-declarations "> CSS declaration block
3998+ declarations</ a > set to all properties the user agent supports with as
3999+ value the < a href ="#resolved-value "> resolved value</ a > computed for < var
4000+ title =""> obj</ var > using the style rules associated with < var
4001+ title =""> d</ var > .</ p >
4002+
4003+ < p class =note > This means that even if < var title =""> obj</ var > is in a
4004+ different document (e.g. one fetched via < code > XMLHttpRequest</ code > ) it
4005+ will still use the style rules associated with the document that is
4006+ associated with the global object on which < a
4007+ href ="#dom-window-getcomputedstyle "> < code
4008+ title =dom-Window-getComputedStyle > getComputedStyle()</ code > </ a > was
4009+ invoked to compute the < a href ="#css-declaration-block "> CSS declaration
4010+ block</ a > .</ p >
4011+ </ ol >
39774012
3978- < p class =note > Because of IDL limitations the < a
4013+ < p class =note > Because of historical IDL limitations the < a
39794014 href ="#dom-window-getcomputedstyle "> < code
39804015 title =dom-Window-getComputedStyle > getComputedStyle()</ code > </ a > method
39814016 used to be on a separate interface, < code title =""> ViewCSS</ code > .
0 commit comments