Re: [csswg-drafts] [cssom] There should be a way to get Character Position of the Stylesheet Elements (#10480)

So engines do have this information but use-cases seem fairly limited to DevTools-style applications...

Also, this doesn't play well at all with cssom, this only works for untouched stylesheets...  What Gecko does if you do `.insertRule` or so is to basically have a [flag](https://searchfox.org/mozilla-central/rev/754074e05178e017ef6c3d8e30428ffa8f1b794d/layout/style/StyleSheet.h#223) that we use to fall back to CSSOM for editing, and that doesn't seem a particularly clean solution to expose to the web...

So I tend to wontfix this, but curious about other implementations and how they deal with this? @lilles

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


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

Received on Tuesday, 15 October 2024 16:22:40 UTC