### Bug description

When I add a figure caption in the margin, Quarto doesn't respect the page layout options. I see that this makes sense in hindsight because there wouldn't be space for the caption, but I spent a while being confused why my figures weren't exapnding into the margin like I intended -- so maybe a warning would be helpful here when both options are toggled on?

## Minimal example

````
---
title: "test"
format: html
---

```{r}
#| column: page-right
#| fig-cap-location: margin
#| fig-cap: "This is a test"
#| fig-width: 12
#| fig-height: 8
plot(1:5)
```

```{r}
#| column: page-right
#| fig-cap-location: bottom
#| fig-cap: "This is a test"
#| fig-width: 12
#| fig-height: 8
plot(1:5)
```
````

## Output
<img width="901" alt="Screenshot 2023-01-30 at 10 12 51" src="https://user-images.githubusercontent.com/25734232/215531316-7390e7bd-db08-44c2-afb4-11bdd87f5c2b.png">

## Version

```
❯ quarto -V
1.2.313
```

```
 setting  value
 version  R version 4.2.1 (2022-06-23)
 os       macOS Ventura 13.1
 system   x86_64, darwin17.0
 ui       X11
 language (EN)
 collate  en_US.UTF-8
 ctype    en_US.UTF-8
 tz       America/Chicago
 date     2023-01-30
 pandoc   2.19.2 @ /usr/local/bin/pandoc
```



### 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.
dragonstyle
2023-01-30T16:16:18Z
maxdrohde
bug
v1.4
open
Margin figure caption in HTML interferes with page layout
https://github.com/quarto-dev/quarto-cli/issues/4150