• Robert Knight's avatar
    Improve readability of nested highlights in PDFs · 2d296040
    Robert Knight authored
    In PDFs, highlights are drawn in an otherwise-transparent text layer _on
    top_ of a canvas which displays the text that the user sees. Therefore
    highlights reduce the contrast of the text below and more than two
    levels starts to make the text very difficult to read.
    
    The ideal solution would be to draw the highlights below the text, but
    that's not trivial.
    
    As a simple step to improve the situation, make nested highlights that
    are 3+ levels deep transparent. This limits the amount of contrast
    reduction that overlapping highlights can cause.
    
    In web pages, the highlights are drawn _behind_ the text, so contrast is
    not reduced as much, but the same change is applied there for a
    consistent experience and also because it is easier to implement.
    
    Partially addresses:
    
     - https://github.com/hypothesis/client/issues/1995
     - https://github.com/hypothesis/client/issues/408
    2d296040
Name
Last commit
Last update
.github Loading commit data...
bin Loading commit data...
docs Loading commit data...
embedding-examples Loading commit data...
images Loading commit data...
scripts Loading commit data...
src Loading commit data...
.babelrc Loading commit data...
.dockerignore Loading commit data...
.eslintignore Loading commit data...
.eslintrc Loading commit data...
.gitignore Loading commit data...
.npmignore Loading commit data...
.npmrc Loading commit data...
.prettierignore Loading commit data...
.prettierrc Loading commit data...
.python-version Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT Loading commit data...
Dockerfile Loading commit data...
Jenkinsfile Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
gulpfile.js Loading commit data...
package.json Loading commit data...
requirements-dev.in Loading commit data...
tox.ini Loading commit data...
yarn.lock Loading commit data...