Skip to content
Permalink
Browse files
[e] (0) xref
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=14212

git-svn-id: http://svn.whatwg.org/webapps@6716 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 20, 2011
1 parent 7b922b3 commit abc0fb8029476f3bd1893c58f692c70c02b8ea29
Showing with 112 additions and 70 deletions.
  1. +46 −34 complete.html
  2. +46 −34 index
  3. +20 −2 source
@@ -4076,7 +4076,19 @@ <h4 id=dependencies><span class=secno>2.2.2 </span>Dependencies</h4>
Content</cite> specification to define the interaction of certain
HTML elements with the CSS 'element()' function. <a href=#refsCSSIMAGES>[CSSIMAGES]</a></p>

</dd>
<p>Support for the CSS Object Model is required for
implementations that support scripting. The following features and
terms are defined in the CSSOM specifications: <a href=#refsCSSOM>[CSSOM]</a> <a href=#refsCSSOMVIEW>[CSSOMVIEW]</a>

<ul class=brief><li><dfn id=linkstyle><code>LinkStyle</code></dfn></li>
<li><dfn id=cssstyledeclaration><code>CSSStyleDeclaration</code></dfn></li>
<li><dfn id=stylesheet><code>StyleSheet</code></dfn></li>
<li><dfn id=dom-linkstyle-sheet title=dom-linkstyle-sheet><code>sheet</code></dfn></li>
<li><dfn id=dom-stylesheet-disabled title=dom-stylesheet-disabled><code>disabled</code></dfn></li>
<li><dfn id=alternative-style-sheet-sets>Alternative style sheet sets</dfn> and the <dfn id=preferred-style-sheet-set>preferred style sheet set</dfn></li>
<li><dfn id=serializing-a-css-value>Serializing a CSS value</dfn></li>
<li><dfn id=scroll-an-element-into-view>Scroll an element into view</dfn></li>
</ul></dd>



@@ -10324,7 +10336,7 @@ <h4 id=elements-in-the-dom><span class=secno>3.2.2 </span>Elements in the DOM</h
readonly attribute <span>HTMLCollection</span> <span title="dom-command-ro-commandTriggers">commandTriggers</span>;-->

// <span>styling</span>
readonly attribute <span>CSSStyleDeclaration</span> <a href=#dom-style title=dom-style>style</a>;
readonly attribute <a href=#cssstyledeclaration>CSSStyleDeclaration</a> <a href=#dom-style title=dom-style>style</a>;

// <a href=#event-handler-idl-attributes>event handler IDL attributes</a>
[TreatNonCallableAsNull] attribute <a href=#function>Function</a>? <a href=#handler-onabort title=handler-onabort>onabort</a>;
@@ -11011,19 +11023,19 @@ <h5 id=the-style-attribute><span class=secno>3.2.3.7 </span>The <dfn title=attr-

<hr><dl class=domintro><dt><var title="">element</var> . <code title=dom-style><a href=#dom-style>style</a></code></dt>
<dd>
<p>Returns a <code>CSSStyleDeclaration</code> object for the element's <code title=attr-style><a href=#the-style-attribute>style</a></code> attribute.</p>
<p>Returns a <code><a href=#cssstyledeclaration>CSSStyleDeclaration</a></code> object for the element's <code title=attr-style><a href=#the-style-attribute>style</a></code> attribute.</p>
</dd>

</dl><div class=impl>

