Closed Bug 1852149 Opened 10 months ago Closed 7 months ago

Implement CSS margin-rule parsing and handling in Servo

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
122 Branch
Tracking Status
firefox122 --- fixed

People

(Reporter: alaskanemily, Assigned: alaskanemily)

References

(Blocks 3 open bugs, )

Details

(Keywords: dev-doc-needed)

Attachments

(3 files)

No description provided.
Attachment #9352100 - Attachment description: Bug 1852149 Part 1 - Refactor page-rule parsing and types to allow nested rules. → Bug 1852149 Part 2 - Refactor page-rule parsing and types to allow nested rules.
Severity: -- → S3
Type: defect → enhancement
Priority: -- → P3
Summary: Implement CSS margin-rules → Implement CSS margin-rule parsing and handling in Servo
Blocks: 1853016
Assignee: nobody → emcdonough
Status: NEW → ASSIGNED
Blocks: 1864737
Blocks: 1864738

Let's make sure that we have tests / bugs for:

  • Kinds of nested rules allowed inside @page.
  • Margin rules not being allowed outside @page (this should be easy to do now).
  • Making CSSPageRule a CSSGroupingRule in the CSSOM.

It seems these patches should be testable (via CSSPageRule.cssText for (1) at least, via existing APIs for (2)).

Flags: needinfo?(emcdonough)

Tests added to part 2, point 3 is bug 1868215

Flags: needinfo?(emcdonough)
Pushed by emcdonough@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/41983c01b704
Part 1 - Add margin-rule pref r=firefox-style-system-reviewers,emilio
https://hg.mozilla.org/integration/autoland/rev/f09d75c8d809
Part 2 - Refactor page-rule parsing and types to allow nested rules. r=firefox-style-system-reviewers,emilio
https://hg.mozilla.org/integration/autoland/rev/06cfcf08556f
Part 3 - Add margin rules to servo r=firefox-style-system-reviewers,emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/43585 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
Upstream PR merged by moz-wptsync-bot
Upstream PR merged by moz-wptsync-bot

This should be added to https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Experimental_features, maybe with a note for the CSSMarginRule API once implemented in bug 1833466.

Sebastian

Keywords: dev-doc-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: