Skip to content

Editor: 'content' CSS field missing on ul/li/div with :before pseudo-selector #1699

@lexoyo

Description

@lexoyo

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

  1. Open the editor (reported on v3.silex.me / canary.silex.me)
  2. Add or select a ul, li or div element
  3. Try to add a :before pseudo-selector and a content property
  4. 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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions