Skip to content

Filters should not paint outside the filter(primitive)region #70

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

Open
weisJ opened this issue Mar 7, 2024 · 0 comments
Open

Filters should not paint outside the filter(primitive)region #70

weisJ opened this issue Mar 7, 2024 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@weisJ
Copy link
Owner

weisJ commented Mar 7, 2024

<svg xmlns="http://www.w3.org/2000/svg" width="500" height="500"
	viewBox="0 0 100 100">
	<defs>
		<filter id="a" width="100%" height="100%" x="0%" y="0%"
			filterUnits="objectBoundingBox">
			<feOffset dx="25" dy="25" />
            <feGaussianBlur stdDeviation="5" />
		</filter>
	</defs>
	<rect fill="orange" x="25" y="25" width="50" height="50" />
	<rect fill="red" x="25" y="25" width="50" height="50"
		filter="url(#a)" />
</svg>

Should result in a round blurred red dot in the lower right of the orange square. Currently the red part is only round on the top left as the translated red square is still painted outside the filter primitive region.

@weisJ weisJ added the bug Something isn't working label Mar 7, 2024
weisJ added a commit that referenced this issue Mar 8, 2024
@weisJ weisJ added the good first issue Good for newcomers label Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant