Skip to content

The compatibility of different browsers should be considered about test case css(--customProperty) #4926

@fecore1

Description

@fecore1

Description

The compatibility of different browsers should be considered about test case css(--customProperty)

$elem.css( "--prop2" ) has different val on different browsers:

  • firefox 91: $elem.css( "--prop2" ) => 'val2'
  • chrome 93: $elem.css( "--prop2" ) => ' val2'
  • edge 93: $elem.css( "--prop2" ) => ' val2'

As i know, jQuery.css is based on getComputedStyle and getPropertyValue, and that have different behaves on different browsers.

Link to test case

Please open test case bellow use different browsers and attention the value of --prop2

https://codepen.io/fecore1/pen/KKqNxQx

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions