From 7eb07953a01372c5b7fb91466cc9aa567ead4cd6 Mon Sep 17 00:00:00 2001 From: David Storey Date: Tue, 5 Jan 2016 21:25:56 -0800 Subject: [PATCH] Use position restriction for "background" as well --- .../css/common/buildscripts/css-schema.xml | 17 +------------- .../languages/css/common/services/browsers.js | 22 +------------------ 2 files changed, 2 insertions(+), 37 deletions(-) diff --git a/src/vs/languages/css/common/buildscripts/css-schema.xml b/src/vs/languages/css/common/buildscripts/css-schema.xml index 6feb05a51cd..f5bbd17941c 100644 --- a/src/vs/languages/css/common/buildscripts/css-schema.xml +++ b/src/vs/languages/css/common/buildscripts/css-schema.xml @@ -867,36 +867,21 @@ - + Shorthand property for setting most background properties at the same place in the style sheet. - - Equivalent to '100%' for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset. - - - Equivalent to '50%' ('left 50%') for the horizontal position if the horizontal position is not otherwise specified, or '50%' ('top 50%') for the vertical position if it is. - The background is fixed with regard to the viewport. In paged media where there is no viewport, a 'fixed' background is fixed with respect to the page box and therefore replicated on every page. - - Equivalent to '0%' for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset. - The background is fixed with regard to the element's contents: if the element has a scrolling mechanism, the background scrolls with the element's contents. A value of 'none' counts as an image layer but draws nothing. - - Equivalent to '100%' for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset. - The background is fixed with regard to the element itself and does not scroll with its contents. (It is effectively attached to the element's border.) - - Equivalent to '0%' for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset. - diff --git a/src/vs/languages/css/common/services/browsers.js b/src/vs/languages/css/common/services/browsers.js index a2075086398..cdea41933bf 100644 --- a/src/vs/languages/css/common/services/browsers.js +++ b/src/vs/languages/css/common/services/browsers.js @@ -1086,39 +1086,19 @@ exports.data ={ { "name": "background", "desc": "Shorthand property for setting most background properties at the same place in the style sheet.", - "restriction": "enum, image, color, length, repeat, percentage, box", + "restriction": "enum, image, color, position, length, repeat, percentage, box", "values": [ - { - "name": "bottom", - "desc": "Equivalent to '100%' for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset." - }, - { - "name": "center", - "desc": "Equivalent to '50%' ('left 50%') for the horizontal position if the horizontal position is not otherwise specified, or '50%' ('top 50%') for the vertical position if it is." - }, { "name": "fixed", "desc": "The background is fixed with regard to the viewport. In paged media where there is no viewport, a 'fixed' background is fixed with respect to the page box and therefore replicated on every page." }, - { - "name": "left", - "desc": "Equivalent to '0%' for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset." - }, { "name": "local", "desc": "The background is fixed with regard to the element's contents: if the element has a scrolling mechanism, the background scrolls with the element's contents." }, - { - "name": "right", - "desc": "Equivalent to '100%' for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset." - }, { "name": "scroll", "desc": "The background is fixed with regard to the element itself and does not scroll with its contents. (It is effectively attached to the element's border.)" - }, - { - "name": "top", - "desc": "Equivalent to '0%' for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset." } ] }, -- GitLab