Closed Bug 1348802 Opened 7 years ago Closed 7 years ago

stylo: Servo implements selectors-4's :not, Gecko implements selectors-3

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: emilio, Assigned: bholley)

References

Details

Attachments

(1 file)

In particular, Servo's :not selectors can contain combinators, unlike Gecko's.

See https://github.com/servo/servo/pull/15890.

We should decide what to do about this.
Priority: -- → P3
We should downgrade to level 3 and then reconsider after stylo ships. I have a patch.
Assignee: nobody → bobbyholley
Priority: P3 → P1
Blocks: 1358693
MozReview-Commit-ID: 6p750Ml2wzm
Attachment #8861292 - Flags: review?(simon.sapin)
Comment on attachment 8861292 [details] [diff] [review]
Downgrade selectors not() behavior to level 3. v1

Review of attachment 8861292 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good.

I also checked :moz-any parsing, it seems to be equivalent:

https://github.com/servo/servo/blob/f3c1bbe0700806ef2def3b0c5ce0dde4eba107ea/components/style/gecko/selector_parser.rs#L400-L409
http://searchfox.org/mozilla-central/rev/baf47b352e873d4516d7656186d6d7c7447d3873/layout/style/nsCSSParser.cpp#6502
Attachment #8861292 - Flags: review?(simon.sapin) → review+
https://hg.mozilla.org/mozilla-central/rev/9b90e552d82d
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
See Also: → 933562
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: