[Bug 27384] CSSStyleSheet.insertRule's index argument should be optional with default 0

https://www.w3.org/Bugs/Public/show_bug.cgi?id=27384

--- Comment #8 from Boris Zbarsky <bzbarsky@mit.edu> ---
> Is there a tracking bug for that?

I don't know.

> so kicking @namespace and @charset out of CSSOM and implementations seems
> feasible.

I'm 99% sure there is stuff depending on existence of @namespace rules, at
least (e.g. editors built on top of browser engines).  Not web content, but not
things we really want to break nevertheless.  At least in my opinion.

> Are there other facets of insertRule interop that I'm missing?

I don't know.  There's clearly no set of decent exhaustive tests for this that
has been run cross-browser...

> it seems plausible that making insertRule(rule) with no index append
> instead of prepend would work

Maybe.  What should insertRule(rule, undefined) do?  Right now it prepends in
all UAs, right?

I mean, we could make that work differently from insertRule(rule) with the
second argument omitted, but that's not all that desirable; we should only do
that as a last resort.  Especially if we're only doing it as a workaround for
WebkitAnimationName existing, since the long-term goal is for that to not
exist.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 24 November 2014 15:17:23 UTC