-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make sure in-page search works, despite any markup #125
Comments
Is this just about the |
It may be larger than that see #19 (comment) |
That was the only specific example, to my knowledge. |
In page search is not working. E.g. go to https://b0-system.github.io/odig/doc/dolog/Log/index.html#val-info . Then search in page for |
@yawaramin I get |
@hcarty you're right, it's working in FF. I also checked and confirmed it's working in Safari. However it is not working in Chrome incognito with no extensions. Strange. Could be a Chrome bug... |
Ah - yep, confirmed that it's not working on Chrome here either. |
I recently noticed this aswell it seems if you set If someone knows where this can be filed against
|
@dbuenzli Chrome bugs are filed against the Chromium project, so https://bugs.chromium.org/p/chromium/issues/list . I tried a couple of different searches there but not finding anything more relevant than https://bugs.chromium.org/p/chromium/issues/detail?id=809886 , which talks about text-selection weirdness for inline-block spans, which also seems to present on odoc pages. May be related. |
I personally don't have gaccount (and I'm not willing to get one) but in any case that should not be a problem with
|
So I found a workaround. Rather than making spans |
Use white-space:nowrap rather than display:inline-block which breaks Chrome in-page search. See ocaml/odoc#125
Except CSS being CSS this has other unwanted effects on narrow viewports. If the span width exceeds the container width this overflows and it's not possible to switch back to wrapping (which entails horizontal scrolling). This is frustrating |
Ideally, we could even somehow test for this automatically. Ideas welcome.
Noted by @rleonid in https://discuss.ocaml.org/t/1841/10.
The text was updated successfully, but these errors were encountered: