Skip to content

Bug: CSS Custom Properties can't be set #177

@hpate-omicron

Description

@hpate-omicron

CSS Variables cannot be used from Elm at the moment, style "--myvar" "value" is not applied to DOM.

Elm version: 0.19
Browsers: All

Here are some SSCEs, if CSS variables were applied you would see a 200x200 blue box in this Ellie:
https://ellie-app.com/3fpSpnv8nyNa1

Instead, the box is empty
image

Vanilla HTML + CSS example https://codepen.io/hpate-omicron/pen/BOZzgZ
image

caniuse data: https://caniuse.com/#feat=css-variables
W3 spec: https://www.w3.org/TR/css-variables/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions