Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to detect URI-like text across boundaries between inline texts …
…and "display:inline-flex" boxes
- Loading branch information
Showing
4 changed files
with
65 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
webextensions/resources/deactivate-boundary-inline-elements.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
|
||
/* | ||
An elements with "display:inline-flex" is visually rendered as a regular | ||
inline box, but it is actually treated as a non-inline box internally. | ||
The API "browser.find.find()" (and Firefox's native in-page find feature also) | ||
fails to find a term across the boundary. Thus we need to change its "display" | ||
temporary while finding URI-like texts in webpages. | ||
*/ | ||
.textlink-boundary-inline-node:not(#never#match#to#any#element) { | ||
display: inline !important; | ||
} |