Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Fallback values not working for transform #862

Open
ffxsam opened this issue Dec 18, 2016 · 2 comments
Open

Fallback values not working for transform #862

ffxsam opened this issue Dec 18, 2016 · 2 comments

Comments

@ffxsam
Copy link

ffxsam commented Dec 18, 2016

I have the following code:

    return this.props.tracks.map((track, i) => {
      let activeStyle = {
        transition: 'opacity 2s ease-in-out, transform 2s ease-in-out',
        // transitionDelay: `${i * 250}ms`,
      };
      if (playing && track._id !== activeTrackId) {
        activeStyle.opacity = 0.4;
        activeStyle.transform = [
          'scale3d(0.95, 1, 1)',
          'scale(0.95)',
        ];
      }

      return <div
        key={track._id}
        style={[styles.track, activeStyle]}
        onClick={() => this.props.onClickTrack(track._id)}
      >
        <div style={{ flex: 1 }}>{track.name}</div>
        <div>{track.duration.toRunTime()}</div>
      </div>
    });

The scale3d/scale transform simply doesn't work. Is this not supported or am I doing something wrong here?

@dcocchia
Copy link

dcocchia commented Nov 1, 2017

Fallbacks seem to be broken entirely in most versions of React 15, and all versions of React 16.

Current test case:

styles = {
  display: ['-ms-grid', 'grid']
}

The display css attribute isn't added to the component at all.

@pablonm3
Copy link

pablonm3 commented Dec 9, 2017

same problem here, using react V16

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants