diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2022-09-20 21:06:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-20 21:06:39 -0400 |
commit | 480869c3d1d820b344d23989d2deae64a594869e (patch) | |
tree | bc1d0c5143b71e312322e3dc851cb2c98050b8c6 /ext/settings.html | |
parent | ac373a67944a3241f96091b2bcd94f1b337a3940 (diff) |
Exclude documentElement from zoom calculation (#2227)
* Exclude documentElement from zoom calculation
* Add an option
* Refactor zoom coordinate conversion functions
* Convert zoom coordinates for text sources
* Rename variable
* Convert rect coordinate spaces
* Handle shadow DOM
Diffstat (limited to 'ext/settings.html')
-rw-r--r-- | ext/settings.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ext/settings.html b/ext/settings.html index 1a50a4b4..dc1405de 100644 --- a/ext/settings.html +++ b/ext/settings.html @@ -514,6 +514,34 @@ <div class="settings-item advanced-only"> <div class="settings-item-inner"> <div class="settings-item-left"> + <div class="settings-item-label">Normalize CSS zoom</div> + <div class="settings-item-description"> + Correct the pointer location on webpages where CSS <code>zoom</code> is used. + <a tabindex="0" class="more-toggle more-only" data-parent-distance="4">More…</a> + </div> + </div> + <div class="settings-item-right"> + <label class="toggle"><input type="checkbox" data-setting="scanning.normalizeCssZoom"><span class="toggle-body"><span class="toggle-track"></span><span class="toggle-knob"></span></span></label> + </div> + </div> + <div class="settings-item-children more" hidden> + <p> + The non-standard CSS <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/zoom" target="_blank" rel="noopener noreferrer"><code>zoom</code></a> property interferes with the normal calculation of the pointer coordinates when scanning webpages. This property is discouraged from being used and its use is rare, but some webpages may still use it. + </p> + <p> + Enabling this option, which is on by default, will take the value of this property into account when scanning webpage content. It is currently put behind an option in case there are unforeseen negative side effects. + </p> + <p> + This setting does not have any effect in Firefox, as it does not implement the <code>zoom</code> property. + </p> + <p> + <a tabindex="0" class="more-toggle" data-parent-distance="3">Less…</a> + </p> + </div> + </div> + <div class="settings-item advanced-only"> + <div class="settings-item-inner"> + <div class="settings-item-left"> <div class="settings-item-label">Wildcard scanning</div> <div class="settings-item-description"> Enable suffix wildcard when looking up scanned webpage text. |