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

assigned style vs computed style #11

Open
travisleithead opened this issue Mar 19, 2021 · 2 comments
Open

assigned style vs computed style #11

travisleithead opened this issue Mar 19, 2021 · 2 comments

Comments

@travisleithead
Copy link
Member

It may be good to differentiate between CSS properties assigned by the author, and whether those properties were applied in any way. For example, to support testing of what properties are/will be applied, and which are ignored by a given implementation.

@travisleithead
Copy link
Member Author

For the most part, we can't identify too many scenarios where scraping the applied styles actually matter when you have full metrics information. One use case not handled is feature-detection of what styles are supported, and that should be considered.

@travisleithead
Copy link
Member Author

travisleithead commented Feb 2, 2022

With the addition of a FormattedTextStyle object that parses CSS, presumably only for this scenario, we could have non-relevant CSS dropped at parsing time allowing introspection of the results to help determine what CSS is supported by the implementation?

See PR #39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant