Skip to content

[css-lists] [css-pseudo] need to define blockification of outside markers / interaction of display: inline list-item with list-style-position #6440

@emilio

Description

@emilio

Outside markers are defined to create block containers. This is as of today implemented in both Gecko and Blink at least as a computed-style-time hack:

Right now that has a visible effect via getComputedStyle(element, "::marker").display (this test tests for it).

However:

  • The spec should probably say how it is implemented given it is observable.
  • That is not quite sound with display: inline list-item, because the display value may be ignored / overridden.

The last bullet point is, of course, if we agree that display: inline list-item ignores list-style-position (which Gecko does right now), but it seems a bit under-defined.

So in Gecko, I'm going to change this to be a used-value-time blockification (mostly to prevent the case where we have a block element like <details> with display: inline list-item and fail to blockify the marker). But I'm happy to adapt to whatever solution we end up with here since we're the only ones implementing inline list-item after all.

cc @Loirooriol @MatsPalmgren @jfkthame

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions