Files
sousa-gecko/devtools/client/inspector/rules/test
Nicolas Chevobbe 3a3bdf1417 Bug 2048278 - [devtools] Use field-sizing: content for inplace editor autosizing. r=devtools-reviewers,ochameau.
This way we can remove the methods we used to update the size of the input based
on its content.
We take this as an opportunity to change the way we compute a single char dimension,
which is used to offset the autocomplete popup so it aligns with the keyword being
typed. We used to create a span, put a `x` in it, add it to the document, hidden,
and then get its width and height.
This is now replaced by setting custom properties for width and height, which
we assign respectively a value of `1ch` and `1lh`, so we get the numbers we need.
Because we're retrieving those value via the input computed style, we need to
register the property and set a proper `<length>` syntax so we can get their
px values.

Differential Revision: https://phabricator.services.mozilla.com/D310274
2026-07-07 07:43:45 +00:00
..