-
Notifications
You must be signed in to change notification settings - Fork 715
[cssom] Figure out what to do with non-standard CSSStyleSheet methods in WebKit / Blink #3814
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
Comments
They already have Blink use counters: rules - 0.97% Usage is likely too high for removal. |
Yeah, those numbers are too high, absent some convincing evidence that it's all some detection library and not true usage. I am curious about Firefox not getting compat bugs tho. |
The CSS Working Group just discussed The full IRC log of that discussion<dael> Topic: Figure out what to do with non-standard CSSStyleSheet methods in WebKit / Blink<dael> github: https://github.com//issues/3814 <dael> Rossen_: Anyone to take this? <emilio> Given the comments, I'll just spec them <dael> TabAtkins: Based on eric's numbers, unless someone can make argument that our numbers aren't actual usage they're too high to drop. .rules is almost a full % of page loads <dael> TabAtkins: If not removing, should look to add. But emilio says no one cares on their side. I don't know best thing, but removing isn't in the cards for us <dael> AmeliaBR: Clarify impl of these they're aliases for standard features? <dael> TabAtkins: There's one that's slightly different, but yes <dael> dbaron: Will impl these in browsers that don't have them break? <dbaron> s/break/break feature detection/ <dael> TabAtkins: Don't know. I jsut have use counter data, not information on how they're actually used. But numbers os use is too high <dael> dbaron: Seems weird b/c I don't recall pages broken due to not having them <dael> TabAtkins: Feature detection I didn't mean tell you're in blink but something that iterates over a bunch of properties to see what exists. That's caused high use counters in the past. THat might be the case at which point we might remove, but as of right now can't remove <dael> Rossen_: Other action if we don't remove? Add to CSSOM? <dael> TabAtkins: Not right now. emilio asked if should or should remove <dael> Rossen_: Current data says cannot remove unless you want an action to see if you can get deeper into data to figure out if it's meaningful or triggering from aux. detection rules. Up to you <dael> TabAtkins: Put it for triage. I'll get back to you <dael> Rossen_: Reasonable. |
Just got a webcompat issue due to this, I'll just implement these in Gecko and spec them. https://bugzilla.mozilla.org/show_bug.cgi?id=1545823 |
The CSS WG just discussed this: RESOLVED: Spec these methods, mark them deprecated, add ADVISEMENT to authors to not teach or use
|
…ssion and put it where it'll be noticed. #3814
WebKit / Blink implement some legacy Microsoft CSSOM functions on CSSStyleSheet, which if I'm not wrong come from Microsoft:
https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/css/css_style_sheet.idl?l=37-40&rcl=6dc816e543555790648ec5af1ca827431a7d5807
rules
just callscssRules
.removeRule
just callsdeleteRule
.addRule
just string-concats a selector and a style block and callsinsertRule
.It's not too hard to add them to Gecko, but
addRule
in particular seems rather hacky / inconsistent with the rest of the APIs. We haven't seen any compat issue due to not having them (but I just got bit by it when trying to test something).Would there be any chance on collecting data and potentially removing them? Or is all hope lost / is not worth the churn and should I just put them in the spec?
The text was updated successfully, but these errors were encountered: