### Bug description

[Zip file with minimal working example](https://github.com/quarto-dev/quarto-cli/files/10163470/mwe.zip)

Consider the minimal working example with subfigures:

``````
---
title: "Minimal Working Example"
format: docx
---

Foo

::: {#fig-1 layout-ncol="2"}
![Awesome Logo](R_logo.svg.png){width="5cm"}

Logos
:::

Bar
``````

Render using `quarto render subfigure-height.qmd --to docx` produces

![Screenshot from 2022-12-06 14-42-02](https://user-images.githubusercontent.com/1506457/205840744-89386bf5-753f-4ae9-a08f-9a3a3a86e7c7.png)

The figure is not 5cm width and overflows the available space.

For comparison, consider the minimal working example with single figure:

``````
---
title: "Minimal Working Example"
format: docx
---

Foo

![Awesome Logo](R_logo.svg.png){width="5cm"}

Bar
``````

Render using `quarto render figure-height.qmd --to docx` produces

![Screenshot from 2022-12-06 14-42-12](https://user-images.githubusercontent.com/1506457/205841155-90f8a82f-c851-4d07-9c5d-437402ab7068.png)

The figure is 5cm width as instructed with `{width="5cm"}`.

`quarto check` reports

```
[✓] Checking Quarto installation......OK
      Version: 1.3.34
      Path: /opt/quarto/bin

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

[✓] Checking Python 3 installation....OK
      Version: 3.9.10 (Conda)
      Path: /home/raniere/mambaforge/bin/python
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with conda install jupyter

[✓] Checking R installation...........OK
      Version: 4.2.1
      Path: /usr/lib/R
      LibPaths:
        - /home/raniere/R/x86_64-pc-linux-gnu-library/4.2
        - /usr/local/lib/R/site-library
        - /usr/lib/R/site-library
        - /usr/lib/R/library
      rmarkdown: 2.16

[✓] 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.
cscheid
2022-12-06T06:50:16Z
rgaiacs
bug needs-repro docx
v1.4
closed
Subfigures ignore width and height attributes 
https://github.com/quarto-dev/quarto-cli/issues/3580