Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
CSS Filter: allow clip-path and some related functions.
Browse files Browse the repository at this point in the history
"clip-path": Used to clip an element via inside of polygon.
https://developer.mozilla.org/en-US/docs/Web/CSS/clip-path

"circle", "ellipse", "line", "polygon", "polyline": Functions used to
create SVG shapes. Same uses as `rect`.
https://developer.mozilla.org/en-US/docs/Web/SVG/Element/polygon
  • Loading branch information
GusGold authored and spladug committed Mar 16, 2015
1 parent d3919b9 commit 5641565
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions r2/r2/lib/cssfilter.py
Expand Up @@ -139,6 +139,7 @@
"caption-side",
"clear",
"clip",
"clip-path",
"color",
"content",
"counter-increment",
Expand Down Expand Up @@ -292,12 +293,15 @@
SAFE_FUNCTIONS = {
"attr",
"calc",
"circle",
"counter",
"counters",
"cubic-bezier",
"ellipse",
"hsl",
"hsla",
"lang",
"line",
"linear-gradient",
"matrix",
"matrix3d",
Expand All @@ -307,6 +311,8 @@
"nth-last-of-type",
"nth-of-type",
"perspective",
"polygon",
"polyline",
"radial-gradient",
"rect",
"repeating-linear-gradient",
Expand Down

0 comments on commit 5641565

Please sign in to comment.