mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
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.
6 lines
106 B
HTML
6 lines
106 B
HTML
<!DOCTYPE html>
|
|
<details open>
|
|
<summary>Summary</summary>
|
|
<pre>monospace text in details</pre>
|
|
</details>
|