stylo: display value of non-existent pseudo flex item is not blockified

NEW
Unassigned

Status

()

defect
P3
normal
2 years ago
2 years ago

People

(Reporter: xidorn, Unassigned)

Tracking

Trunk
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox57 wontfix, firefox58 affected)

Details

Attachments

(1 attachment)

Reporter

Description

2 years ago
Posted file testcase
See the testcase.

It tries to get the computed value of display property on a pseudo-element of a flexbox. The pseudo-element doesn't really exist because it has no content.

Stylo shows "inline" in this testcase (so does Blink), while Gecko shows "block".

From the spec, it seems that it should return "block" because blockification applies as far as the computed display value is not "none" or "contents", and absence of content property doesn't compute the display value to anything different.

Web-platform test cssom/getComputedStyle-pseudo.html checks this behavior.


I don't think it is an important issue, though.
You need to log in before you can comment on or make changes to this bug.