Closed Bug 1387931 Opened 3 years ago Closed 2 years ago

Don't generate pseudo elements for ::before and ::after if content property is 'none' or 'normal'

Categories

(Core :: CSS Parsing and Computation, defect, P3)

defect

Tracking

()

RESOLVED WONTFIX
Tracking Status
firefox57 --- wontfix

People

(Reporter: hiro, Unassigned)

References

(Blocks 2 open bugs)

Details

(Keywords: dev-doc-complete)

From the spec [1];

 none
     The pseudo-element is not generated.

Stylo does not pseudo elements at all.

[1] https://www.w3.org/TR/CSS21/generate.html#content
https://treeherder.mozilla.org/#/jobs?repo=try&revision=539ae2c3258394e9c6aa7f73a30dfb5a763ba22a
I have no idea how to test this without checking whether animation was created on the pseudo element which has 'content:none'.
Hiro, is this a bug we need to fix in Stylo? Or a bug in Gecko's style system?
Flags: needinfo?(hikezoe)
Tight, this is a gecko bug, stylo handles the case correctly.
Flags: needinfo?(hikezoe)
Marking as part of documentation plan for intentional stylo differences, just in case this is fixed before stylo hits release.
Keywords: dev-doc-needed
Priority: -- → P3
Closing since this is a bug for the old style system.
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.