Skip to content

Conversation

@tomaswolf
Copy link
Contributor

Now this is embarrassing. I did after all find an old PC on which to test this with IE 8 and got a crappy UI missing most but not all parts. Quickly discovered that IE < 10 does not support gradients, which I had used extensively. Had never occurred to me that even IE9 might not have this.

Since IE9 and IE8 are still in use (a total of 5% according to caniuse, some other sites report much higher values) I guess it's worth catering to users who have to use such old browsers (especially corporate users who have an unfortunate tendency to lag behind).

See the commit comment for the changes. Basically, I've replaced all gradients by simpler CSS or PNGs. Visually the UI is pretty much the same, and it now works (and looks good) even on poor old IE8.

Since the new imgdiff UI heavily used gradients, this leaves IE9 and
IE8 users with a complete disfunctional UI.

Replaced all gradients by simpler means:

* Vertical handle: instead of 2px wide gradient, use a 1px background
  and a white border-right
  
* Opacity slider: No gradient but a simple border and background-color

* All radial-gradients replaced by small pre-computed PNGs

* Checkerboard background done with a small repeated PNG

With these changes, the imgdiff UI is fully functional even in IE 8.
Visual changes in other browsers are barely discernible.
@tomaswolf
Copy link
Contributor Author

BTW: looking at https://dev.gitblit.com/commitdiff/mirrors!ninja.git/948eeb44257529c03df2ef46a226565beae9fb67 I wonder why .svg is not an image extension. Support for that seems to be pretty widespread...

gitblit added a commit that referenced this pull request Nov 18, 2014
IE < 10 does not support gradients.
@gitblit gitblit merged commit d85396a into gitblit-org:develop Nov 18, 2014
@tomaswolf tomaswolf deleted the ticket-88-followup branch November 19, 2014 14:11
tomaswolf added a commit to tomaswolf/gerrit-gitblit-plugin that referenced this pull request Nov 21, 2014
This is a GitBlit 1.7.0 preview: essentially

* gitblit-org/gitblit#229
* gitblit-org/gitblit#230
* gitblit-org/gitblit#231
* gitblit-org/gitblit#232

Replace the CSS-based slider by a JavaScript-based one, plus blink
comparator, plus pixel difference on browsers that support it.
gitblit added a commit that referenced this pull request Jan 13, 2015
@fhtthg
Copy link

fhtthg commented Mar 15, 2015

some thing i test in my win10 it ti's work so happy

@flaix flaix modified the milestone: 1.7.0 Mar 18, 2017
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.

4 participants