Intent to Deprecate and Remove: HTMLFrameElement.width/height

61 views
Skip to first unread message

Philip Jägenstedt

unread,
Jul 28, 2014, 6:08:06 PM7/28/14
to blink-dev

Primary eng (and PM) emails

phi...@opera.com


Summary

Remove the HTMLFrameElement.width/height attributes, which return the layout width/height of the frame.


Motivation

It's not in the spec:

http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#htmlframeelement


It's not supported in Gecko and was not supported by Presto.

It is supported in IE11 and WebKit.

Compatibility Risk

<frame> itself is obsolete and used far less than in times past. There's a risk that there is old content that depends on this. The fact that neither Gecko or Presto added support suggests that it's not critically important. Since the attributes are readonly they can't be used to resize frames.

Alternative implementation suggestion for web developers

Use frameElement.getBoundingClientRect().width/height instead.

Usage information from UseCounter

http://www.chromestatus.com/metrics/feature/timeline/popularity/394

http://www.chromestatus.com/metrics/feature/timeline/popularity/395


Available in M36, the highest usage to date is 0.0003%.

Entry on chromestatus.com, crbug.com, or MDN

None.


Requesting approval to remove too?

Yes.

Tab Atkins Jr.

unread,
Jul 28, 2014, 8:05:56 PM7/28/14
to Philip Jägenstedt, blink-dev
LGTM, let's try and kill it.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to blink-dev+...@chromium.org.

Eric Seidel

unread,
Jul 29, 2014, 12:45:11 AM7/29/14
to Tab Atkins Jr., Philip Jägenstedt, blink-dev
lgtm!

Dimitri Glazkov

unread,
Jul 29, 2014, 12:56:33 AM7/29/14
to Eric Seidel, Tab Atkins Jr., Philip Jägenstedt, blink-dev
LGTM2

Jochen Eisinger

unread,
Jul 29, 2014, 5:00:51 AM7/29/14
to Dimitri Glazkov, Eric Seidel, Tab Atkins Jr., Philip Jägenstedt, blink-dev
lgtm3
Reply all
Reply to author
Forward
0 new messages