From d873bb8fa4adf849f5af9c26a81e91742e2df025 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Tue, 3 Jan 2017 13:40:25 -0800 Subject: [PATCH] Add spec links for border shorthands --- components/style/properties/shorthand/border.mako.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/components/style/properties/shorthand/border.mako.rs b/components/style/properties/shorthand/border.mako.rs index 142f528b230..19f33710b82 100644 --- a/components/style/properties/shorthand/border.mako.rs +++ b/components/style/properties/shorthand/border.mako.rs @@ -5,15 +5,18 @@ <%namespace name="helpers" file="/helpers.mako.rs" /> <% from data import to_rust_ident, ALL_SIDES %> -${helpers.four_sides_shorthand("border-color", "border-%s-color", "specified::CSSColor::parse")} +${helpers.four_sides_shorthand("border-color", "border-%s-color", "specified::CSSColor::parse", + spec="https://drafts.csswg.org/css-backgrounds/#border-color")} ${helpers.four_sides_shorthand("border-style", "border-%s-style", "specified::BorderStyle::parse", - needs_context=False)} + needs_context=False, + spec="https://drafts.csswg.org/css-backgrounds/#border-style")} <%helpers:shorthand name="border-width" sub_properties="${ ' '.join('border-%s-width' % side - for side in ['top', 'right', 'bottom', 'left'])}"> + for side in ['top', 'right', 'bottom', 'left'])}" + spec="https://drafts.csswg.org/css-backgrounds/#border-width"> use super::parse_four_sides; use parser::Parse; use values::specified;