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

Safari feColorMatrix doesn't work with external a files #34

Open
alex-page opened this issue Apr 11, 2018 · 0 comments
Open

Safari feColorMatrix doesn't work with external a files #34

alex-page opened this issue Apr 11, 2018 · 0 comments
Labels

Comments

@alex-page
Copy link

alex-page commented Apr 11, 2018

This issue was found in Safari 11.1 and Mac OS Sierra 10.2.6

This example shows a red box three times:

  • Box one adds a SVG filter using css to embedd a svg
  • Box two adds a SVG filter using an external svg file with css pointing to file and ID
  • Box three is the default state

When using a file ( filters.svg ) with the ID's of the filters you cannot do this CSS in safari:

.filter {
  filter: url( "filters.svg#deuteranopia" );
}

You have to embed the svg into the HTML and use this in CSS:

.filter {
  filter: url( "#deuteranopia" );
}
@alex-page alex-page changed the title SVG feColorMatrix doesn't work in Safari when pulled in with a file Safari feColorMatrix doesn't work in Safari with external a files Apr 11, 2018
@alex-page alex-page changed the title Safari feColorMatrix doesn't work in Safari with external a files Safari feColorMatrix doesn't work with external a files Apr 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants