[Webkit-unassigned] [Bug 271806] New: Web Inspector: In inspector's style detalis panel, after editing style that resides in HTML, rules' source line numbers misalign

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 27 16:09:02 PDT 2024


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

            Bug ID: 271806
           Summary: Web Inspector: In inspector's style detalis panel,
                    after editing style that resides in HTML, rules'
                    source line numbers misalign
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: qianlangchen at apple.com
                CC: inspector-bugzilla-changes at group.apple.com

Created attachment 470628

  --> https://bugs.webkit.org/attachment.cgi?id=470628&action=review

Sample test case: Open for instructions

Open attached sample HTML page for instructions to reproduce.

In summary, if there are two style rules originated from an HTML's <style> element and having source line numbers A and B, and you edit style A by appending X more lines of style properties to it, then the source line numbers of the two rules become A and (B + X + 1). (Plus 1 because the updated style text always ends in a blank line for unknown reasons.)

This would the correct behavior if the style rules were originated from a CSS source rather than HTML, as the inspector currently supports live-updates CSS sources with edits from the style details panel. However, there's no similar live-updates for styles from HTML, so despite the line numbers are updated, they're not reflected in the Sources tab.

-- 
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/20240327/bd8e1899/attachment-0001.htm>


More information about the webkit-unassigned mailing list