- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 15 Nov 2023 17:54:08 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[cssom-view-1] Further restrictions on resolved values for insets?`, and agreed to the following: * `RESOLVED: for sticky pos, getComputedStyle will return computed values for insets` <details><summary>The full IRC log of that discussion</summary> <bramus> iank_: i’ll outline how we got here … were investigating bugs when you acces trbl from gCS. these return used values<br> <bramus> … for pos:rel things are broken in x-compatible ways<br> <bramus> … but also if there is a new positioning mode ever: do we want to continue returning offsets from gCS?<br> <bramus> … added use counter for pos:sticky and returning offsets is very rare<br> <bramus> … want to check if we restricting when to return used insets<br> <bramus> … as for sticky, everyone has bugs about this<br> <emilio> q+<br> <bramus> … are ppl interested in this?<br> <astearns> ack emilio<br> <bramus> emilio: do you know how feasible to ??? relative?<br> <bramus> iank_: need to investigate<br> <astearns> s/???/also restrict/<br> <bramus> … usecounters are relatively high but i dont know how they are actually uses<br> <bramus> … for sticky (with % or calc) it is 0.0001% of page loads (very low)<br> <bramus> … for relative usecounter is sitting at 20%-ish<br> <ydaniv> q+<br> <bramus> emilio: in general the more computed styles that gCS returns the better<br> <bramus> … this is pretty obvious for non-abs pos<br> <bramus> … so sounds good in general, but feels a bit weird to treat sticky/relative differently<br> <bramus> iank_: today, relative only returns good values in chromium if you are non-inline<br> <bramus> … all sorts of weirdness ???<br> <bramus> … we may end up in state where sticky and rel need to be treated differently<br> <astearns> ack ydaniv<br> <bramus> … but sticky should be web compatible<br> <bramus> ydaniv: I needed sth for sticky: to get the static offsets of an element that could be stuck. currently impossible. had to force to static pos and read the offsets and then put it back to sticky<br> <bramus> iank_: but you are not using gCS there?<br> <bramus> ydaniv: not for ???<br> <bramus> iank_: yes, just talking about gCS for trbl<br> <ydaniv> s/???/offsetTop offsetBottom etc./<br> <bramus> astearns: I agree with emilio about the more we can agree computed values is correct. risk is that if authors have a script to relies on ??? but that seems unlikely to me.<br> <bramus> iank_: only resolution I am comfortable with right now is about sticky<br> <astearns> s/???/relative behavior that they want to apply to sticky elements./<br> <bramus> … only change if your pos;sticky with a % top, gCS would no longer a return a pixel but the percentage<br> <bramus> astearns: PROPOSED RESOLUTION: for sticky pos, getComputedStyle will return computed values for insets<br> <bramus> … concerns or objections?<br> <bramus> RESOLVED: for sticky pos, getComputedStyle will return computed values for insets<br> <bramus> iank_: thanks!<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9267#issuecomment-1812998208 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 15 November 2023 17:54:10 UTC