NEW 271806
Web Inspector: In inspector's style detalis panel, after editing style that resides in HTML, rules' source line numbers misalign
https://bugs.webkit.org/show_bug.cgi?id=271806
Summary Web Inspector: In inspector's style detalis panel, after editing style that r...
Qianlang Chen
Reported 2024-03-27 16:09:02 PDT
Created attachment 470628 [details] 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.
Attachments
Sample test case: Open for instructions (478 bytes, text/html)
2024-03-27 16:09 PDT, Qianlang Chen
no flags
Radar WebKit Bug Importer
Comment 1 2024-03-27 16:09:19 PDT
Note You need to log in before you can comment on or make changes to this bug.