FHTzoob
(Filip)
Février 26, 2015, 4:48
1
Usually upon searching a word in the search tab, if the word is in the page you’re on it will be highlighted yellow, like this:
However today I was doing a lot of formatting and noticed that if the text is written inside
<details><summary><kbd><b>
Then it disappears when searched.
For example:
Then when you search “staff”:
5 « J'aime »
FHTzoob
(Filip)
Février 26, 2015, 4:49
2
Try it yourself!
**I think I found a bug**
Now search “bug”! It will disappear.
9 « J'aime »
riking
(Kane York)
Février 26, 2015, 7:34
4
kbd * * {
display: none;
}
You’ve got kbd
-> strong
-> span class="search-result"
2 « J'aime »
FHTzoob
(Filip)
Février 26, 2015, 8:16
5
please translate into English
cpradio
(cpradio)
Février 26, 2015, 8:19
6
CSS Rule what is happening, in short search is trying to put a highlight on your found word and the extra tag it places on your word causes kbd * * to run its display none rule.
Testing this again without the detail summary
1 « J'aime »
FHTzoob
(Filip)
Février 26, 2015, 8:19
7
Oo, it doesn’t have to be in details summary, just kbd and b.
cpradio
(cpradio)
Février 26, 2015, 8:20
8
kbd with your specific text in 1 nested tag. b, i, u, s, whatever.
zogstrip
(Régis Hanol)
Mars 2, 2015, 4:01
9
1 « J'aime »