- From: Nick G via GitHub <sysbot+gh@w3.org>
- Date: Mon, 26 Feb 2024 19:13:19 +0000
- To: public-css-archive@w3.org
NickGard has just created a new issue for https://github.com/w3c/csswg-drafts: == [cssom] getComputedStyle and/or computedStyleMap to return authored value == Hello, I'm an engineer at Webflow, a tool that helps users build websites without having to know all of the CSS/HTML/JS that goes into it. I'm working on part of the tool that checks for accessibility issues and a problem I've run into recently is that I can't get the authored styles for font-size using either `getComputedStyle` or `computedStyleMap`. I'd like to know that the user hasn't set the font-size for an element in `px` units, or that they're at least partially set with `rem` units, like `calc(2vw + 0.5rem)`. When I use the CSSOM APIs to check the style, I only get the [resolved](https://www.w3.org/TR/cssom-1/#resolved-values) size in `px` units. Is there any way to change this to report the user-authored value? Or can we create another API to do that, like `getAuthoredStyle`? Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10002 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 26 February 2024 19:13:20 UTC