[whatwg] iframe scrolling attribute

Ian Hickson ian at hixie.ch
Fri Feb 28 15:27:16 PST 2014


On Thu, 9 Jan 2014, Mats Palmgren wrote:
>
> The current spec[1] for the scrolling attribute of [i]frame elements 
> does not reflect what is implemented by a majority of UAs.  We intend to 
> change Firefox to implement the behavior of IE/Chrome/Safari and would 
> like to see the spec changed to describe that behavior.
> 
> There are two major problems with the current spec:
> 1. mapping scrolling=yes (and synonyms) to overflow:scroll
> 2. the mapped overflow value being a presentational hint
> 
> Only Firefox implements 1 (we intend to change that[2]). None of the 
> four UAs mentioned implements 2.
> 
> The spec should instead say that scrolling=no (and synonyms) suppress 
> scrollbars for the [i]frame viewport, and that any other value have no 
> effect.

I think what the spec used to have makes a lot more sense, but if there's 
a compat need, fair enough.

   http://html5.org/r/8517

Note that Chrome/Safari don't seem to support "off" and "noscroll", only 
"no". I didn't test IE. The spec supports all three, still (as does FF).

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'


More information about the whatwg mailing list