about summary refs log tree commit diff
path: root/src/test/rustdoc-gui/codeblock-sub.goml
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-12-19 10:18:10 -0700
committerMichael Howell <michael@notriddle.com>2022-12-19 10:23:46 -0700
commitf24c04c3f8f4ac0ef318fa1c415aded1f781ebdf (patch)
tree2e32673d2c649de4143a197bd2f13952e2bc79dd /src/test/rustdoc-gui/codeblock-sub.goml
parent4653c93e4442d88bf3278067183c8fdc0be74a1f (diff)
downloadrust-f24c04c3f8f4ac0ef318fa1c415aded1f781ebdf.tar.gz
rust-f24c04c3f8f4ac0ef318fa1c415aded1f781ebdf.zip
rustdoc: force pre tags to have the default line height
Fixes #105906
Diffstat (limited to 'src/test/rustdoc-gui/codeblock-sub.goml')
-rw-r--r--src/test/rustdoc-gui/codeblock-sub.goml5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/rustdoc-gui/codeblock-sub.goml b/src/test/rustdoc-gui/codeblock-sub.goml
new file mode 100644
index 00000000000..cbd314d2791
--- /dev/null
+++ b/src/test/rustdoc-gui/codeblock-sub.goml
@@ -0,0 +1,5 @@
+// Test that code blocks nested within <sub> do not have a line height of 0.
+goto: "file://" + |DOC_PATH| + "/test_docs/codeblock_sub/index.html"
+
+store-property: (codeblock_sub_1, "#codeblock-sub-1", "offsetHeight")
+assert-property-false: ("#codeblock-sub-3", { "offsetHeight": |codeblock_sub_1| })