Closed Bug 1392956 Opened 7 years ago Closed 7 years ago

stylo: Incorrect round-tripping of "* + *" selector

Categories

(Core :: CSS Parsing and Computation, defect)

56 Branch
Unspecified
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1391169

People

(Reporter: bugzilla.org, Unassigned)

References

(Blocks 1 open bug, )

Details

(Keywords: nightly-community)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8

Steps to reproduce:

Firefox Developer Edition 56.0b4 (64-bit)

* Set layout.css.servo.enabled to "true"
* Restart
* Created a rule whose selector is ".anchor * + *" (a less efficient version of :not(:first-child) if you will).
* Programmatically retrieve rule
* Look at selector

https://codepen.io/anon/pen/eEKBpw



Actual results:

selector text is ".anchor **"


Expected results:

selector text should be ".anchor * + *"
Component: Untriaged → CSS Parsing and Computation
Product: Firefox → Core
Thank you!
Confirmed in Nightly 57 x64 20170823100553 @ Debian Testing.
Devtools > Console:
without stylo: .anchor * + *
   with stylo: .anchor **
Status: UNCONFIRMED → NEW
Has STR: --- → yes
Ever confirmed: true
OS: Unspecified → All
Summary: Incorrect round-tripping of "* + *" selector with stylo/quantumcss → stylo: Incorrect round-tripping of "* + *" selector
Reminds me of bug 1391169.
See Also: → 1391169
The testcase in Bug 1391169 is nearly identical and the patch I'm working on there will resolve this, as well.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.