Skip to content

In Chrome 147 calling .style("border", "none") panics #89

@martin-kolarik

Description

@martin-kolarik

Calls shown in Chrome debug console, behavior for not using none:

> el.style.setProperty("border","aliceblue")
> undefined
> el.style.getPropertyValue("border")
> 'aliceblue'

Calls shown in Chrome debug console, behavior when using none:

> el.style.setProperty("border","none")
> undefined
> el.style.getPropertyValue("border")
> ''

This behavior causes panicking at src/dom.rs@660 when .style("border", "none") is used, because bindings::getStyle at src/dom.rs@636 returns "" and is_changed results to false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions