Fix highlighting of search results when the textLayer
contains br
-elements (PR 13257 follow-up, issue 13323)
Apparently we need to layout `br`-elements in the same *exact* way as the regular `span`-elements which contain the text-content.
This commit is contained in:
parent
af9feb1307
commit
883ce5d120
@ -23,7 +23,8 @@
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
.textLayer span {
|
.textLayer span,
|
||||||
|
.textLayer br {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
white-space: pre;
|
white-space: pre;
|
||||||
-webkit-transform-origin: 0% 0%;
|
-webkit-transform-origin: 0% 0%;
|
||||||
|
@ -24,7 +24,8 @@
|
|||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.textLayer span {
|
.textLayer span,
|
||||||
|
.textLayer br {
|
||||||
color: transparent;
|
color: transparent;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
white-space: pre;
|
white-space: pre;
|
||||||
|
Loading…
Reference in New Issue
Block a user