mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
added a correct way to use svg filters but it does not work from file: in Chrome...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
50dbb406ea
commit
62546edf36
@ -155,8 +155,9 @@ body {
|
||||
filter: contrast(0.8) brightness(0.6) contrast(1.2);
|
||||
}
|
||||
.image-edge-detect {
|
||||
-webkit-filter: url(#EdgeDetect);
|
||||
filter: url(#EdgeDetect);
|
||||
/* XXX this does not work in chrome + local file... */
|
||||
/*filter: url(filters.svg#EdgeDetect);*/
|
||||
}
|
||||
|
||||
|
||||
|
||||
9
ui (gen4)/css/filters.svg
Executable file
9
ui (gen4)/css/filters.svg
Executable file
@ -0,0 +1,9 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="0%" height="0%" class="svg-filters">
|
||||
|
||||
<!-- edge detect -->
|
||||
<filter id="EdgeDetect">
|
||||
<feConvolveMatrix order="3 3" preserveAlpha="true" kernelMatrix="-1 -1 -1 -1 8 -1 -1 -1 -1"/>
|
||||
</filter>
|
||||
|
||||
</svg>
|
||||
<!-- vim:set sw=4 ts=4 : -->
|
||||
|
After Width: | Height: | Size: 300 B |
@ -93,16 +93,18 @@ requirejs('ui')
|
||||
<body>
|
||||
|
||||
|
||||
<div class="svg-filters">
|
||||
<!--
|
||||
XXX this lives in css/filters.svg but Chrome refuses to reference
|
||||
it's internals from the file: protocol...
|
||||
-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="0%" height="0%" class="svg-filters">
|
||||
|
||||
<!-- edge detect -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="0%" height="0%">
|
||||
<!-- edge detect -->
|
||||
<filter id="EdgeDetect">
|
||||
<feConvolveMatrix order="3 3" preserveAlpha="true" kernelMatrix="-1 -1 -1 -1 8 -1 -1 -1 -1"/>
|
||||
</filter>
|
||||
</svg>
|
||||
|
||||
</div>
|
||||
</svg>
|
||||
|
||||
|
||||
<!-- for viewer structure doc see: ribbons.js... -->
|
||||
|
||||
@ -100,16 +100,20 @@ requirejs(['ui'])
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="svg-filters">
|
||||
<!--
|
||||
XXX this lives in css/filters.svg but Chrome refuses to reference
|
||||
it's internals from the file: protocol...
|
||||
-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="0%" height="0%" class="svg-filters">
|
||||
|
||||
<!-- edge detect -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="0%" height="0%">
|
||||
<!-- edge detect -->
|
||||
<filter id="EdgeDetect">
|
||||
<feConvolveMatrix order="3 3" preserveAlpha="true" kernelMatrix="-1 -1 -1 -1 8 -1 -1 -1 -1"/>
|
||||
</filter>
|
||||
|
||||
</svg>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- for viewer structure doc see: ribbons.js... -->
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user