From 450a5d1ae059f4178e6264be8b2645773c902d75 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 2 Jan 2017 19:37:21 -0800 Subject: [PATCH] Add spec links for text properties --- components/style/properties/longhand/text.mako.rs | 15 ++++++++++----- .../style/properties/shorthand/text.mako.rs | 3 ++- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/components/style/properties/longhand/text.mako.rs b/components/style/properties/longhand/text.mako.rs index 541c8e13e04..912c55d98ff 100644 --- a/components/style/properties/longhand/text.mako.rs +++ b/components/style/properties/longhand/text.mako.rs @@ -12,7 +12,8 @@ Method("has_overline", "bool"), Method("has_line_through", "bool")]) %> -<%helpers:longhand name="text-overflow" animatable="False"> +<%helpers:longhand name="text-overflow" animatable="False" + spec="https://drafts.csswg.org/css-ui/#propdef-text-overflow"> use std::fmt; use style_traits::ToCss; use values::NoViewportPercentage; @@ -93,13 +94,15 @@ ${helpers.single_keyword("unicode-bidi", "normal embed isolate bidi-override isolate-override plaintext", - animatable=False)} + animatable=False, + spec="https://drafts.csswg.org/css-writing-modes/#propdef-unicode-bidi")} // FIXME: This prop should be animatable. <%helpers:longhand name="${'text-decoration' if product == 'servo' else 'text-decoration-line'}" custom_cascade="${product == 'servo'}" animatable="False" - disable_when_testing="True"> + disable_when_testing="True", + spec="https://drafts.csswg.org/css-text-decor/#propdef-text-decoration-line"> use std::fmt; use style_traits::ToCss; use values::NoViewportPercentage; @@ -200,11 +203,13 @@ ${helpers.single_keyword("unicode-bidi", ${helpers.single_keyword("text-decoration-style", "solid double dotted dashed wavy -moz-none", products="gecko", - animatable=False)} + animatable=False, + spec="https://drafts.csswg.org/css-text-decor/#propdef-text-decoration-style")} ${helpers.predefined_type( "text-decoration-color", "CSSColor", "CSSParserColor::RGBA(RGBA { red: 0.0, green: 0.0, blue: 0.0, alpha: 1.0 })", complex_color=True, products="gecko", - animatable=True)} + animatable=True, + spec="https://drafts.csswg.org/css-text-decor/#propdef-text-decoration-color")} diff --git a/components/style/properties/shorthand/text.mako.rs b/components/style/properties/shorthand/text.mako.rs index 0fc8ffec85e..24813d34d44 100644 --- a/components/style/properties/shorthand/text.mako.rs +++ b/components/style/properties/shorthand/text.mako.rs @@ -9,7 +9,8 @@ text-decoration-line text-decoration-style" products="gecko" - disable_when_testing="True"> + disable_when_testing="True" + spec="https://drafts.csswg.org/css-text-decor/#propdef-text-decoration"> use cssparser::Color as CSSParserColor; use properties::longhands::{text_decoration_color, text_decoration_line, text_decoration_style}; use values::specified::CSSColor;