## Description

Citation tooltip can get in a broken layout state where it "flickers".

https://user-images.githubusercontent.com/674792/231461610-0d07e4bd-dac0-40e4-8011-165b41b49c3b.mov

## Steps to Reproduce:
- See the attached [repo.zip](https://github.com/quarto-dev/quarto-cli/files/11211550/repo.zip)
- `quarto preview`
- Maximize the screen
- Navigate to `Preface`
- Mouse over the citation `Knuth [1984];`

### Expected Result
No layout change.  Citation stays in current location with tooltip to reference.

### Actual Result:  
Cycling reflow flickering

## Environment

Mac 

```
❯ quarto check

[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.1: OK
      Dart Sass version 1.55.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 99.9.9
      Path: /Users/amanning/projects/github/quarto/quarto-cli/package/dist/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.11.2
      Path: /Library/Frameworks/Python.framework/Versions/3.11/bin/python3
      Jupyter: 5.2.0
      Kernels: julia-1.8, julia-1.7, python3

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK
      Version: 4.2.1
      Path: /Library/Frameworks/R.framework/Resources
      LibPaths:
        - /Library/Frameworks/R.framework/Versions/4.2/Resources/library
      knitr: 1.42
      rmarkdown: 2.20

[✓] Checking Knitr engine render......OK
```
### Checklist

- [x] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [x] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [x] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [x] Please document the operating system you're running. If on Linux, please provide the specific distribution.
- [x] Please provide the output of `quarto check` so we know which version of quarto and its dependencies you're running.
dragonstyle
2023-04-12T12:50:47Z
allenmanning
bug
v1.4
open
HTML Book citation tooltip layout "flickering"
https://github.com/quarto-dev/quarto-cli/issues/5164