Skip to content

Commit

Permalink
Updated syntax of @page to the latest spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianZ committed Oct 20, 2016
1 parent 5597882 commit 0a371c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion css/at-rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
"status": "standard"
},
"@page": {
"syntax": "@page <page-selector-list> {\n <group-rule-body>\n}",
"syntax": "@page <page-selector-list> {\n <page-body>\n},",
"interfaces": [
"CSSPageRule"
],
Expand Down
6 changes: 6 additions & 0 deletions css/syntaxes.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,15 @@
"numeric-fraction-values": "[ diagonal-fractions | stacked-fractions ]",
"numeric-spacing-values": "[ proportional-nums | tabular-nums ]",
"opacity()": "opacity( [ <number-percentage> ] )",
"page-body": "<declaration>? [ ; <page-body> ]? | <page-margin-box> <page-body>",
"page-margin-box": "<page-margin-box-type> {\n <declaration-list>\n}",
"page-margin-box-type": "@top-left-corner | @top-left | @top-center | @top-right | @top-right-corner | @bottom-left-corner | @bottom-left | @bottom-center | @bottom-right | @bottom-right-corner | @left-top | @left-middle | @left-bottom | @right-top | @right-middle | @right-bottom",
"page-selector-list": "[ <page-selector># ]?",
"page-selector": "<pseudo-page>+ | <ident> <pseudo-page>*",
"perspective()": "perspective( <length> )",
"polygon()": "polygon( <fill-rule>? , [ <length-percentage> <length-percentage> ]# )",
"position": "[[ left | center | right | top | bottom | <length-percentage> ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ] | [ center | [ left | right ] <length-percentage>? ] && [ center | [ top | bottom ] <length-percentage>? ]]",
"pseudo-page": ": [ left | right | first | blank ]",
"radial-gradient()": "radial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list> )",
"relative-size": "larger | smaller",
"repeat-style": "repeat-x | repeat-y | [ repeat | space | round | no-repeat ]{1,2}",
Expand Down

0 comments on commit 0a371c2

Please sign in to comment.