Short URL: http://html5.org/r/2672
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 2672 | Define that relative URLs in CSS in HTML documents are not reresolved when the base URL changes. | 2009-01-16 00:54 |
Index: source
===================================================================
--- source (revision 2671)
+++ source (revision 2672)
@@ -7082,12 +7082,16 @@
a list of zero or more semicolon-separated (;) CSS declarations. <a
href="#refsCSS21">[CSS21]</a></p>
- <p>The attribute, if specified, must be parsed and treated as the
- body (the part inside the curly brackets) of a declaration block in
- a rule whose selector matches just the element on which the
- attribute is set. For the purposes of the CSS cascade, the attribute
- must be considered to be a 'style' attribute at the author
- level.</p>
+ <p>In user agents that support CSS, the attribute's value must be
+ parsed when the attribute is added or has its value changed, with
+ its value treated as the body (the part inside the curly brackets)
+ of a declaration block in a rule whose selector matches just the
+ element on which the attribute is set. All <span
+ title="URL">URLs</span> in the value must be <span title="resolve a
+ url">resolved</span> when the attribute is parsed.<!-- so dynamic
+ changes to the base URL don't affect the CSS --> For the purposes of
+ the CSS cascade, the attribute must be considered to be a 'style'
+ attribute at the author level. </p>
<p>Documents that use <code title="attr-style">style</code>
attributes on any of their elements must still be comprehensible and
@@ -10006,6 +10010,11 @@
XML-based styling languages, user agents must pass all the children
nodes of the <code>style</code> element to the style system.</p>
+ <p>All <span title="URL">URLs</span> found by the styling language's
+ processor must be <span title="resolve a url">resolved</span> when
+ it is invoked.<!-- so dynamic changes to the base URL don't affect
+ the CSS --></p>
+
<p class="note">This specification does not specify a style system,
but CSS is expected to be supported by most Web browsers. <a
href="#refsCSS21">[CSS21]</a></p>
@@ -59686,7 +59695,7 @@
<li><span>Queue a task</span> to <span title="fire a load
event">fire a <code title="event-load">load</code> event</span> at
- <span>the <code>body</code> element</span>.</p>
+ <span>the <code>body</code> element</span>.</li>
<li>If the <code>Document</code> has a <span>pending state
object</span>, then <span>queue a task</span> to fire a <code
@@ -59696,7 +59705,7 @@
title="dom-PopStateEvent-state">state</code> attribute set to the
current value of the <span>pending state object</span>. This event
must bubble but not be cancelable and has no default
- action.</p></li>
+ action.</li>
</ol>