Spoiler >!
problem description:
- At start
code
is shown with very dark background, which makes it hard to read.
- When we click spoiler, code background will change to
standard one
but it will also prevent spoiler from fading out.
Example of problem on:
- Stack Overflow https://stackoverflow.com/a/22825711/1393766 (bottom of the answer)
and on Meta https://meta.stackoverflow.com/a/276894/1393766 which looks like this
One way to fix the problem — not necessarily the best, by any stretch of my imagination, but one which works — is to fix the the LHS of the
lhs << (15 - i)
shift so that it is either 0 or 1 that is shifted. For example:
((ptr[j] & (1 << (7 - i % 8))) ? 1 : 0) << (15 - i)
If this click-able behaviour is desired and not bug (I am not sure which is it that is why I used bug and feature-request tags mix), then could we at least change all backgrounds of code in spoiler to standard one
so it would be more readable by default?
I am using newest version of Chrome (40.0.2214.111 m) and Windows 7 Ultimate (64-bit with service pack 1).