[Webkit-unassigned] [Bug 273122] New: Content Script CSS overriding style attributes inconsistent

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 23 06:25:15 PDT 2024


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

            Bug ID: 273122
           Summary: Content Script CSS overriding style attributes
                    inconsistent
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Extensions
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: carlosj-webkit-bugzilla at jeurissen.co
                CC: timothy at apple.com, webkit-bug-importer at group.apple.com

When pages use inline style attributes in their HTML. The override works differently depending on the important flag being set.

If the extension contentScript styles use !important, it also overrides style attributes which have !important set. However when !important is missing, it does not override style attributes in general.

Is this intended behaviour? As it is different from Safari 17 and other browsers.

Sample extension is available here:
https://github.com/carlosjeurissen/webext-tech-demo-extensions/tree/main/issues/safari-content-script-css-attribute/sample-extension

-- 
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/20240423/222c3c78/attachment.htm>


More information about the webkit-unassigned mailing list