Note that there's no straightforward way to do this at the moment. We don't display a `::details-content` "node" in the markup view, so we can't "automatically" retrieve its pseudo-elements directly. We could try to do something custom, and display both `::details-content` and `::details-content::after` when `<details>` is selected. That means we'd have to also handle any "child" of the after/pseudo element, like `::details-content::after::marker` (and this could be a can of work in the future) A cleaner solution would be to actually display the `::details-content` node / shadow DOM ``` ▼ <details> | <summary>Summary</summary> | ▼ ::details-content | | <p>Hello</p> | | ▼ ::after | | | ::marker ``` but does it makes sense to always display the `::details-content` node, even if there's no style for it? Could it look odd to users who might not expect it to be visible?
Bug 1955202 Comment 1 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Note that there's no straightforward way to do this at the moment. We don't display a `::details-content` "node" in the markup view, so we can't "automatically" retrieve its pseudo-elements directly. We could try to do something custom, and display both `::details-content` and `::details-content::after` when `<details>` is selected. That means we'd have to also handle any "child" of the after/pseudo element, like `::details-content::after::marker` (and this could be a can of work in the future) A cleaner solution could be to actually display the `::details-content` node / shadow DOM ``` ▼ <details> | <summary>Summary</summary> | ▼ ::details-content | | <p>Hello</p> | | ▼ ::after | | | ::marker ``` but does it makes sense to always display the `::details-content` node, even if there's no style for it? Could it look odd to users who might not expect it to be visible?
Note that there's no straightforward way to do this at the moment. We don't display a `::details-content` "node" in the markup view, so we can't "automatically" retrieve its pseudo-elements directly. We could try to do something custom, and display both `::details-content` and `::details-content::after` when `<details>` is selected. That means we'd have to also handle any "child" of the after/pseudo element, like `::details-content::after::marker` (and this could be a can of worm in the future) A cleaner solution could be to actually display the `::details-content` node / shadow DOM ``` ▼ <details> | <summary>Summary</summary> | ▼ ::details-content | | <p>Hello</p> | | ▼ ::after | | | ::marker ``` but does it makes sense to always display the `::details-content` node, even if there's no style for it? Could it look odd to users who might not expect it to be visible?