mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Add spec links for border shorthands
This commit is contained in:
parent
c89368dcc5
commit
d873bb8fa4
1 changed files with 6 additions and 3 deletions
|
@ -5,15 +5,18 @@
|
||||||
<%namespace name="helpers" file="/helpers.mako.rs" />
|
<%namespace name="helpers" file="/helpers.mako.rs" />
|
||||||
<% from data import to_rust_ident, ALL_SIDES %>
|
<% 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",
|
${helpers.four_sides_shorthand("border-style", "border-%s-style",
|
||||||
"specified::BorderStyle::parse",
|
"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="${
|
<%helpers:shorthand name="border-width" sub_properties="${
|
||||||
' '.join('border-%s-width' % side
|
' '.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 super::parse_four_sides;
|
||||||
use parser::Parse;
|
use parser::Parse;
|
||||||
use values::specified;
|
use values::specified;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue