Skip to content

Conversation

@victor-homyakov
Copy link
Contributor

Attempt to fix https://prototype.lighthouseapp.com/projects/8886/tickets/1282-latest-prototypejs-from-github-repo-fails-in-opera

Opera (at least 11.X) has false positive result in feature test 'styleFloat' in DIV.style, but should have its own getStyle_Opera and standard setOpacity/getOpacity.

Another variant:

  if (Prototype.Browser.Opera) {
    // Opera also has 'styleFloat' in DIV.style
    methods.getStyle = getStyle_Opera;
  } else if ('styleFloat' in DIV.style) {
    methods.getStyle = getStyle_IE;
  }
  if (!STANDARD_CSS_OPACITY_SUPPORTED) {
    methods.setOpacity = setOpacity_IE;
    methods.getOpacity = getOpacity_IE;
  }

Attempt to fix https://prototype.lighthouseapp.com/projects/8886/tickets/1282-latest-prototypejs-from-github-repo-fails-in-opera

Opera (at least 11.X) has false positive result in feature test `'styleFloat' in DIV.style`, but should have its own `getStyle_Opera` and standard `setOpacity`/`getOpacity`.

Another variant:

    if (Prototype.Browser.Opera) {
      // Opera also has 'styleFloat' in DIV.style
      methods.getStyle = getStyle_Opera;
    } else if ('styleFloat' in DIV.style) {
      methods.getStyle = getStyle_IE;
    }
    if (!STANDARD_CSS_OPACITY_SUPPORTED) {
      methods.setOpacity = setOpacity_IE;
      methods.getOpacity = getOpacity_IE;
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant