Closed Bug 1544959 Opened 5 years ago Closed 5 years ago

Style changes on ::marker pseudo-elements of ::before/::after pseudo-elements are broken

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1544242

People

(Reporter: sebo, Unassigned)

References

()

Details

If the styles of a ::marker pseudo-element are changed, they are not correctly applied if the ::marker element is part of a ::before or ::after pseudo-element styled as list item.

Test case:

  1. Open data:text/html,<!doctype html><style>ul::before{content:"Before";display:list-item;}ul::after{content:"After";display:list-item;}::marker{color:red;}</style><ul><li>Bar
  2. Open the DevTools' Inspector
  3. Toggle the color property off
    => All markers are black (OK)
  4. Toggle the color property on again
    => Only the "Bar" item's marker is red, the ones of the pseudo-elements stay black.

See also the related specification issue.

Sebastian

They're not supposed to be red in the first place ;)

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.