@@ -4046,28 +4046,39 @@ <h4><dfn>Set Window Rect</dfn></h4>
4046
4046
< a > getting a property</ a > named "< code > width</ code > "
4047
4047
from < var > parameters</ var > </ a > .
4048
4048
4049
+ < li > < p > If < var > width</ var > is < a > undefined</ a > , let < var > width</ var >
4050
+ be null.
4051
+
4049
4052
< li > < p > Let < var > height</ var > be the result of
4050
4053
< a > getting a property</ a > named "< code > height</ code > "
4051
4054
from < var > parameters</ var > .
4052
4055
4056
+ < li > < p > If < var > height</ var > is < a > undefined</ a > , let < var > height</ var >
4057
+ be null.
4058
+
4053
4059
< li > < p > Let < var > x</ var > be the result of < a > getting a property</ a >
4054
4060
named "< code > x</ code > " from < var > parameters</ var > .
4055
4061
4062
+ < li > < p > If < var > x</ var > is < a > undefined</ a > , let < var > x</ var > be null.
4063
+
4056
4064
< li > < p > Let < var > y</ var > be the result of < a > getting a property</ a >
4057
4065
named "< code > y</ code > " from < var > parameters</ var > .
4058
4066
4059
- < li > < p > If < var > width</ var > or < var > height</ var > is neither < a > undefined</ a >
4060
- nor a < a > Number</ a > from 0 to 2< sup > 31</ sup > − 1,
4061
- return < a > error</ a > with < a > error code</ a > < a > invalid argument</ a > .
4067
+ < li > < p > If < var > y</ var > is < a > undefined</ a > , let < var > y</ var > be null.
4062
4068
4063
- < li > < p > If < var > x</ var > or < var > y</ var > is neither < a > undefined</ a >
4064
- nor a < a > Number</ a > from −(2< sup > 31</ sup > ) to 2< sup > 31</ sup > − 1,
4069
+ < li > < p > If < var > width</ var > or < var > height</ var > is neither null, nor
4070
+ a < a > Number</ a > from 0 to 2< sup > 31</ sup > − 1, return < a > error</ a >
4071
+ with < a > error code</ a > < a > invalid argument</ a > .
4072
+
4073
+ < li > < p > If < var > x</ var > or < var > y</ var > is neither null, nor
4074
+ a < a > Number</ a > from −(2< sup > 31</ sup > ) to 2< sup > 31</ sup > − 1,
4065
4075
return < a > error</ a > with < a > error code</ a > < a > invalid argument</ a > .
4066
4076
4067
4077
< li > < p > If the < a > remote end</ a > does not support
4068
4078
the < a > Set Window Rect</ a > < a > command</ a > for
4069
- < var > session</ var > 's < a > current top-level browsing context</ a > for any reason,
4070
- return < a > error</ a > with < a > error code</ a > < a > unsupported operation</ a > .
4079
+ < var > session</ var > 's < a > current top-level browsing context</ a >
4080
+ for any reason, return < a > error</ a > with < a > error
4081
+ code</ a > < a > unsupported operation</ a > .
4071
4082
4072
4083
< p class ="note "> In case the < a > Set Window Rect</ a > command is
4073
4084
partially supported (i.e. some combinations of arguments are
@@ -4092,12 +4103,12 @@ <h4><dfn>Set Window Rect</dfn></h4>
4092
4103
of < var > window</ var > :
4093
4104
4094
4105
< ol >
4095
- < li > < p > If < var > width</ var > is not < a > undefined </ a > , set the width,
4106
+ < li > < p > If < var > width</ var > is not null , set the width,
4096
4107
in < a > CSS pixels</ a > , of < var > window</ var > , including
4097
4108
any < a > browser chrome</ a > and externally drawn window decorations,
4098
4109
to a value that is as close as possible to < var > width</ var > .
4099
4110
4100
- < li > < p > If < var > height</ var > is not < a > undefined </ a > , set the height,
4111
+ < li > < p > If < var > height</ var > is not null , set the height,
4101
4112
in < a > CSS pixels</ a > , of < var > window</ var > , including
4102
4113
any < a > browser chrome</ a > and externally drawn window decorations,
4103
4114
to a value that is as close as possible to < var > height</ var > .
@@ -4127,13 +4138,13 @@ <h4><dfn>Set Window Rect</dfn></h4>
4127
4138
< li > < p > If the implementation is able to set the position of < var > window</ var > :
4128
4139
4129
4140
< ol >
4130
- < li > < p > If < var > x</ var > is not < a > undefined </ a > , run specific
4131
- steps set the x-coordinate of the left edge of < var > window</ var >
4132
- to a value that is as close as possible to < var > x</ var > .
4141
+ < li > < p > If < var > x</ var > is not null, set the x-coordinate of the
4142
+ left edge of < var > window</ var > to a value that is as close as
4143
+ possible to < var > x</ var > .
4133
4144
4134
- < li > < p > If < var > y</ var > is not < a > undefined </ a > , run specific
4135
- steps set the y-coordinate of the top edge of < var > window</ var > to
4136
- a value that is as close as possible to < var > y</ var > .
4145
+ < li > < p > If < var > y</ var > is not null, set the y-coordinate of the top
4146
+ edge of < var > window</ var > to a value that is as close as possible
4147
+ to < var > y</ var > .
4137
4148
</ ol >
4138
4149
4139
4150
< aside class =note >
0 commit comments