Page MenuHomePhabricator

Bug 1857398 - [css-properties-values-api] Support ToCss for ComputedValue r=fredw,zsun,#style,#layout
ClosedPublic

Authored by zrhoffman on Oct 6 2023, 6:08 AM.
Referenced Files
Unknown Object (File)
Thu, Apr 9, 7:28 AM
Unknown Object (File)
Thu, Apr 9, 7:28 AM
Unknown Object (File)
Wed, Apr 8, 4:25 AM
Unknown Object (File)
Tue, Apr 7, 2:59 PM
Unknown Object (File)
Mar 7 2026, 4:44 PM
Unknown Object (File)
Nov 13 2025, 12:13 PM
Unknown Object (File)
Oct 14 2025, 5:25 PM
Unknown Object (File)
Aug 5 2025, 11:39 PM
Subscribers

Details

Event Timeline

phab-bot published this revision for review.Oct 6 2023, 6:08 AM
phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.
fredw added inline comments.
servo/components/style/properties_and_values/syntax/mod.rs
160 ↗(On Diff #772330)

Is this function going to be used elsewhere than List::to_css? If not I would just move that code into List::to_css.

From the function name, I would expect Multiplier. separator() to just return a comma (without space). If instead put inline in List::to_css with the comment linking to the cssom spec (see below) I think it's much clearer why the space is added.

servo/components/style/properties_and_values/value.rs
67
This revision is now accepted and ready to land.Oct 6 2023, 6:52 AM

This revision requires a Testing Policy Project Tag to be set before landing. Please apply one of testing-approved, testing-exception-unchanged, testing-exception-ui, testing-exception-elsewhere, testing-exception-other. Tip: this Firefox add-on makes it easy!

zrhoffman edited the summary of this revision. (Show Details)
zrhoffman marked 2 inline comments as done.
zrhoffman added inline comments.
servo/components/style/properties_and_values/syntax/mod.rs
160 ↗(On Diff #772330)

Is this function going to be used elsewhere than List::to_css? If not I would just move that code into List::to_css.

Moved that code into List::to_css.

From the function name, I would expect Multiplier. separator() to just return a comma (without space). If instead put inline in List::to_css with the comment linking to the cssom spec (see below) I think it's much clearer why the space is added.

Added comments linking to the CSSOM spec.