Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSanity strips out text-decoration on Chrome 57+ and Firefox 36+ #20

Open
samlh opened this issue Jan 24, 2020 · 0 comments · May be fixed by #21
Open

JSanity strips out text-decoration on Chrome 57+ and Firefox 36+ #20

samlh opened this issue Jan 24, 2020 · 0 comments · May be fixed by #21

Comments

@samlh
Copy link

samlh commented Jan 24, 2020

JSanity strips out text-decoration on Chrome 57+ and Firefox 36+
After those versions, the browsers switched text-decoration to be a shorthand for:

  • text-decoration-line
  • text-decoration-style
  • text-decoration-color
  • text-decoration-thickness

The sanitizer works by reading the computed values, so it sees these new properties, doesn't recognize them, and sets them to null.
Depending on the browser, this affects the shorthand property text-decoration differently, but in effect, it removes the property.

See also: https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration

samlh added a commit to samlh/JSanity that referenced this issue Jan 24, 2020
@samlh samlh linked a pull request Jan 24, 2020 that will close this issue
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 a pull request may close this issue.

1 participant