[Webkit-unassigned] [Bug 198536] New: cssText for content pseudo-elements are missing quotes and invalid

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 4 10:22:27 PDT 2019


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

            Bug ID: 198536
           Summary: cssText for content pseudo-elements are missing quotes
                    and invalid
           Product: WebKit
           Version: Safari 12
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: clinton.ayres at gmail.com

Steps to reproduce:

// Note, assumes a style tag exists

const style = document.querySelector('style')[0];
style.sheet.insertRule('.test { content: "moo"; }');

// this is incorrect, missing quotes around _moo_
style.sheet.rules[0].cssText === ".test { content: moo; }";

style.sheet.insertRule(style.sheet.rules[0].cssText);

// this is actually correct because the cssText string above is invalid
style.sheet.rules[0].cssText === ".re-test {  }";

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190604/468ef45d/attachment-0001.html>


More information about the webkit-unassigned mailing list