Skip to content

Commit

Permalink
update CSS text to also talk about presentational hints
Browse files Browse the repository at this point in the history
  • Loading branch information
jeisinger committed Mar 30, 2017
1 parent 1a80dda commit 618cdcc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 9 deletions.
11 changes: 9 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1845,8 +1845,13 @@ <h2 class="heading settled" data-level="7" id="integration-with-css"><span class
do</a>.</p>
<li> If a <a data-link-type="dfn" href="https://drafts.csswg.org/cssom-1/#css-style-sheet">CSS style sheet</a> with a null <a data-link-type="dfn" href="https://drafts.csswg.org/cssom-1/#concept-css-style-sheet-location">location</a> is responsible
for the request, set the <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-request-referrer">referrer</a> to its <a data-link-type="dfn" href="https://drafts.csswg.org/cssom-1/#concept-css-style-sheet-owner-node">owner node</a>’s <a data-link-type="dfn" href="https://dom.spec.whatwg.org/#concept-node-document">node document</a>’s <a data-link-type="dfn" href="https://dom.spec.whatwg.org/#concept-document-url">URL</a>, and the <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-request-referrer-policy">referrer policy</a> to its <a data-link-type="dfn" href="https://drafts.csswg.org/cssom-1/#concept-css-style-sheet-owner-node">owner node</a>’s <a data-link-type="dfn" href="https://dom.spec.whatwg.org/#concept-node-document">node document</a>’s <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/dom.html#concept-document-referrer-policy">referrer policy</a>.
<li> Otherwise, a <a data-link-type="dfn" href="https://drafts.csswg.org/cssom-1/#css-declaration-block">CSS declaration block</a> that is part of an element’s
inline style properties is responsible for the request: set the <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-request-referrer">referrer</a> to the block’s <a data-link-type="dfn" href="https://drafts.csswg.org/cssom-1/#cssstyledeclaration-owner-node">owner node</a>’s <a data-link-type="dfn" href="https://dom.spec.whatwg.org/#concept-node-document">node document</a>’s <a data-link-type="dfn" href="https://dom.spec.whatwg.org/#concept-document-url">URL</a>, and the <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-request-referrer-policy">referrer policy</a> to the block’s <a data-link-type="dfn" href="https://drafts.csswg.org/cssom-1/#cssstyledeclaration-owner-node">owner node</a>’s <a data-link-type="dfn" href="https://dom.spec.whatwg.org/#concept-node-document">node document</a>’s <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/dom.html#concept-document-referrer-policy">referrer policy</a>.
<li> Otherwise, a <a data-link-type="dfn" href="https://drafts.csswg.org/cssom-1/#css-declaration-block">CSS declaration block</a> that was created by the
embedder is responsible for the request - either from parsing of an
element’s <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/dom.html#the-style-attribute">style attribute</a>, or to implement an <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/rendering.html#presentational-hints">presentational
hint</a> for an element. We assume that in this case the <a data-link-type="dfn" href="https://drafts.csswg.org/cssom-1/#css-declaration-block">CSS
declaration block</a>’s <a data-link-type="dfn" href="https://drafts.csswg.org/cssom-1/#cssstyledeclaration-owner-node">owner node</a> points to that element, and set the <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-request-referrer">referrer</a> to the
block’s <a data-link-type="dfn" href="https://drafts.csswg.org/cssom-1/#cssstyledeclaration-owner-node">owner node</a>’s <a data-link-type="dfn" href="https://dom.spec.whatwg.org/#concept-node-document">node
document</a>’s <a data-link-type="dfn" href="https://dom.spec.whatwg.org/#concept-document-url">URL</a>, and the <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-request-referrer-policy">referrer policy</a> to the block’s <a data-link-type="dfn" href="https://drafts.csswg.org/cssom-1/#cssstyledeclaration-owner-node">owner node</a>’s <a data-link-type="dfn" href="https://dom.spec.whatwg.org/#concept-node-document">node document</a>’s <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/dom.html#concept-document-referrer-policy">referrer policy</a>.
</ol>
<p class="note" role="note">Note: Both the value of the <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-request">request</a>’s <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-request-referrer">referrer</a> and <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-request-referrer-policy">referrer policy</a> are set based on the values at the
time a given <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-request">request</a> is created. If a document’s referrer policy
Expand Down Expand Up @@ -2236,13 +2241,15 @@ <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span cla
<li><a href="https://html.spec.whatwg.org/multipage/browsers.html#concept-origin-opaque">opaque origin</a>
<li><a href="https://html.spec.whatwg.org/multipage/browsers.html#concept-origin">origin</a>
<li><a href="https://html.spec.whatwg.org/multipage/webappapis.html#concept-settings-object-origin">origin <small>(for environment settings object)</small></a>
<li><a href="https://html.spec.whatwg.org/multipage/rendering.html#presentational-hints">presentational hints</a>
<li><a href="https://html.spec.whatwg.org/multipage/semantics.html#meta-referrer">referrer</a>
<li><a href="https://html.spec.whatwg.org/multipage/dom.html#concept-document-referrer-policy">referrer policy</a>
<li><a href="https://html.spec.whatwg.org/multipage/infrastructure.html#referrer-policy-attribute">referrer policy attribute</a>
<li><a href="https://html.spec.whatwg.org/multipage/semantics.html#attr-a-referrerpolicy">referrerpolicy</a>
<li><a href="https://html.spec.whatwg.org/multipage/workers.html#run-a-worker">running a worker</a>
<li><a href="https://html.spec.whatwg.org/multipage/browsers.html#same-origin">same origin</a>
<li><a href="https://html.spec.whatwg.org/multipage/embedded-content.html#attr-iframe-srcdoc">srcdoc</a>
<li><a href="https://html.spec.whatwg.org/multipage/dom.html#the-style-attribute">style attribute</a>
</ul>
<li>
<a data-link-type="biblio">[RFC5234]</a> defines the following terms:
Expand Down
21 changes: 14 additions & 7 deletions index.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ <h1>Referrer Policy</h1>
text: running a worker; url: run-a-worker
urlPrefix: dom.html
text: document referrer policy; url: concept-document-referrer-policy; for: Document
text: style attribute; url: the-style-attribute
urlPrefix: rendering.html
text: presentational hints

type: interface
urlPrefix: dom.html
text: Document
Expand Down Expand Up @@ -671,14 +675,17 @@ <h2 id="integration-with-css">Integration with CSS</h2>
</li>

<li>
Otherwise, a <a>CSS declaration block</a> that is part of an element's
inline style properties is responsible for the request: set the
<a for="request">referrer</a> to the block's
<a for="CSSStyleDeclaration">owner node</a>'s
<a>node document</a>'s <a for="Document">URL</a>, and the
Otherwise, a <a>CSS declaration block</a> that was created by the
embedder is responsible for the request - either from parsing of an
element's <a>style attribute</a>, or to implement an <a>presentational
hint</a> for an element. We assume that in this case the <a>CSS
declaration block</a>'s <a for="CSSStyleDeclaration">owner node</a>
points to that element, and set the <a for="request">referrer</a> to the
block's <a for="CSSStyleDeclaration">owner node</a>'s <a>node
document</a>'s <a for="Document">URL</a>, and the
<a for="request">referrer policy</a> to the block's
<a for="CSSStyleDeclaration">owner node</a>'s
<a>node document</a>'s <a for="Document">referrer policy</a>.
<a for="CSSStyleDeclaration">owner node</a>'s <a>node document</a>'s
<a for="Document">referrer policy</a>.
</li>
</ol>

Expand Down

0 comments on commit 618cdcc

Please sign in to comment.