Skip to content
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

Replace the old CSSValue API with Houdini's Typed OM #67

Closed
carlosame opened this issue Nov 23, 2022 · 1 comment · Fixed by #112
Closed

Replace the old CSSValue API with Houdini's Typed OM #67

carlosame opened this issue Nov 23, 2022 · 1 comment · Fixed by #112
Labels
enhancement New feature or request spec compliance Some behavior may not be spec-compliant
Milestone

Comments

@carlosame
Copy link
Member

EchoSVG still uses the old CSSValue API from the legacy Document Object Model CSS for CSS values. However, the CSSValue and related interfaces were deprecated long ago by the CSS Working Group.

One of the consequences is that document scripts that use CSSValue do not work in modern web browsers. For better compatibility with current browsers, which use Houdini's Typed OM for Object Model representations of CSS values, the old API should be replaced by the new one.

The relevant specification can be found at:

  1. Latest Working Draft: https://www.w3.org/TR/css-typed-om-1/

  2. Latest Editor's Draft: https://drafts.css-houdini.org/css-typed-om/

This requires a Typed OM Java binding to be written, for example as a new module in https://github.com/css4j/web-apis.

I have been working on this issue, and when writing the Java binding it is unavoidable to slightly depart from the Typed OM specification (for example regarding string values) but otherwise the task should be possible. As always, no promises that this is going to happen.

This issue is part of #39.

@carlosame carlosame added enhancement New feature or request spec compliance Some behavior may not be spec-compliant labels Nov 23, 2022
@carlosame carlosame added the won't fix This is not being fixed label Aug 2, 2023
@carlosame
Copy link
Member Author

Implementing Houdini's typed OM effectively means rewriting the CSS module and would require a significant amount of work. I'm closing this as not planned, although it could be reopened if there are more interested developers.

@carlosame carlosame closed this as not planned Won't fix, can't repro, duplicate, stale Aug 2, 2023
@carlosame carlosame removed the won't fix This is not being fixed label Aug 12, 2024
@carlosame carlosame added this to the 2.0 milestone Aug 12, 2024
@carlosame carlosame reopened this Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request spec compliance Some behavior may not be spec-compliant
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant