mirror of
https://github.com/servo/servo.git
synced 2025-07-02 21:13:39 +01:00
Add to_css_single_value for serializing a single PropertyDeclarationBlock (fixes #13423) r? @birtles This needs to take the name of the property in question as input so that it can figure out which shorthand to serialize to (if any), since some props are part of multiple shorthands (and you need a way to distinguish between the lone value and the shorthand). I can tweak this to accept an `Option<Shorthand>` in case you only want to pass in the property name for shorthands. In case you don't want to handle shorthands at all, we probably don't need this method at all, since you can just assert that there's a single field and serialize that. Also, is `!important` involved here? <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13556) <!-- Reviewable:end --> |
||
---|---|---|
.. | ||
canvas | ||
canvas_traits | ||
compositing | ||
constellation | ||
debugger | ||
devtools | ||
devtools_traits | ||
gfx | ||
gfx_traits | ||
layout | ||
layout_thread | ||
layout_traits | ||
msg | ||
net | ||
net_traits | ||
plugins | ||
profile | ||
profile_traits | ||
range | ||
script | ||
script_layout_interface | ||
script_traits | ||
servo | ||
style | ||
style_traits | ||
util | ||
webdriver_server |