Re: [csswg-drafts] [cssom] getComputedStyle and/or computedStyleMap to return authored value (#10002)

> In short, getting the specified value is very far from enough. 

I’m not sure I agree with this premise. For the use-cases I am thinking of, getting the specified value _is_ sufficient:

- I want to know that it was `90vh` instead of the resulting `1234px`
- I want to know that the specified value was `var(--color)` instead of `rgb(0, 128, 0)`
- I want to know that it was `calc(100% - 100% + 10px)` that was used instead of `10px` _(or the intermediary `calc(0% + 10px)`)_

The further processing of the specified value can be offloaded to another future API or a userland library. E.g. for `calc()` specifically [the simplification process is well described](https://drafts.csswg.org/css-values/#calc-simplification) so you’d be able to get that `calc(0% + 10px)` value.

-- 
GitHub Notification of comment by bramus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10002#issuecomment-2175826840 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 18 June 2024 11:03:01 UTC