Skip to content

Commit

Permalink
Add SVG feblend to validation (#35436)
Browse files Browse the repository at this point in the history
  • Loading branch information
processprocess committed Jul 28, 2021
1 parent 2d0c097 commit 09135a9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
7 changes: 7 additions & 0 deletions extensions/amp-story/1.0/test/validator-amp-story-svg.html
Expand Up @@ -54,6 +54,13 @@
</amp-story-grid-layer>
<amp-story-cta-layer>
<svg height="100" width="100">
<defs>
<filter id="spotlight">
<feFlood result="flood" x="0" y="0" width="100%" height="100%"
flood-color="blue" flood-opacity="1"/>
<feBlend in="SourceGraphic" in2="flood" mode="multiply"/>
</filter>
</defs>
<circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" />
</svg>
</amp-story-page-attachment>
Expand Down
9 changes: 8 additions & 1 deletion extensions/amp-story/1.0/test/validator-amp-story-svg.out
Expand Up @@ -55,10 +55,17 @@ PASS
| </amp-story-grid-layer>
| <amp-story-cta-layer>
| <svg height="100" width="100">
| <defs>
| <filter id="spotlight">
| <feFlood result="flood" x="0" y="0" width="100%" height="100%"
| flood-color="blue" flood-opacity="1"/>
| <feBlend in="SourceGraphic" in2="flood" mode="multiply"/>
| </filter>
| </defs>
| <circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" />
| </svg>
| </amp-story-page-attachment>
| </amp-story-page>
| </amp-story>
| </body>
| </html>
| </html>
3 changes: 3 additions & 0 deletions extensions/amp-story/validator-amp-story.protoascii
Expand Up @@ -617,6 +617,7 @@ descendant_tag_list: {
tag: "EM"
tag: "FECOLORMATRIX"
tag: "FECOMPOSITE"
tag: "FEBLEND"
tag: "FEFLOOD"
tag: "FEGAUSSIANBLUR"
tag: "FEMERGE"
Expand Down Expand Up @@ -755,6 +756,7 @@ descendant_tag_list: {
tag: "EM"
tag: "FECOLORMATRIX"
tag: "FECOMPOSITE"
tag: "FEBLEND"
tag: "FEFLOOD"
tag: "FEGAUSSIANBLUR"
tag: "FEMERGE"
Expand Down Expand Up @@ -1130,6 +1132,7 @@ descendant_tag_list {
tag: "EM"
tag: "FECOLORMATRIX"
tag: "FECOMPOSITE"
tag: "FEBLEND"
tag: "FEFLOOD"
tag: "FEGAUSSIANBLUR"
tag: "FEMERGE"
Expand Down

0 comments on commit 09135a9

Please sign in to comment.