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

RESOLVED WONTFIX

Status

()

defect
P3
normal
RESOLVED WONTFIX
2 years ago
Last year

People

(Reporter: hiro, Unassigned)

Tracking

(Blocks 2 bugs, {dev-doc-complete})

unspecified
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox57 wontfix)

Details

Reporter

Description

2 years ago
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
Reporter

Comment 1

2 years ago
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)
Reporter

Comment 3

2 years ago
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
Reporter

Comment 6

Last year
Closing since this is a bug for the old style system.
Status: NEW → RESOLVED
Closed: Last year
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.