[Webkit-unassigned] [Bug 22429] document.styleSheets collection ignores media=presentation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 15 13:52:47 PST 2008


rwlbuis at gmail.com changed:

           What    |Removed                     |Added
  Attachment #26014|0                           |1
        is obsolete|                            |
  Attachment #26031|                            |review?
               Flag|                            |

------- Comment #5 from rwlbuis at gmail.com  2008-12-15 13:52 PDT -------
Created an attachment (id=26031)
 --> (https://bugs.webkit.org/attachment.cgi?id=26031&action=view)
Different approach

This patch simply loads all sheets regardless of the media attribute. However
addRulesFromSheet still blocks the rules in this sheet. The testcase is a start
but should also verify that the sheet gets loaded but does not apply for media
attributes other than all, screen and print. I am not sure yet whether those
should be multipe testcases. It is a bit hard for me to judge efficiency,
obviously it is slower when there are sheets with media other than all, screen
or print but I think that is uncommon. A more efficient solution would be to
make ::styleSheets get all sheets on demand but I guess that would involve it
waiting for all sheets to load before returning.


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

More information about the webkit-unassigned mailing list