Emilio Cobos Álvarez

Results 777 comments of Emilio Cobos Álvarez

(Not that I'm particularly fond of it, just dumping thoughts :))

I think a more consistent naming and API with the existing CSSOM interfaces for inserting / removing rules would be good... CSSOM interfaces have: * `CSSStyleSheet.cssRules` * `CSSStyleSheet.insertRule()` * `CSSStyleSheet.deleteRule()`...

Given `replace()` allows `@import` now (right?) there's no reason to not allow `insertRule` with the same semantics, unless I'm missing something.

Given the discussion on the blink-dev mailing-list we should discuss what the error handling mechanism here should look like. I've asked @astearns to put it on the agenda for the...

Oh, for reference the blink-dev thread is: https://groups.google.com/a/chromium.org/d/msg/blink-dev/RKG8oxp22RY/fdFnG1rGCgAJ

Yes: ```js document.styleSheets[0].insertRule("@foobar") // SyntaxError: An invalid or illegal string was specified ```

More generally, `alternate` is only useful to determine the initial `disabled` state. So if you can specify `disabled` then it's not great. There's another quirk of regular sheets that isn't...

It doesn't help that Blink's / WebKit's handling of alternate stylesheets is so broken though, see https://github.com/whatwg/html/issues/3840.

It seems a bit weird because `title` has no effect in regular Shadow DOM stylesheets already, see https://github.com/w3c/csswg-drafts/issues/2646... I think `title` and `alternate` should just be removed, and we should...

I could probably live with that too, if people think it's fine to expose something like `'src' in document.body.style`.