<p>The <dfn id=dom-style title=dom-style><code>style</code></dfn> IDL attribute
must return a <code>CSSStyleDeclaration</code> whose value
must return a <code><a href=#cssstyledeclaration>CSSStyleDeclaration</a></code> whose value
represents the declarations specified in the attribute, if
present. Mutating the <code>CSSStyleDeclaration</code> object must
present. Mutating the <code><a href=#cssstyledeclaration>CSSStyleDeclaration</a></code> object must
create a <code title=attr-style><a href=#the-style-attribute>style</a></code> attribute on the
element (if there isn't one already) and then change its value to be
a value representing the serialized form of the
<code>CSSStyleDeclaration</code> object. The same object must be
<code><a href=#cssstyledeclaration>CSSStyleDeclaration</a></code> object. The same object must be
returned each time. <a href=#refsCSSOM>[CSSOM]</a></p>

</div>
@@ -13610,7 +13622,7 @@ <h4 id=the-link-element><span class=secno>4.2.4 </span>The <dfn><code>link</code
attribute DOMString <a href=#dom-link-type title=dom-link-type>type</a>;
[PutForwards=<span title=dom-DOMSettableTokenList-value>value</span>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-link-sizes title=dom-link-sizes>sizes</a>;
};
<a href=#htmllinkelement>HTMLLinkElement</a> implements <span>LinkStyle</span>;</pre>
<a href=#htmllinkelement>HTMLLinkElement</a> implements <a href=#linkstyle>LinkStyle</a>;</pre>
</dd>
</dl><p>The <code><a href=#the-link-element>link</a></code> element allows authors to link their
document to other resources.</p>
@@ -13888,7 +13900,7 @@ <h4 id=the-link-element><span class=secno>4.2.4 </span>The <dfn><code>link</code
attribute gives the title of the link. With one exception, it is
purely advisory. The value is text. The exception is for style sheet
links, where the <code title=attr-link-title><a href=#attr-link-title>title</a></code>
attribute defines <span>alternative style sheet sets</span>.</p>
attribute defines <a href=#alternative-style-sheet-sets>alternative style sheet sets</a>.</p>

<p class=note>The <code title=attr-link-title><a href=#attr-link-title>title</a></code>
attribute on <code><a href=#the-link-element>link</a></code> elements differs from the global
@@ -13928,7 +13940,7 @@ <h4 id=the-link-element><span class=secno>4.2.4 </span>The <dfn><code>link</code
always return false and does nothing on setting.</p> <!-- that is
normatively required in the definition of dom-linkstyle-disabled -->

<p>The <code>LinkStyle</code> interface is also implemented by
<p>The <code><a href=#linkstyle>LinkStyle</a></code> interface is also implemented by
this element; the <a href=#styling>styling processing model</a> defines
how. <a href=#refsCSSOM>[CSSOM]</a></p>

@@ -14482,16 +14494,16 @@ <h5 id=pragma-directives><span class=secno>4.2.5.3 </span>Pragma directives</h5>

<dd>

<p>This pragma sets the name of the default <span title="alternative style sheet sets">alternative style sheet
set</span>.</p>
<p>This pragma sets the name of the default <a href=#alternative-style-sheet-sets title="alternative style sheet sets">alternative style sheet
set</a>.</p>

<div class=impl>

<ol><li><p>If the <code><a href=#the-meta-element>meta</a></code> element has no <code title=attr-meta-content><a href=#attr-meta-content>content</a></code> attribute, or if that
attribute's value is the empty string, then abort these
steps.</li>

<li><p>Set the <span>preferred style sheet set</span> to the
<li><p>Set the <a href=#preferred-style-sheet-set>preferred style sheet set</a> to the
value of the element's <code title=attr-meta-content><a href=#attr-meta-content>content</a></code> attribute. <a href=#refsCSSOM>[CSSOM]</a></li>

</ol></div>
@@ -14940,7 +14952,7 @@ <h4 id=the-style-element><span class=secno>4.2.6 </span>The <dfn><code>style</co
attribute DOMString <a href=#dom-style-type title=dom-style-type>type</a>;
attribute boolean <a href=#dom-style-scoped title=dom-style-scoped>scoped</a>;
};
<a href=#htmlstyleelement>HTMLStyleElement</a> implements <span>LinkStyle</span>;</pre>
<a href=#htmlstyleelement>HTMLStyleElement</a> implements <a href=#linkstyle>LinkStyle</a>;</pre>
</dd>
</dl><p>The <code><a href=#the-style-element>style</a></code> element allows authors to embed style
information in their documents. The <code><a href=#the-style-element>style</a></code> element is
@@ -15028,8 +15040,8 @@ <h4 id=the-style-element><span class=secno>4.2.6 </span>The <dfn><code>style</co
</div>

<p id=title-on-style>The <dfn id=attr-style-title title=attr-style-title><code>title</code></dfn> attribute on
<code><a href=#the-style-element>style</a></code> elements defines <span>alternative style sheet
sets</span>. If the <code><a href=#the-style-element>style</a></code> element has no <code title=attr-style-title><a href=#attr-style-title>title</a></code> attribute, then it has no
<code><a href=#the-style-element>style</a></code> elements defines <a href=#alternative-style-sheet-sets>alternative style sheet
sets</a>. If the <code><a href=#the-style-element>style</a></code> element has no <code title=attr-style-title><a href=#attr-style-title>title</a></code> attribute, then it has no
title; the <code title=attr-title><a href=#the-title-attribute>title</a></code> attribute of
ancestors does not apply to the <code><a href=#the-style-element>style</a></code> element. <a href=#refsCSSOM>[CSSOM]</a></p>

@@ -15118,7 +15130,7 @@ <h4 id=the-style-element><span class=secno>4.2.6 </span>The <dfn><code>style</co
IDL attribute behaves as defined <a href=#dom-linkstyle-disabled title=dom-linkstyle-disabled>for the alternative style sheets
DOM</a>.</p>

<p>The <code>LinkStyle</code> interface is also implemented by
<p>The <code><a href=#linkstyle>LinkStyle</a></code> interface is also implemented by
this element; the <a href=#styling>styling processing model</a> defines
how. <a href=#refsCSSOM>[CSSOM]</a></p>

@@ -15154,25 +15166,25 @@ <h4 id=styling><span class=secno>4.2.7 </span><dfn title="styling processing mod

<p>The <code><a href=#the-link-element>link</a></code> and <code><a href=#the-style-element>style</a></code> elements can provide
styling information for the user agent to use when rendering the
document. The DOM Styling specification specifies what styling
document. The CSS and CSSOM specifications specify what styling
information is to be used by the user agent and how it is to be
used. <a href=#refsCSSOM>[CSSOM]</a></p>
used. <a href=#refsCSS>[CSS]</a> <a href=#refsCSSOM>[CSSOM]</a></p>

<p>The <code><a href=#the-style-element>style</a></code> and <code><a href=#the-link-element>link</a></code> elements implement
the <code>LinkStyle</code> interface. <a href=#refsCSSOM>[CSSOM]</a></p>
the <code><a href=#linkstyle>LinkStyle</a></code> interface. <a href=#refsCSSOM>[CSSOM]</a></p>

<div class=impl>

<p>For <code><a href=#the-style-element>style</a></code> elements, if the user agent does not
support the specified styling language, then the <code title=dom-LinkStyle-sheet>sheet</code> attribute of the element's
<code>LinkStyle</code> interface must return null. Similarly,
support the specified styling language, then the <code title=dom-LinkStyle-sheet><a href=#dom-linkstyle-sheet>sheet</a></code> attribute of the element's
<code><a href=#linkstyle>LinkStyle</a></code> interface must return null. Similarly,
<code><a href=#the-link-element>link</a></code> elements that do not represent <a href=#link-type-stylesheet title=rel-stylesheet>external resource links that contribute to
the styling processing model</a> (i.e. that do not have a <code title=rel-stylesheet><a href=#link-type-stylesheet>stylesheet</a></code> keyword in their <code title=attr-link-rel><a href=#attr-link-rel>rel</a></code> attribute), or for which <a href=#the-link-is-an-alternative-stylesheet>the
link is an alternative stylesheet</a> but whose <code title=dom-title><a href=#dom-title>title</a></code> content attribute is absent or empty,
must have their <code>LinkStyle</code> interface's <code title=dom-LinkStyle-sheet>sheet</code> attribute return null.</p>
must have their <code><a href=#linkstyle>LinkStyle</a></code> interface's <code title=dom-LinkStyle-sheet><a href=#dom-linkstyle-sheet>sheet</a></code> attribute return null.</p>

<p>Otherwise, the <code>LinkStyle</code> interface's <code title=dom-LinkStyle-sheet>sheet</code> attribute must return a
<code>StyleSheet</code> object with the following properties: <a href=#refsCSSOM>[CSSOM]</a></p>
<p>Otherwise, the <code><a href=#linkstyle>LinkStyle</a></code> interface's <code title=dom-LinkStyle-sheet><a href=#dom-linkstyle-sheet>sheet</a></code> attribute must return a
<code><a href=#stylesheet>StyleSheet</a></code> object with the following properties: <a href=#refsCSSOM>[CSSOM]</a></p>

<dl><dt>The style sheet type</dt>

@@ -15206,7 +15218,7 @@ <h4 id=styling><span class=secno>4.2.7 </span><dfn title="styling processing mod
attribute is present and has a non-empty value. If the attribute is
absent or its value is the empty string, then the style sheet does
not have a title (it is the empty string). The title is used for
defining <span>alternative style sheet sets</span>.</dd>
defining <a href=#alternative-style-sheet-sets>alternative style sheet sets</a>.</dd>

<dt>The style sheet alternate flag</dt>

@@ -15224,9 +15236,9 @@ <h4 id=styling><span class=secno>4.2.7 </span><dfn title="styling processing mod

<p>The <dfn id=dom-linkstyle-disabled title=dom-LinkStyle-disabled><code>disabled</code></dfn> IDL
attribute on <code><a href=#the-link-element>link</a></code> and <code><a href=#the-style-element>style</a></code> elements must
return false and do nothing on setting, if the <code title=dom-linkstyle-sheet>sheet</code> attribute of their
<code>LinkStyle</code> interface is null. Otherwise, it must return
the value of the <code>StyleSheet</code> interface's <code title=dom-stylesheet-disabled>disabled</code> attribute on
return false and do nothing on setting, if the <code title=dom-linkstyle-sheet><a href=#dom-linkstyle-sheet>sheet</a></code> attribute of their
<code><a href=#linkstyle>LinkStyle</a></code> interface is null. Otherwise, it must return
the value of the <code><a href=#stylesheet>StyleSheet</a></code> interface's <code title=dom-stylesheet-disabled><a href=#dom-stylesheet-disabled>disabled</a></code> attribute on
getting, and forward the new value to that same attribute on
setting.</p>

@@ -37187,7 +37199,7 @@ <h6 id=complex-shapes-(paths)><span class=secno>4.8.11.1.8 </span>Complex shapes
whose dimensions are exactly the rectangle of the bounding box of
the current path.</li>

<li><p><span title="scroll an element into view">Scroll <var title="">notional child</var> into view</span> with the <var title="">align to top flag</var> set.</p>
<li><p><a href=#scroll-an-element-into-view title="scroll an element into view">Scroll <var title="">notional child</var> into view</a> with the <var title="">align to top flag</var> set.</p>

<li><p>Optionally, <a href=#inform>inform the user</a> that the
caret and/or selection cover <var title="">the specified
@@ -37416,8 +37428,8 @@ <h6 id=text-0><span class=secno>4.8.11.1.9 </span>Text</h6> <!-- a v3 feature --
make the font look very ugly.</p>

<p>On getting, the <code title=dom-context-2d-font><a href=#dom-context-2d-font>font</a></code>
attribute must return the <span title="serializing a CSS
value">serialized form</span> of the current font of the context
attribute must return the <a href=#serializing-a-css-value title="serializing a CSS
value">serialized form</a> of the current font of the context
(with no 'line-height' component). <a href=#refsCSSOM>[CSSOM]</a></p>

<div class=example>
@@ -56060,8 +56072,8 @@ <h5 id=link-type-stylesheet><span class=secno>4.12.5.11 </span>Link type "<dfn t
into a document">inserted into a document</a>, whichever happens
last. If the resource is <a href=#the-link-is-an-alternative-stylesheet title="the link is an alternative
stylesheet">an alternative stylesheet</a> then the user agent may
defer obtaining the resource until it is part of the <span>preferred
style sheet set</span>. <a href=#refsCSSOM>[CSSOM]</a></p> <!--
defer obtaining the resource until it is part of the <a href=#preferred-style-sheet-set>preferred
style sheet set</a>. <a href=#refsCSSOM>[CSSOM]</a></p> <!--
what about DOM access of alt style sheets? -->

<p><strong>Quirk</strong>: If the document has been set to
@@ -65530,7 +65542,7 @@ <h4 id=scroll-to-fragid><span class=secno>6.5.9 </span><dfn title=navigate-fragi

<hr><p>When the user agent is required to <dfn id=scroll-to-the-fragment-identifier>scroll to the fragment
identifier</dfn>, it must change the scrolling position of the
document using the <span>scroll an element into view</span>
document using the <a href=#scroll-an-element-into-view>scroll an element into view</a>
algorithm defined in the CSSOM View specification, or perform some
other action, such that <a href=#the-indicated-part-of-the-document>the indicated part of the
document</a> is brought to the user's attention. If there is no

0 comments on commit abc0fb8

Please sign in to comment.