5.2 The hasLayout Property Triggers and Resets
For elements that do not have layout by default, the
following table lists the set of properties that enable or reset the hasLayout
property. For example, assigning a width value to a div element
gives it layout. Resetting the width to auto
disables layout.
Mode |
Property |
Trigger Value(s) |
Reset Values(s) |
---|---|---|---|
Quirks, IE7 |
width |
any |
auto |
Quirks, IE7 |
height |
any |
auto |
Quirks, IE7 |
zoom |
any |
normal |
Quirks, IE7 |
position |
absolute |
static, relative |
Quirks, IE7 |
display |
inline-block |
All other display values |
Quirks, IE7 |
float |
left or right |
none |
Quirks, IE7 |
writing-mode |
tb-rl |
lr-tb |
IE7 |
min-height |
any |
|
IE7 |
max-height |
any |
none |
IE7 |
min-width |
any |
|
IE7 |
max-width |
any |
none |
IE7 |
overflow |
any |
visible |
IE7 |
overflow-x |
any |
Visible |
IE7 |
overflow-y |
any |
visible |
IE7 |
position |
fixed |
static, relative |