Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cssom-view] Specify aliases for window.open feature names #1128

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions cssom-view/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,7 @@ This specification defines the effect of the <var>features</var> argument for us
1. <a>Skip whitespace</a>.
1. <a>Collect a sequence of characters</a> that are not <a>space characters</a> nor "<code>=</code>" (U+003D).
Let <var>name</var> be the collected characters, <a>converted to ASCII lowercase</a>.
1. Set <var>name</var> to the result of <a>normalizing the feature name</a> <var>name</var>.
1. If <var>name</var> is in <var>parsed features</var> or if <var>name</var> is not a <a>supported <code>open()</code> feature name</a>,
continue <i>token loop</i>.
1. <a>Skip whitespace</a>.
Expand Down Expand Up @@ -722,6 +723,22 @@ A <dfn export>supported <code>open()</code> feature name</dfn> is one of the fol
<dd>The top position of the window.
</dl>

For legacy reasons, there are some aliases of some feature names. To <dfn lt="normalizing the
feature name">normalize a feature name</dfn> <var>name</var>, switch on <var>name</var>:

<dl class="switch">
<dt>"<code>screenx</code>"
<dd>Return "<code>left</code>".
<dt>"<code>screeny</code>"
<dd>Return "<code>top</code>".
<dt>"<code>innerwidth</code>"
<dd>Return "<code>width</code>".
<dt>"<code>innerheight</code>"
<dd>Return "<code>height</code>".
<dt>Anything else
<dd>Return <var>name</var>.
</dl>


The {{MediaQueryList}} Interface {#the-mediaquerylist-interface}
----------------------------------------------------------------
Expand Down