Initial state | .show() |
.hide() or .toggle() |
.hide().show() or .toggle().toggle() |
.show().hide() |
---|---|---|---|---|
default block , no inline |
has layout, no action | none , don't save |
remove because not saved | none , don't save |
cascade block , no inline |
has layout, no action | none , don't save |
remove because not saved | none , don't save |
default list-item , inline block |
has layout, no action | none , save "block" |
block , restored from saved |
none , save "block" |
cascade list-item , inline block |
has layout, no action | none , save "block" |
block , restored from saved |
none , save "block" |
cascade none , inline block |
has layout, no action | none , save "block" |
block , restored from saved |
none , save "block" |
Initial state | .show() |
.hide() or .toggle() |
.hide().show() or .toggle().toggle() |
.show().hide() |
---|---|---|---|---|
default inline , no inline |
has layout, no action | none , don't save |
remove because not saved | none , don't save |
cascade inline , no inline |
has layout, no action | none , don't save |
remove because not saved | none , don't save |
default block , inline inline |
has layout, no action | none , save "inline" |
inline , restored from saved |
none , save "inline" |
cascade block , inline inline |
has layout, no action | none , save "inline" |
inline , restored from saved |
none , save "inline" |
cascade none , inline inline |
has layout, no action | none , save "inline" |
inline , restored from saved |
none , save "inline" |
Initial state | .show() |
.hide() or .toggle() |
.hide().show() or .toggle().toggle() |
.show().hide() |
---|---|---|---|---|
default list-item , no inline |
has layout, no action | none , don't save |
remove because not saved | none , don't save |
cascade list-item , no inline |
has layout, no action | none , don't save |
remove because not saved | none , don't save |
default inline , inline list-item |
has layout, no action | none , save "list-item" |
list-item , restored from saved |
none , save "list-item" |
cascade inline , inline list-item |
has layout, no action | none , save "list-item" |
list-item , restored from saved |
none , save "list-item" |
cascade none , inline list-item |
has layout, no action | none , save "list-item" |
list-item , restored from saved |
none , save "list-item" |
Initial state | .show() or .toggle() |
.hide() |
.hide().show() |
.show().hide() or .toggle().toggle() |
---|---|---|---|---|
none , no inline |
block |
no action | block |
none |
cascade none , no inline |
default based on element name | no action | default based on element name | none , save whatever's inline from .show() (default based on element name) |
default block , inline none |
remove because not saved | no action | remove because not saved | none , don't save |
default inline , inline none |
remove because not saved | no action | remove because not saved | none , don't save |
default list-item , inline none |
remove because not saved | no action | remove because not saved | none , don't save |
cascade block , inline none |
remove because not saved | no action | remove because not saved | none , don't save |
cascade inline , inline none |
remove because not saved | no action | remove because not saved | none , don't save |
cascade list-item , inline none |
remove because not saved | no action | remove because not saved | none , don't save |
cascade none , inline none |
default based on element name | no action | default based on element name | none , save whatever's inline from .show() (default based on element name) |
Also, there's a lot of overlap in these tables. I don't think it's as complicated as the tables make it seem, but still glad we're filling this in.