You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-2Lines changed: 15 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ Browser DevTools is excellent at inspecting one element, but finding why two sim
21
21
-**Difference-first table**: changed properties are shown by default, with a `Show all` toggle for the full computed style list.
22
22
-**Property search**: filter CSS properties by name while reviewing the comparison.
23
23
-**One-click copy**: click a value cell to copy `property: value;`.
24
+
-**Native page hover highlight**: hover a source/target DOM line in the diff table to highlight that DOM node in the inspected page, and remove the highlight immediately when the pointer leaves.
24
25
-**Cross-window/tab sync**: selected element data is broadcast to other open windows/tabs, which helps compare page states side by side.
25
26
-**Localized UI**: includes English and Simplified Chinese browser i18n messages.
26
27
@@ -31,15 +32,27 @@ Browser DevTools is excellent at inspecting one element, but finding why two sim
31
32
32
33
Download the packaged zip from [Releases](https://github.com/jevin98/css-diff-devtools/releases), then install or load it manually from your browser's extensions page.
33
34
35
+
## Chrome Debugger Permission
36
+
37
+
CSS-Diff requests Chrome's `debugger` permission so the diff table can use the Chrome DevTools Protocol `Overlay.highlightNode` and `Overlay.hideHighlight` commands. This is what makes DOM line hover highlighting appear and disappear immediately in the inspected page.
38
+
39
+
Chrome treats this permission as sensitive:
40
+
41
+
- Chrome may show a permission warning when the extension is installed or updated.
42
+
- Chrome may show a browser-level notice that CSS-Diff is debugging the current page while the extension is attached.
43
+
- CSS-Diff uses this permission only for temporary DOM hover highlighting from the DevTools sidebar.
44
+
- If the permission is denied, CSS comparison still works, but native hover highlighting in the inspected page is unavailable.
45
+
34
46
## Usage
35
47
36
48
1. Open the page you want to inspect.
37
49
2. Open DevTools and switch to the Elements panel.
38
50
3. Open the `CSS-Diff` sidebar.
39
51
4. Select the first DOM element, then select the second DOM element.
40
52
5. Review the highlighted differences, search for a property, or enable `Show all`.
41
-
6. Click a left/right value cell to copy the CSS declaration.
42
-
7. Click `Clear Selection` to start another comparison.
53
+
6. Hover a source/target DOM line in the diff table to highlight that DOM node in the inspected page.
54
+
7. Click a left/right value cell to copy the CSS declaration.
55
+
8. Click `Clear Selection` to start another comparison.
0 commit comments