Files
ladybird/Tests/LibWeb/Crash/CSS/details-slot-monospace-font-crash.html
Andreas Kling 2b6e6e4ea2 LibWeb: Fix crash in style inheritance for pseudo-element slots
Elements in internal shadow trees that represent CSS pseudo-elements
(e.g. the DetailsContent slot in <details>) store their cascaded
properties on the host element's pseudo-element data, not on the
element itself. This meant that when slotted elements walked the
inheritance chain and encountered such a slot, they would dereference
null cascaded properties and crash.

Fix this by copying the cascaded properties onto the slot element
itself after computing its style, keeping both cascaded and computed
properties accessible in the same place.
2026-02-14 14:36:21 -05:00

6 lines
106 B
HTML

<!DOCTYPE html>
<details open>
<summary>Summary</summary>
<pre>monospace text in details</pre>
</details>