#eles.removeStyle()
// Remove all keys
eles.removeStyle(): thisRemove per-element style bypasses from every element. Values return to those supplied by the stylesheet, including any configured transitions.
Returns
thisthis collection, for chaining
Example
cy.style({ bypasses: { a: { width: 60 } } });cy.getElementById('a').removeStyle();console.log(cy.getElementById('a').width()); // 30#eles.removeStyle(name)
// Remove the specified keys
eles.removeStyle(name: string): thisRemove per-element style bypasses from every element. Values return to those supplied by the stylesheet, including any configured transitions.
| Name | Description |
|---|---|
name: string | the property to un-bypass, dash-case or camelCase; omit to clear each element's whole bypass declaration |
Returns
thisthis collection, for chaining
Example
cy.style({ bypasses: { a: { width: 60 } } });cy.getElementById('a').removeStyle('width');console.log(cy.getElementById('a').width()); // 30Also spelled eles.removeCss.