Skip to content

Conversation

@johgusta
Copy link

Issue observed when position of tether element is
set with the css properties top, left, bottom or
right.

Before writing the css to the element's
style their values are parsed to floats, presumably
related to the check against the current css value.
This incorrectly converts '5px' > 5, which is an
illegal css value and is ignored by the browser.

Conversion to float would seem to be incorrect and
is removed.

Johan Gustafson added 2 commits April 14, 2016 09:25
Issue observed when position of tether element is
set with the css properties top, left, bottom or
right.

Before writing the css to the element's
style their values are parsed to floats, presumably
related to the check against the current css value.
This incorrectly converts '5px' > 5, which is an
illegal css value and is ignored by the browser.

Conversion to float would seem to be incorrect and
is removed.
@TrevorBurnham
Copy link
Contributor

Oof. Confirmed! Thanks for the fix.

@TrevorBurnham TrevorBurnham merged commit 08531a6 into shipshapecode:master Apr 14, 2016
@TrevorBurnham
Copy link
Contributor

@johgusta Out of curiosity, does this mean that you've found a situation where setting

optimizations: {
  gpu: false
}

is necessary?

@johgusta
Copy link
Author

We're using Drop.js to dynamically display popups and we sometimes experienced issues with blurred text. It would seem to be caused by how webkit handles subpixel antialiasing when rendering on the GPU, http://keithclark.co.uk/articles/gpu-text-rendering-in-webkit/.

@TrevorBurnham
Copy link
Contributor

Very interesting. That might be worth mentioning in the documentation.

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.

2 participants