Open Bug 1377414 Opened 3 years ago Updated 2 years ago

Gecko treat 'none' as a predefined counter style, while stylo treat it as a separate keyword value

Categories

(Core :: CSS Parsing and Computation, enhancement, P5)

enhancement

Tracking

()

Tracking Status
firefox57 --- wontfix
firefox58 --- wontfix
firefox59 --- ?

People

(Reporter: xidorn, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-complete, Whiteboard: [stylo])

This is a recent spec change from w3c/csswg-drafts#1295.

The only effective difference as far as I can see is that "system" and "fallback" descriptors of @counter-style rule would reject 'none' as a valid value, which is currently valid in Gecko.

Also, there is some inconsistency from this currently, that the counter style rule object is still implemented in Gecko side, which means it still uses the grammar from Gecko. So although the parsing (implemented in Servo) would reject 'none' in those cases, if you set it via CSSOM, that would still be accepted.

This inconsistency would be fixed in the future after we drop the current style system.

This shouldn't cause any real issue, but it is still a behavior change we may want to track.
Whiteboard: [stylo]
Priority: -- → P3
Priority: P3 → P5
Marking as part of documentation plan for intentional stylo differences
Keywords: dev-doc-needed
That description is opposite. Gecko allows "none" in those places, while Stylo doesn't. The spec was updated recently to reflect Stylo's behavior.
(In reply to Xidorn Quan [:xidorn] UTC+10 from comment #3)
> That description is opposite. Gecko allows "none" in those places, while
> Stylo doesn't. The spec was updated recently to reflect Stylo's behavior.

Thanks for catching this; I've fixed it now.
You need to log in before you can comment on or make changes to this bug.