Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Commit

Permalink
fix bug 1198893 - Handle {{xref_cssnumber}}
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhitlock committed Sep 8, 2015
1 parent 0f5449e commit 29325c4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mdn/kumascript.py
Expand Up @@ -773,6 +773,12 @@ class XrefCSSLength(XrefCSSBase):
xref_args = ('length', '<length>')


class XrefCSSNumber(XrefCSSBase):
# https://developer.mozilla.org/en-US/docs/Template:xref_cssnumber
canonical_name = 'xref_cssnumber'
xref_args = ('number', '<number>')


class XrefCSSPercentage(XrefCSSBase):
# https://developer.mozilla.org/en-US/docs/Template:xref_csspercentage
canonical_name = 'xref_csspercentage'
Expand Down Expand Up @@ -867,6 +873,7 @@ def _visit_multi_token(self, node, children):
'xref_csscolorvalue': XrefCSSColorValue,
'xref_cssimage': XrefCSSImage,
'xref_csslength': XrefCSSLength,
'xref_cssnumber': XrefCSSNumber,
'xref_csspercentage': XrefCSSPercentage,
'xref_cssstring': XrefCSSString,
}
Expand Down

0 comments on commit 29325c4

Please sign in to comment.