mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
style: Update a spec link.
This commit is contained in:
parent
bdbb298bac
commit
ba7629a17e
1 changed files with 2 additions and 3 deletions
|
@ -306,7 +306,7 @@ impl PropertyDeclarationBlock {
|
||||||
|
|
||||||
/// Find the value of the given property in this block and serialize it
|
/// Find the value of the given property in this block and serialize it
|
||||||
///
|
///
|
||||||
/// <https://dev.w3.org/csswg/cssom/#dom-cssstyledeclaration-getpropertyvalue>
|
/// <https://drafts.csswg.org/cssom/#dom-cssstyledeclaration-getpropertyvalue>
|
||||||
pub fn property_value_to_css(&self, property: &PropertyId, dest: &mut CssStringWriter) -> fmt::Result {
|
pub fn property_value_to_css(&self, property: &PropertyId, dest: &mut CssStringWriter) -> fmt::Result {
|
||||||
// Step 1.1: done when parsing a string to PropertyId
|
// Step 1.1: done when parsing a string to PropertyId
|
||||||
|
|
||||||
|
@ -617,8 +617,7 @@ impl PropertyDeclarationBlock {
|
||||||
dest: &mut CssStringWriter,
|
dest: &mut CssStringWriter,
|
||||||
computed_values: Option<&ComputedValues>,
|
computed_values: Option<&ComputedValues>,
|
||||||
custom_properties_block: Option<&PropertyDeclarationBlock>,
|
custom_properties_block: Option<&PropertyDeclarationBlock>,
|
||||||
) -> fmt::Result
|
) -> fmt::Result {
|
||||||
{
|
|
||||||
match property.as_shorthand() {
|
match property.as_shorthand() {
|
||||||
Err(_longhand_or_custom) => {
|
Err(_longhand_or_custom) => {
|
||||||
if self.declarations.len() == 1 {
|
if self.declarations.len() == 1 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue