Skip to content

Commit

Permalink
[giow] (3) Make <iframe scrolling> more Web-compatible.
Browse files Browse the repository at this point in the history
Affected topics: Rendering

git-svn-id: http://svn.whatwg.org/webapps@8517 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 28, 2014
1 parent e697e58 commit 8cd88fc
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 90 deletions.
34 changes: 8 additions & 26 deletions complete.html
Expand Up @@ -95508,33 +95508,15 @@ <h4 id=the-page><span class=secno>14.3.2 </span>The page</h4>
in which a page is rendered not as the author intended, possibly for the purposes of phishing or
otherwise misleading the user.</p>

<hr><p>If the <code><a href=#document>Document</a></code> has a <a href=#root-element>root element</a>, and the <code><a href=#document>Document</a></code>'s
<a href=#browsing-context>browsing context</a> is a <a href=#nested-browsing-context>nested browsing context</a>, and the <a href=#browsing-context-container>browsing
<hr><p>If the <code><a href=#document>Document</a></code> is a <a href=#nested-browsing-context>nested browsing context</a>, and the <a href=#browsing-context-container>browsing
context container</a> of that <a href=#nested-browsing-context>nested browsing context</a> is a <code><a href=#frame>frame</a></code> or
<code><a href=#the-iframe-element>iframe</a></code> element, and that element has a <code title=attr-frames-scrolling>scrolling</code> attribute, then the user agent is expected to
compare the value of the attribute in an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> manner to the values
in the first column of the following table, and if one of them matches, then the user agent is
expected to treat that attribute as a <a href=#presentational-hints title="presentational hints">presentational
hint</a> for the aforementioned root element's 'overflow' property, setting it to the value
given in the corresponding cell on the same row in the second column:</p>

<table><thead><tr><th> Attribute value
<th> 'overflow' value
<tbody><tr><td><code title="">on</code>
<td>'scroll'
<tr><td><code title="">scroll</code>
<td>'scroll'
<tr><td><code title="">yes</code>
<td>'scroll'
<tr><td><code title="">off</code>
<td>'hidden'
<tr><td><code title="">noscroll</code>
<td>'hidden'
<tr><td><code title="">no</code>
<td>'hidden'
<tr><td><code title="">auto</code>
<td>'auto'
</table><hr><p>When a <code><a href=#the-body-element>body</a></code> element has a <code title=attr-background><a href=#attr-background>background</a></code>
<code><a href=#the-iframe-element>iframe</a></code> element, and that element has a <code title="">scrolling</code> attribute,
and that attribute's value is an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the string "<code title="">off</code>", "<code title="">noscroll</code>", or "<code title="">no</code>", then the
user agent is expected to prevent any scroll bars from being shown for the viewport of the
<a href=#nested-browsing-context>nested browsing context</a>, regardless of the 'overflow' property that applies to that
viewport.</p>

<hr><p>When a <code><a href=#the-body-element>body</a></code> element has a <code title=attr-background><a href=#attr-background>background</a></code>
attribute set to a non-empty value, the new value is expected to be <a href=#resolve-a-url title="resolve a
url">resolved</a> relative to the element, and if this is successful, the user agent is
expected to treat the attribute as a <a href=#presentational-hints title="presentational hints">presentational hint</a>
Expand Down
34 changes: 8 additions & 26 deletions index
Expand Up @@ -95508,33 +95508,15 @@ html, body { display: block; }</pre>
in which a page is rendered not as the author intended, possibly for the purposes of phishing or
otherwise misleading the user.</p>

<hr><p>If the <code><a href=#document>Document</a></code> has a <a href=#root-element>root element</a>, and the <code><a href=#document>Document</a></code>'s
<a href=#browsing-context>browsing context</a> is a <a href=#nested-browsing-context>nested browsing context</a>, and the <a href=#browsing-context-container>browsing
<hr><p>If the <code><a href=#document>Document</a></code> is a <a href=#nested-browsing-context>nested browsing context</a>, and the <a href=#browsing-context-container>browsing
context container</a> of that <a href=#nested-browsing-context>nested browsing context</a> is a <code><a href=#frame>frame</a></code> or
<code><a href=#the-iframe-element>iframe</a></code> element, and that element has a <code title=attr-frames-scrolling>scrolling</code> attribute, then the user agent is expected to
compare the value of the attribute in an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> manner to the values
in the first column of the following table, and if one of them matches, then the user agent is
expected to treat that attribute as a <a href=#presentational-hints title="presentational hints">presentational
hint</a> for the aforementioned root element's 'overflow' property, setting it to the value
given in the corresponding cell on the same row in the second column:</p>

