gecko-dev/devtools
Nicolas Chevobbe 7615c7c673 Bug 1583641 - [devtools] Handle pseudo-element rules of selected node in Inactive CSS. r=devtools-reviewers,ochameau.
The inactive-property-helper can sometimes be called for properties inside rules
that match pseudo-elements, even though the node being passed is not the pseudo-
element itself.

This happens because the Rules view has a feature whereby selecting, say, a <div>
will show its rules, but also any pseudo-element rules that may be applied that
result in the creation of a pseudo-element inside of it.
So if you have div::before { content: "" } in CSS, then selecting that div will
also show this rule in the Rules view.

This patch adds a check for this case, and when it happens, walks the DOM to
find the right pseudo-element, and then gets its style.

Differential Revision: https://phabricator.services.mozilla.com/D65720
2024-09-12 09:25:54 +00:00
..
client Bug 1583641 - [devtools] Handle pseudo-element rules of selected node in Inactive CSS. r=devtools-reviewers,ochameau. 2024-09-12 09:25:54 +00:00
docs Bug 1917163 - Update rstcheck to 6.2.4, fix resulting errors in documents, r=Standard8 2024-09-06 15:04:10 +00:00
perfdocs
platform Bug 1859873 - batch 13 xpcshell.ini -> .toml. r=aryx,devtools-reviewers,profiler-reviewers 2023-11-21 12:32:50 +00:00
server Bug 1583641 - [devtools] Handle pseudo-element rules of selected node in Inactive CSS. r=devtools-reviewers,ochameau. 2024-09-12 09:25:54 +00:00
shared Bug 1916533 - [devtools] Always use native codepath when recording JS traces to the profiler output. r=devtools-reviewers,nchevobbe 2024-09-04 11:49:41 +00:00
startup Bug 1651518 - [devtools] Ensure spawning DistinctSystemPrincipalLoader.sys.mjs only once. r=devtools-reviewers,nchevobbe 2024-05-27 09:53:54 +00:00
.eslintrc.js Bug 1864896: Enable unused argument lint rule. r=Standard8,perftest-reviewers,geckoview-reviewers,extension-reviewers,credential-management-reviewers,devtools-reviewers,nchevobbe,robwu,sparky,issammani,sgalich,owlish,migration-reviewers,mconley 2024-03-21 08:50:00 +00:00
.eslintrc.xpcshell.js
CODE_OF_CONDUCT.md
moz.build Bug 1900200 - Move MOZ_DEVTOOLS from confvars.sh to moz.configure r=glandium 2024-06-15 22:27:11 +00:00
rename.py
templates.mozbuild Bug 1677775 - reformat .mozbuild files with Black r=linter-reviewers,geckoview-reviewers,firefox-build-system-reviewers,ahal,glandium,owlish,sylvestre 2023-12-08 04:26:45 +00:00
tsconfig.json