From f5b5034ef1409df3b1e51b9c0bb7f9b2ef2fc833 Mon Sep 17 00:00:00 2001 From: Simon Pieters Date: Mon, 27 Mar 2017 12:35:56 +0200 Subject: [PATCH] [cssom-view] Specify aliases for window.open feature names Add screenx, screeny, innerwidth, innerheight as aliases for left, top, width, and height, respectively. Part of https://github.com/whatwg/html/issues/2464 --- cssom-view/Overview.bs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/cssom-view/Overview.bs b/cssom-view/Overview.bs index dc877ab0a54..33fa41ed504 100644 --- a/cssom-view/Overview.bs +++ b/cssom-view/Overview.bs @@ -673,6 +673,7 @@ This specification defines the effect of the features argument for us 1. Skip whitespace. 1. Collect a sequence of characters that are not space characters nor "=" (U+003D). Let name be the collected characters, converted to ASCII lowercase. + 1. Set name to the result of normalizing the feature name name. 1. If name is in parsed features or if name is not a supported open() feature name, continue token loop. 1. Skip whitespace. @@ -722,6 +723,22 @@ A supported open() feature name is one of the fol
The top position of the window. +For legacy reasons, there are some aliases of some feature names. To normalize a feature name name, switch on name: + +
+
"screenx" +
Return "left". +
"screeny" +
Return "top". +
"innerwidth" +
Return "width". +
"innerheight" +
Return "height". +
Anything else +
Return name. +
+ The {{MediaQueryList}} Interface {#the-mediaquerylist-interface} ----------------------------------------------------------------