[Webkit-unassigned] [Bug 68452] Web Inspector: Feature request: onCSSSetProperty/onCSSRemoveProperty API

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 20 11:02:57 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=68452


Nikita Vasilyev <me at elv1s.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1




--- Comment #1 from Nikita Vasilyev <me at elv1s.ru>  2011-09-20 11:02:58 PST ---
At Yandex, we include just one stylesheet on the page. We have few hundreds of stylesheets; it's would be too slow to include all of them on the page. So we concatenate them on the server. My plan is to extend onCSSSetProperty/onCSSRemoveProperty methods to send some kind of CSS patch object to the server:

{
  action: 'change',
  url: 'http://foo.dev/all.css',
  selectorIndex: 15,
  selectorText: '.foo .bar',
  change: {
    name: 'color',
    value: 'blue',
    prevValue: 'green',
    important: false,
    prevImportant: true
  }
}

Example that includes media rules:

{
  action: 'change',
  url: 'http://foo.dev/all.css',
  selectorIndex: 42,
  selectorText: '@media screen',
  change: {
    selectorIndex: 2,
    selectorText: '.foo .bar',
    change: {
      name: 'color',
      value: 'blue',
      prevValue: 'green',
      important: false,
      prevImportant: true
    }
  }
}


On the server I run Node.js with CSSOM (https://github.com/NV/CSSOM). I find CSS file that I need and apply the CSS patch.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list