<table><thead><tr><th> Attribute value
<th> 'overflow' value
<tbody><tr><td><code title="">on</code>
<td>'scroll'
<tr><td><code title="">scroll</code>
<td>'scroll'
<tr><td><code title="">yes</code>
<td>'scroll'
<tr><td><code title="">off</code>
<td>'hidden'
<tr><td><code title="">noscroll</code>
<td>'hidden'
<tr><td><code title="">no</code>
<td>'hidden'
<tr><td><code title="">auto</code>
<td>'auto'
</table><hr><p>When a <code><a href=#the-body-element>body</a></code> element has a <code title=attr-background><a href=#attr-background>background</a></code>
<code><a href=#the-iframe-element>iframe</a></code> element, and that element has a <code title="">scrolling</code> attribute,
and that attribute's value is an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the string "<code title="">off</code>", "<code title="">noscroll</code>", or "<code title="">no</code>", then the
user agent is expected to prevent any scroll bars from being shown for the viewport of the
<a href=#nested-browsing-context>nested browsing context</a>, regardless of the 'overflow' property that applies to that
viewport.</p>

<hr><p>When a <code><a href=#the-body-element>body</a></code> element has a <code title=attr-background><a href=#attr-background>background</a></code>
attribute set to a non-empty value, the new value is expected to be <a href=#resolve-a-url title="resolve a
url">resolved</a> relative to the element, and if this is successful, the user agent is
expected to treat the attribute as a <a href=#presentational-hints title="presentational hints">presentational hint</a>
Expand Down
45 changes: 7 additions & 38 deletions source
Expand Up @@ -106548,45 +106548,14 @@ html, body { display: block; }</pre>

<hr>

<p>If the <code>Document</code> has a <span>root element</span>, and the <code>Document</code>'s
<span>browsing context</span> is a <span>nested browsing context</span>, and the <span>browsing
<p>If the <code>Document</code> is a <span>nested browsing context</span>, and the <span>browsing
context container</span> of that <span>nested browsing context</span> is a <code>frame</code> or
<code>iframe</code> element, and that element has a <code
data-x="attr-frames-scrolling">scrolling</code> attribute, then the user agent is expected to
compare the value of the attribute in an <span>ASCII case-insensitive</span> manner to the values
in the first column of the following table, and if one of them matches, then the user agent is
expected to treat that attribute as a <span data-x="presentational hints">presentational
hint</span> for the aforementioned root element's 'overflow' property, setting it to the value
given in the corresponding cell on the same row in the second column:</p>

<table>
<thead>
<tr>
<th> Attribute value
<th> 'overflow' value
<tbody>
<tr>
<td><code data-x="">on</code>
<td>'scroll'
<tr>
<td><code data-x="">scroll</code>
<td>'scroll'
<tr>
<td><code data-x="">yes</code>
<td>'scroll'
<tr>
<td><code data-x="">off</code>
<td>'hidden'
<tr>
<td><code data-x="">noscroll</code>
<td>'hidden'
<tr>
<td><code data-x="">no</code>
<td>'hidden'
<tr>
<td><code data-x="">auto</code>
<td>'auto'
</table>
<code>iframe</code> element, and that element has a <code data-x="">scrolling</code> attribute,
and that attribute's value is an <span>ASCII case-insensitive</span> match for the string "<code
data-x="">off</code>", "<code data-x="">noscroll</code>", or "<code data-x="">no</code>", then the
user agent is expected to prevent any scroll bars from being shown for the viewport of the
<span>nested browsing context</span>, regardless of the 'overflow' property that applies to that
viewport.</p>

<hr>

Expand Down

0 comments on commit 8cd88fc

Please sign in to comment.