CARVIEW |
Select Language
HTTP/2 200
date: Wed, 08 Oct 2025 18:05:36 GMT
content-type: text/html; charset=utf-8
cache-control: max-age=0, private, must-revalidate
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com marketplace-screenshots.githubusercontent.com/ copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
link: ; rel=preload; as=fetch; crossorigin=use-credentials
referrer-policy: no-referrer-when-downgrade
server-timing: issue_layout-fragment;desc="issue_layout fragment";dur=1563.286536,issue_conversation_content-fragment;desc="issue_conversation_content fragment";dur=455.156037,nginx;desc="NGINX";dur=1.315847,glb;desc="GLB";dur=139.965963
strict-transport-security: max-age=31536000; includeSubdomains; preload
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With, Accept,Accept-Encoding, Accept, X-Requested-With
x-content-type-options: nosniff
x-frame-options: deny
x-voltron-version: 266d7a9
x-xss-protection: 0
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=G2FnoMmSrQ%2FunGTJbM5S0cEGEiVXUDBZBeWT2R91jK4iwJ6cii88%2FJHnWgk9cPX3IErOuOncSTW1q3W4T5ZC1ZQtV8UfmuGNfHKoXkF6bgr445XXcvKDu%2FwXlA5Ta%2FxH6lkWemPMbFls5KYudc5QfnPR2oKmv7pQHDiT4R1XpV9rFnmPBLkzXrcMwxyy1YJi4lbD9yItdpzjgIDyvEYeD1SDswHmFZcj38vNx3P5%2BEkArX0LbEK%2FkW33pJNLVbRuvGe7wvIDoZCP7nf1HKGHIg%3D%3D--SoyP03O7AFk%2BtqQU--lqoP7DDAXIvCNVlwk%2BLTAw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.844347284.1759946734; Path=/; Domain=github.com; Expires=Thu, 08 Oct 2026 18:05:34 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 08 Oct 2026 18:05:34 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: BD68:21BB48:DAE3B:1052A8:68E6A7EE
[filter-effects] A proposal of the definition of the distance between two filter function lists · Issue #91 · w3c/fxtf-drafts · GitHub
No one assignedNo typeNo projectsNo milestoneNone yetNo branches or pull requests
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
https://w3c.github.io/web-animations/#paced-keyframe-spacing-mode
https://drafts.fxtf.org/filters/#interpolation-of-filters
This is related to the issue: w3c/csswg-drafts/issues/662.
In web-animations (@birtles), we need to calculate the distance between two filter function lists for paced spacing. Unfortunately, we don't have a definition of the distance between two filter function lists in [filter-effects], so I propose a way to calculate (which is very similar to the interpolation):
Compute Distance of <filter-function-list>s
- If both filters have a <filter-function-list> of same length without <url> and for each <filter-function> for which there is a corresponding item in each list,
- Compute the square distance of each <filter-function> pair following the rules in section Square Distance of <filter-function>s, and get the square root of the summation.
- If both filters have a <filter-function-list> of different length without <url> and for each <filter-function> for which there is a corresponding item in each list,
- Append the missing equivalent <filter-function>s from the longer list to the end of the shorter list.
The new added <filter-function>s must be initialized to their default values. - Compute the square distance of each <filter-function> pair following the rules in section Square Distance of <filter-function>s, and get the square root of the summation.
- Append the missing equivalent <filter-function>s from the longer list to the end of the shorter list.
- If one filter is none and the other is a <filter-function-list> without <url>
- Replace none with the corresponding of the other filter.
The new <filter-function>s must be initialized to their default values. - Compute the square distance of each <filter-function> pair following the rules in section Square Distance of <filter-function>s, and get the square root of their summation.
- Replace none with the corresponding of the other filter.
- Otherwise
- Cannot compute the distance, so return 0.0.
Square Distance of <filter-function>s
- <blur()>
- Get the absolute difference and then square it.
- <brightness()>
- <contrast()>
- <grayscale()>
- <invert()>
- <opacity()>
- <saturate()>
- <sepia()>
- Convert percentage values to numbers with 0% being relative to 0 and 100% relative to 1. Get the absolute difference and then square it
- <hue-rotate()>
- Get the absolute difference (unit: Radian), and the square it.
- <drop-shadow()>
- Compute the distance as <shadow list>s. (Note: we only support one shadow item).
- Compute the square distances of <x-offset>, <y-offset>, and <blur radius>.
- Compute the square distance of <color>
- Sum the above square distances.
- Compute the distance as <shadow list>s. (Note: we only support one shadow item).
Example
from { filter: 'grayscale(50%) opacity(100%) blur(5px) drop-shadow(10px 10px 1px blue)' }
to { filter: 'grayscale(75%) opacity(50%)' }
- The square distance of grayscale:
(0.75 - 0.5)^2
- The square distance of opacity:
(1 - 0.5)^2
- The square distance of blur:
(5 - 0)^2
- The square distance of drop-shadow:
10^2 + 10^2 + 1^2 + (1^2 + 1^2)
Note: blue is (0, 0, 100%, 100%), transparent is (0%, 0%, 0%, 0%) - The distance is
sqrt(the summation of the above square distances)
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
Issue actions
You can’t perform that action at this time.