Summary
When selecting a :before pseudo-selector on a ul, li or div element in the editor, the content CSS property field does not appear in the style panel — even though content is required to render anything with :before.
Steps to reproduce
- Open the editor (reported on v3.silex.me / canary.silex.me)
- Add or select a
ul, li or div element
- Try to add a
:before pseudo-selector and a content property
- Notice that the
content input field is not shown
Expected
The content field should be available in the style panel whenever the current selector includes a ::before / ::after pseudo-element — regardless of the underlying tag (ul, li, div, etc.).
Actual
The content field is missing for ul, li and div (and possibly other tags) — so :before cannot be made visible from the UI.
Context
- Originally reported on the forum by @ceubri on 2026-02-04: https://community.silex.me/d/192
- A previous pass thought this was fixed (comment on 2026-03-11), but @ceubri confirmed on 2026-04-20 that the bug is still present when combining
:before with ul, li or div.
- Tested on the production editor.
Screenshots are available in the forum thread (posts #1 and #6).
cc @lexoyo @ceubri
Summary
When selecting a
:beforepseudo-selector on aul,liordivelement in the editor, thecontentCSS property field does not appear in the style panel — even thoughcontentis required to render anything with:before.Steps to reproduce
ul,liordivelement:beforepseudo-selector and acontentpropertycontentinput field is not shownExpected
The
contentfield should be available in the style panel whenever the current selector includes a::before/::afterpseudo-element — regardless of the underlying tag (ul, li, div, etc.).Actual
The
contentfield is missing forul,lianddiv(and possibly other tags) — so:beforecannot be made visible from the UI.Context
:beforewithul,liordiv.Screenshots are available in the forum thread (posts #1 and #6).
cc @lexoyo @ceubri