Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

stylesheet helpers API

#69

Could we get the stylesheets relevant parts separated out from "dom_loaded.js" in their own place, maybe "stylesheet.js" ?

I am talking about all these:

getSheetElements()
getSheetObject()
getStyle()
getSheet()
getRules()
addImports()
addRule()
RemoveRule()
injectRules()

plus adding missing/needed API to have a complete set of tools to directly handle stylesheets rules.

I believe in some circumstance this will be the preferred way to produce changes to multiple elements in a faster more responsive way. We let the browser do all the job for us. I said in some circumstance but thinking about it maybe it would be better in performance also for less complex operations. Maybe some easy way to test this ?

I do not have access to all those Windows developer goodies :)

Reported by Diego Perini · June 8th, 2010 @ 05:22 PM

State: new
Milestone: none
Assigned to: John-David Dalton John-David Dalton

Activity

  1. Radoslav Stankov
    Radoslav Stankov

    +1

    I think stylesheets deserve it own module, like fuse().getSheetObject(...).changeRule() and so, because you could do a powerful things with direct css classes manipulation. And interesting most of the other libs don't take advantage of this. Except maybe YUI, which have very nice stylesheet API.

    June 9th, 2010 @ 03:22 AM

  2. John-David Dalton
    John-David Dalton
    • Tag changed from stylesheet to enhancement, stylesheet

    June 9th, 2010 @ 10:23 AM

  3. John-David Dalton
    John-David Dalton
    • Milestone cleared.
    • Assigned user cleared.

    June 9th, 2010 @ 01:44 PM

  4. Joe Gornick
    Joe Gornick
    • Assigned user set to John-David Dalton
    • Milestone order changed from 0 to 0

    September 29th, 2010 @ 09:47 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.