Skip to content

Commit

Permalink
Allow SVG feDropShadow element (Filter Effects)
Browse files Browse the repository at this point in the history
Fixes #880
  • Loading branch information
sideshowbarker committed Feb 25, 2020
1 parent 89a1221 commit 6d9ef21
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ changes to any options/interfaces the checker exposes for developers.
NN XXX NNNN
- Disallow `accept-charset` values other than `UTF-8`
- Disallow object[typemustmatch]
- Allow SVG feDropShadow element (from Filter Effects spec)
- Allow `loading` attribute for the `img` element (lazy loading)
- Allow `rel=modulepreload` for the `link` element
- Allow `integrity` attribute on link[rel=preload|modulepreload]
Expand Down
21 changes: 21 additions & 0 deletions schema/svg11/svg-filter.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ grammar {
| feMorphology
| feSpecularLighting
| feTurbulence
| feDropShadow
a:documentation [
"\x{a}" ~
" feConvolveMatrix: Filter Effect Convolve Matrix Element\x{a}" ~
Expand Down Expand Up @@ -215,4 +216,24 @@ grammar {
attribute pointsAtZ { Number.datatype }?,
attribute specularExponent { Number.datatype }?,
attribute limitingConeAngle { Number.datatype }?
a:documentation [
"\x{a}" ~
" feDropShadow: Filter Effects Drop Shadow\x{a}" ~
" "
]
SVG.feDropShadow.content = (animate | set)*
SVG.feDropShadow.content &= SVG.Description.class*
SVG.feDropShadow.content &= SVG.Script.class*
feDropShadow =
element feDropShadow {
attlist.feDropShadow, SVG.feDropShadow.content
}
attlist.feDropShadow &=
SVG.Core.attrib,
SVG.Presentation.attrib,
SVG.Style.attrib,
SVG.FilterPrimitiveWithIn.attrib,
attribute stdDeviation { NumberOptionalNumber.datatype }?,
attribute dx { Number.datatype }?,
attribute dy { Number.datatype }?
}

0 comments on commit 6d9ef21

Please sign in to comment.