Closed Bug 1417548 Opened 5 years ago Closed 5 years ago

stylo: Different CSS error is reported when a declaration block is nested

Categories

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

defect

Tracking

()

RESOLVED FIXED
mozilla59
Tracking Status
firefox57 --- disabled
firefox58 --- disabled
firefox59 --- fixed

People

(Reporter: xidorn, Assigned: xidorn)

References

Details

Attachments

(1 file)

41 bytes, text/x-github-pull-request
Details | Review
For the following piece of code from ua.css:
> div:-moz-native-anonymous.moz-accessiblecaret.right > #image {
> }
> 
> div:-moz-native-anonymous.moz-accessiblecaret.none {
> }
> 
> @media (min-resolution: 1.5dppx) {
>   div:-moz-native-anonymous.moz-accessiblecaret.normal > #image {
>   }
> }

Stylo reports
> Unknown pseudo-class or pseudo-element ‘-moz-native-anonymous’.  Ruleset ignored due to bad selector.
for the two rules outside @media, but it reports just
> Declaration dropped.
for the rule inside the @media.

This causes browser/base/content/test/static/browser_parsable_css.js to fail because "Declaration dropped." is not in the whitelist, and it shouldn't either.
Assignee: nobody → xidorn+moz
Attached file Servo PR
Priority: -- → P3
https://hg.mozilla.org/mozilla-central/rev/f8dfa355526c
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in before you can comment on or make changes to this bug.