cssstyle 1.1.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +3 -0
- package/.eslintrc.js +50 -0
- package/.travis.yml +15 -0
- package/README.md +1 -1
- package/lib/CSSStyleDeclaration.js +224 -202
- package/lib/allExtraProperties.js +248 -0
- package/lib/allProperties.js +457 -0
- package/lib/constants.js +6 -0
- package/lib/implementedProperties.js +90 -0
- package/lib/named_colors.json +152 -0
- package/lib/parsers.js +560 -533
- package/lib/properties/azimuth.js +59 -57
- package/lib/properties/background.js +9 -14
- package/lib/properties/backgroundAttachment.js +17 -15
- package/lib/properties/backgroundColor.js +24 -21
- package/lib/properties/backgroundImage.js +20 -17
- package/lib/properties/backgroundPosition.js +40 -38
- package/lib/properties/backgroundRepeat.js +20 -13
- package/lib/properties/border.js +20 -36
- package/lib/properties/borderBottom.js +7 -13
- package/lib/properties/borderBottomColor.js +11 -11
- package/lib/properties/borderBottomStyle.js +14 -14
- package/lib/properties/borderBottomWidth.js +11 -11
- package/lib/properties/borderCollapse.js +17 -16
- package/lib/properties/borderColor.js +17 -15
- package/lib/properties/borderLeft.js +7 -13
- package/lib/properties/borderLeftColor.js +11 -11
- package/lib/properties/borderLeftStyle.js +14 -14
- package/lib/properties/borderLeftWidth.js +11 -11
- package/lib/properties/borderRight.js +7 -13
- package/lib/properties/borderRightColor.js +11 -11
- package/lib/properties/borderRightStyle.js +14 -14
- package/lib/properties/borderRightWidth.js +11 -11
- package/lib/properties/borderSpacing.js +26 -30
- package/lib/properties/borderStyle.js +24 -13
- package/lib/properties/borderTop.js +7 -12
- package/lib/properties/borderTopColor.js +11 -11
- package/lib/properties/borderTopStyle.js +14 -14
- package/lib/properties/borderTopWidth.js +10 -10
- package/lib/properties/borderWidth.js +29 -30
- package/lib/properties/bottom.js +8 -8
- package/lib/properties/clear.js +9 -9
- package/lib/properties/clip.js +37 -39
- package/lib/properties/color.js +8 -8
- package/lib/properties/cssFloat.js +8 -8
- package/lib/properties/flex.js +45 -0
- package/lib/properties/flexBasis.js +28 -0
- package/lib/properties/flexGrow.js +19 -0
- package/lib/properties/flexShrink.js +19 -0
- package/lib/properties/float.js +12 -0
- package/lib/properties/floodColor.js +8 -8
- package/lib/properties/font.js +27 -24
- package/lib/properties/fontFamily.js +21 -21
- package/lib/properties/fontSize.js +16 -13
- package/lib/properties/fontStyle.js +10 -10
- package/lib/properties/fontVariant.js +9 -9
- package/lib/properties/fontWeight.js +25 -10
- package/lib/properties/height.js +15 -15
- package/lib/properties/left.js +8 -8
- package/lib/properties/lightingColor.js +8 -8
- package/lib/properties/lineHeight.js +16 -11
- package/lib/properties/margin.js +49 -40
- package/lib/properties/marginBottom.js +6 -6
- package/lib/properties/marginLeft.js +6 -6
- package/lib/properties/marginRight.js +6 -6
- package/lib/properties/marginTop.js +6 -6
- package/lib/properties/opacity.js +8 -8
- package/lib/properties/outlineColor.js +8 -8
- package/lib/properties/padding.js +42 -33
- package/lib/properties/paddingBottom.js +6 -6
- package/lib/properties/paddingLeft.js +6 -6
- package/lib/properties/paddingRight.js +6 -6
- package/lib/properties/paddingTop.js +6 -6
- package/lib/properties/right.js +8 -8
- package/lib/properties/stopColor.js +8 -8
- package/lib/properties/textLineThroughColor.js +8 -8
- package/lib/properties/textOverlineColor.js +8 -8
- package/lib/properties/textUnderlineColor.js +8 -8
- package/lib/properties/top.js +8 -8
- package/lib/properties/webkitBorderAfterColor.js +8 -8
- package/lib/properties/webkitBorderBeforeColor.js +8 -8
- package/lib/properties/webkitBorderEndColor.js +8 -8
- package/lib/properties/webkitBorderStartColor.js +8 -8
- package/lib/properties/webkitColumnRuleColor.js +8 -8
- package/lib/properties/webkitMatchNearestMailBlockquoteColor.js +8 -8
- package/lib/properties/webkitTapHighlightColor.js +8 -8
- package/lib/properties/webkitTextEmphasisColor.js +8 -8
- package/lib/properties/webkitTextFillColor.js +8 -8
- package/lib/properties/webkitTextStrokeColor.js +8 -8
- package/lib/properties/width.js +15 -15
- package/lib/properties.js +216 -4342
- package/lib/utils/getBasicPropertyDescriptor.js +14 -0
- package/package.json +28 -10
- package/scripts/download_latest_properties.js +88 -0
- package/scripts/generate_implemented_properties.js +61 -0
- package/scripts/generate_properties.js +107 -117
- package/tests/tests.js +662 -439
- package/lib/properties/alignContent.js +0 -12
- package/lib/properties/alignItems.js +0 -12
- package/lib/properties/alignmentBaseline.js +0 -12
- package/lib/properties/backgroundClip.js +0 -12
- package/lib/properties/backgroundOrigin.js +0 -12
- package/lib/properties/backgroundPositionX.js +0 -12
- package/lib/properties/backgroundPositionY.js +0 -12
- package/lib/properties/backgroundRepeatX.js +0 -12
- package/lib/properties/backgroundRepeatY.js +0 -12
- package/lib/properties/backgroundSize.js +0 -12
- package/lib/properties/baselineShift.js +0 -12
- package/lib/properties/borderBottomLeftRadius.js +0 -12
- package/lib/properties/borderBottomRightRadius.js +0 -12
- package/lib/properties/borderImage.js +0 -12
- package/lib/properties/borderImageOutset.js +0 -12
- package/lib/properties/borderImageRepeat.js +0 -12
- package/lib/properties/borderImageSlice.js +0 -12
- package/lib/properties/borderImageSource.js +0 -12
- package/lib/properties/borderImageWidth.js +0 -12
- package/lib/properties/borderRadius.js +0 -12
- package/lib/properties/borderTopLeftRadius.js +0 -12
- package/lib/properties/borderTopRightRadius.js +0 -12
- package/lib/properties/boxShadow.js +0 -12
- package/lib/properties/boxSizing.js +0 -12
- package/lib/properties/captionSide.js +0 -12
- package/lib/properties/colorInterpolation.js +0 -12
- package/lib/properties/colorInterpolationFilters.js +0 -12
- package/lib/properties/colorProfile.js +0 -12
- package/lib/properties/colorRendering.js +0 -12
- package/lib/properties/content.js +0 -12
- package/lib/properties/counterIncrement.js +0 -12
- package/lib/properties/counterReset.js +0 -12
- package/lib/properties/cue.js +0 -12
- package/lib/properties/cueAfter.js +0 -12
- package/lib/properties/cueBefore.js +0 -12
- package/lib/properties/cursor.js +0 -12
- package/lib/properties/direction.js +0 -12
- package/lib/properties/display.js +0 -12
- package/lib/properties/dominantBaseline.js +0 -12
- package/lib/properties/elevation.js +0 -12
- package/lib/properties/emptyCells.js +0 -12
- package/lib/properties/enableBackground.js +0 -12
- package/lib/properties/fill.js +0 -12
- package/lib/properties/fillOpacity.js +0 -12
- package/lib/properties/fillRule.js +0 -12
- package/lib/properties/filter.js +0 -12
- package/lib/properties/flexDirection.js +0 -12
- package/lib/properties/flexFlow.js +0 -12
- package/lib/properties/flexWrap.js +0 -12
- package/lib/properties/floodOpacity.js +0 -12
- package/lib/properties/fontSizeAdjust.js +0 -12
- package/lib/properties/fontStretch.js +0 -12
- package/lib/properties/glyphOrientationHorizontal.js +0 -12
- package/lib/properties/glyphOrientationVertical.js +0 -12
- package/lib/properties/imageRendering.js +0 -12
- package/lib/properties/justifyContent.js +0 -12
- package/lib/properties/kerning.js +0 -12
- package/lib/properties/letterSpacing.js +0 -12
- package/lib/properties/listStyle.js +0 -12
- package/lib/properties/listStyleImage.js +0 -12
- package/lib/properties/listStylePosition.js +0 -12
- package/lib/properties/listStyleType.js +0 -12
- package/lib/properties/marker.js +0 -12
- package/lib/properties/markerEnd.js +0 -12
- package/lib/properties/markerMid.js +0 -12
- package/lib/properties/markerOffset.js +0 -12
- package/lib/properties/markerStart.js +0 -12
- package/lib/properties/marks.js +0 -12
- package/lib/properties/mask.js +0 -12
- package/lib/properties/maxHeight.js +0 -12
- package/lib/properties/maxWidth.js +0 -12
- package/lib/properties/minHeight.js +0 -12
- package/lib/properties/minWidth.js +0 -12
- package/lib/properties/orphans.js +0 -12
- package/lib/properties/outline.js +0 -12
- package/lib/properties/outlineOffset.js +0 -12
- package/lib/properties/outlineStyle.js +0 -12
- package/lib/properties/outlineWidth.js +0 -12
- package/lib/properties/overflow.js +0 -12
- package/lib/properties/overflowX.js +0 -12
- package/lib/properties/overflowY.js +0 -12
- package/lib/properties/page.js +0 -12
- package/lib/properties/pageBreakAfter.js +0 -12
- package/lib/properties/pageBreakBefore.js +0 -12
- package/lib/properties/pageBreakInside.js +0 -12
- package/lib/properties/pause.js +0 -12
- package/lib/properties/pauseAfter.js +0 -12
- package/lib/properties/pauseBefore.js +0 -12
- package/lib/properties/pitch.js +0 -12
- package/lib/properties/pitchRange.js +0 -12
- package/lib/properties/playDuring.js +0 -12
- package/lib/properties/pointerEvents.js +0 -12
- package/lib/properties/position.js +0 -12
- package/lib/properties/quotes.js +0 -12
- package/lib/properties/resize.js +0 -12
- package/lib/properties/richness.js +0 -12
- package/lib/properties/shapeRendering.js +0 -12
- package/lib/properties/size.js +0 -12
- package/lib/properties/speak.js +0 -12
- package/lib/properties/speakHeader.js +0 -12
- package/lib/properties/speakNumeral.js +0 -12
- package/lib/properties/speakPunctuation.js +0 -12
- package/lib/properties/speechRate.js +0 -12
- package/lib/properties/src.js +0 -12
- package/lib/properties/stopOpacity.js +0 -12
- package/lib/properties/stress.js +0 -12
- package/lib/properties/stroke.js +0 -12
- package/lib/properties/strokeDasharray.js +0 -12
- package/lib/properties/strokeDashoffset.js +0 -12
- package/lib/properties/strokeLinecap.js +0 -12
- package/lib/properties/strokeLinejoin.js +0 -12
- package/lib/properties/strokeMiterlimit.js +0 -12
- package/lib/properties/strokeOpacity.js +0 -12
- package/lib/properties/strokeWidth.js +0 -12
- package/lib/properties/tableLayout.js +0 -12
- package/lib/properties/textAlign.js +0 -12
- package/lib/properties/textAnchor.js +0 -12
- package/lib/properties/textDecoration.js +0 -12
- package/lib/properties/textIndent.js +0 -12
- package/lib/properties/textLineThrough.js +0 -12
- package/lib/properties/textLineThroughMode.js +0 -12
- package/lib/properties/textLineThroughStyle.js +0 -12
- package/lib/properties/textLineThroughWidth.js +0 -12
- package/lib/properties/textOverflow.js +0 -12
- package/lib/properties/textOverline.js +0 -12
- package/lib/properties/textOverlineMode.js +0 -12
- package/lib/properties/textOverlineStyle.js +0 -12
- package/lib/properties/textOverlineWidth.js +0 -12
- package/lib/properties/textRendering.js +0 -12
- package/lib/properties/textShadow.js +0 -12
- package/lib/properties/textTransform.js +0 -12
- package/lib/properties/textUnderline.js +0 -12
- package/lib/properties/textUnderlineMode.js +0 -12
- package/lib/properties/textUnderlineStyle.js +0 -12
- package/lib/properties/textUnderlineWidth.js +0 -12
- package/lib/properties/transform.js +0 -12
- package/lib/properties/unicodeBidi.js +0 -12
- package/lib/properties/unicodeRange.js +0 -12
- package/lib/properties/vectorEffect.js +0 -12
- package/lib/properties/verticalAlign.js +0 -12
- package/lib/properties/visibility.js +0 -12
- package/lib/properties/voiceFamily.js +0 -12
- package/lib/properties/volume.js +0 -12
- package/lib/properties/webkitAnimation.js +0 -12
- package/lib/properties/webkitAnimationDelay.js +0 -12
- package/lib/properties/webkitAnimationDirection.js +0 -12
- package/lib/properties/webkitAnimationDuration.js +0 -12
- package/lib/properties/webkitAnimationFillMode.js +0 -12
- package/lib/properties/webkitAnimationIterationCount.js +0 -12
- package/lib/properties/webkitAnimationName.js +0 -12
- package/lib/properties/webkitAnimationPlayState.js +0 -12
- package/lib/properties/webkitAnimationTimingFunction.js +0 -12
- package/lib/properties/webkitAppearance.js +0 -12
- package/lib/properties/webkitAspectRatio.js +0 -12
- package/lib/properties/webkitBackfaceVisibility.js +0 -12
- package/lib/properties/webkitBackgroundClip.js +0 -12
- package/lib/properties/webkitBackgroundComposite.js +0 -12
- package/lib/properties/webkitBackgroundOrigin.js +0 -12
- package/lib/properties/webkitBackgroundSize.js +0 -12
- package/lib/properties/webkitBorderAfter.js +0 -12
- package/lib/properties/webkitBorderAfterStyle.js +0 -12
- package/lib/properties/webkitBorderAfterWidth.js +0 -12
- package/lib/properties/webkitBorderBefore.js +0 -12
- package/lib/properties/webkitBorderBeforeStyle.js +0 -12
- package/lib/properties/webkitBorderBeforeWidth.js +0 -12
- package/lib/properties/webkitBorderEnd.js +0 -12
- package/lib/properties/webkitBorderEndStyle.js +0 -12
- package/lib/properties/webkitBorderEndWidth.js +0 -12
- package/lib/properties/webkitBorderFit.js +0 -12
- package/lib/properties/webkitBorderHorizontalSpacing.js +0 -12
- package/lib/properties/webkitBorderImage.js +0 -12
- package/lib/properties/webkitBorderRadius.js +0 -12
- package/lib/properties/webkitBorderStart.js +0 -12
- package/lib/properties/webkitBorderStartStyle.js +0 -12
- package/lib/properties/webkitBorderStartWidth.js +0 -12
- package/lib/properties/webkitBorderVerticalSpacing.js +0 -12
- package/lib/properties/webkitBoxAlign.js +0 -12
- package/lib/properties/webkitBoxDirection.js +0 -12
- package/lib/properties/webkitBoxFlex.js +0 -12
- package/lib/properties/webkitBoxFlexGroup.js +0 -12
- package/lib/properties/webkitBoxLines.js +0 -12
- package/lib/properties/webkitBoxOrdinalGroup.js +0 -12
- package/lib/properties/webkitBoxOrient.js +0 -12
- package/lib/properties/webkitBoxPack.js +0 -12
- package/lib/properties/webkitBoxReflect.js +0 -12
- package/lib/properties/webkitBoxShadow.js +0 -12
- package/lib/properties/webkitColorCorrection.js +0 -12
- package/lib/properties/webkitColumnAxis.js +0 -12
- package/lib/properties/webkitColumnBreakAfter.js +0 -12
- package/lib/properties/webkitColumnBreakBefore.js +0 -12
- package/lib/properties/webkitColumnBreakInside.js +0 -12
- package/lib/properties/webkitColumnCount.js +0 -12
- package/lib/properties/webkitColumnGap.js +0 -12
- package/lib/properties/webkitColumnRule.js +0 -12
- package/lib/properties/webkitColumnRuleStyle.js +0 -12
- package/lib/properties/webkitColumnRuleWidth.js +0 -12
- package/lib/properties/webkitColumnSpan.js +0 -12
- package/lib/properties/webkitColumnWidth.js +0 -12
- package/lib/properties/webkitColumns.js +0 -12
- package/lib/properties/webkitFilter.js +0 -12
- package/lib/properties/webkitFlexAlign.js +0 -12
- package/lib/properties/webkitFlexDirection.js +0 -12
- package/lib/properties/webkitFlexFlow.js +0 -12
- package/lib/properties/webkitFlexItemAlign.js +0 -12
- package/lib/properties/webkitFlexLinePack.js +0 -12
- package/lib/properties/webkitFlexOrder.js +0 -12
- package/lib/properties/webkitFlexPack.js +0 -12
- package/lib/properties/webkitFlexWrap.js +0 -12
- package/lib/properties/webkitFlowFrom.js +0 -12
- package/lib/properties/webkitFlowInto.js +0 -12
- package/lib/properties/webkitFontFeatureSettings.js +0 -12
- package/lib/properties/webkitFontKerning.js +0 -12
- package/lib/properties/webkitFontSizeDelta.js +0 -12
- package/lib/properties/webkitFontSmoothing.js +0 -12
- package/lib/properties/webkitFontVariantLigatures.js +0 -12
- package/lib/properties/webkitHighlight.js +0 -12
- package/lib/properties/webkitHyphenateCharacter.js +0 -12
- package/lib/properties/webkitHyphenateLimitAfter.js +0 -12
- package/lib/properties/webkitHyphenateLimitBefore.js +0 -12
- package/lib/properties/webkitHyphenateLimitLines.js +0 -12
- package/lib/properties/webkitHyphens.js +0 -12
- package/lib/properties/webkitLineAlign.js +0 -12
- package/lib/properties/webkitLineBoxContain.js +0 -12
- package/lib/properties/webkitLineBreak.js +0 -12
- package/lib/properties/webkitLineClamp.js +0 -12
- package/lib/properties/webkitLineGrid.js +0 -12
- package/lib/properties/webkitLineSnap.js +0 -12
- package/lib/properties/webkitLocale.js +0 -12
- package/lib/properties/webkitLogicalHeight.js +0 -12
- package/lib/properties/webkitLogicalWidth.js +0 -12
- package/lib/properties/webkitMarginAfter.js +0 -12
- package/lib/properties/webkitMarginAfterCollapse.js +0 -12
- package/lib/properties/webkitMarginBefore.js +0 -12
- package/lib/properties/webkitMarginBeforeCollapse.js +0 -12
- package/lib/properties/webkitMarginBottomCollapse.js +0 -12
- package/lib/properties/webkitMarginCollapse.js +0 -12
- package/lib/properties/webkitMarginEnd.js +0 -12
- package/lib/properties/webkitMarginStart.js +0 -12
- package/lib/properties/webkitMarginTopCollapse.js +0 -12
- package/lib/properties/webkitMarquee.js +0 -12
- package/lib/properties/webkitMarqueeDirection.js +0 -12
- package/lib/properties/webkitMarqueeIncrement.js +0 -12
- package/lib/properties/webkitMarqueeRepetition.js +0 -12
- package/lib/properties/webkitMarqueeSpeed.js +0 -12
- package/lib/properties/webkitMarqueeStyle.js +0 -12
- package/lib/properties/webkitMask.js +0 -12
- package/lib/properties/webkitMaskAttachment.js +0 -12
- package/lib/properties/webkitMaskBoxImage.js +0 -12
- package/lib/properties/webkitMaskBoxImageOutset.js +0 -12
- package/lib/properties/webkitMaskBoxImageRepeat.js +0 -12
- package/lib/properties/webkitMaskBoxImageSlice.js +0 -12
- package/lib/properties/webkitMaskBoxImageSource.js +0 -12
- package/lib/properties/webkitMaskBoxImageWidth.js +0 -12
- package/lib/properties/webkitMaskClip.js +0 -12
- package/lib/properties/webkitMaskComposite.js +0 -12
- package/lib/properties/webkitMaskImage.js +0 -12
- package/lib/properties/webkitMaskOrigin.js +0 -12
- package/lib/properties/webkitMaskPosition.js +0 -12
- package/lib/properties/webkitMaskPositionX.js +0 -12
- package/lib/properties/webkitMaskPositionY.js +0 -12
- package/lib/properties/webkitMaskRepeat.js +0 -12
- package/lib/properties/webkitMaskRepeatX.js +0 -12
- package/lib/properties/webkitMaskRepeatY.js +0 -12
- package/lib/properties/webkitMaskSize.js +0 -12
- package/lib/properties/webkitMaxLogicalHeight.js +0 -12
- package/lib/properties/webkitMaxLogicalWidth.js +0 -12
- package/lib/properties/webkitMinLogicalHeight.js +0 -12
- package/lib/properties/webkitMinLogicalWidth.js +0 -12
- package/lib/properties/webkitNbspMode.js +0 -12
- package/lib/properties/webkitOverflowScrolling.js +0 -12
- package/lib/properties/webkitPaddingAfter.js +0 -12
- package/lib/properties/webkitPaddingBefore.js +0 -12
- package/lib/properties/webkitPaddingEnd.js +0 -12
- package/lib/properties/webkitPaddingStart.js +0 -12
- package/lib/properties/webkitPerspective.js +0 -12
- package/lib/properties/webkitPerspectiveOrigin.js +0 -12
- package/lib/properties/webkitPerspectiveOriginX.js +0 -12
- package/lib/properties/webkitPerspectiveOriginY.js +0 -12
- package/lib/properties/webkitPrintColorAdjust.js +0 -12
- package/lib/properties/webkitRegionBreakAfter.js +0 -12
- package/lib/properties/webkitRegionBreakBefore.js +0 -12
- package/lib/properties/webkitRegionBreakInside.js +0 -12
- package/lib/properties/webkitRegionOverflow.js +0 -12
- package/lib/properties/webkitRtlOrdering.js +0 -12
- package/lib/properties/webkitSvgShadow.js +0 -12
- package/lib/properties/webkitTextCombine.js +0 -12
- package/lib/properties/webkitTextDecorationsInEffect.js +0 -12
- package/lib/properties/webkitTextEmphasis.js +0 -12
- package/lib/properties/webkitTextEmphasisPosition.js +0 -12
- package/lib/properties/webkitTextEmphasisStyle.js +0 -12
- package/lib/properties/webkitTextOrientation.js +0 -12
- package/lib/properties/webkitTextSecurity.js +0 -12
- package/lib/properties/webkitTextSizeAdjust.js +0 -12
- package/lib/properties/webkitTextStroke.js +0 -12
- package/lib/properties/webkitTextStrokeWidth.js +0 -12
- package/lib/properties/webkitTransform.js +0 -12
- package/lib/properties/webkitTransformOrigin.js +0 -12
- package/lib/properties/webkitTransformOriginX.js +0 -12
- package/lib/properties/webkitTransformOriginY.js +0 -12
- package/lib/properties/webkitTransformOriginZ.js +0 -12
- package/lib/properties/webkitTransformStyle.js +0 -12
- package/lib/properties/webkitTransition.js +0 -12
- package/lib/properties/webkitTransitionDelay.js +0 -12
- package/lib/properties/webkitTransitionDuration.js +0 -12
- package/lib/properties/webkitTransitionProperty.js +0 -12
- package/lib/properties/webkitTransitionTimingFunction.js +0 -12
- package/lib/properties/webkitUserDrag.js +0 -12
- package/lib/properties/webkitUserModify.js +0 -12
- package/lib/properties/webkitUserSelect.js +0 -12
- package/lib/properties/webkitWrap.js +0 -12
- package/lib/properties/webkitWrapFlow.js +0 -12
- package/lib/properties/webkitWrapMargin.js +0 -12
- package/lib/properties/webkitWrapPadding.js +0 -12
- package/lib/properties/webkitWrapShapeInside.js +0 -12
- package/lib/properties/webkitWrapShapeOutside.js +0 -12
- package/lib/properties/webkitWrapThrough.js +0 -12
- package/lib/properties/webkitWritingMode.js +0 -12
- package/lib/properties/whiteSpace.js +0 -12
- package/lib/properties/widows.js +0 -12
- package/lib/properties/wordBreak.js +0 -12
- package/lib/properties/wordSpacing.js +0 -12
- package/lib/properties/wordWrap.js +0 -12
- package/lib/properties/writingMode.js +0 -12
- package/lib/properties/zIndex.js +0 -12
- package/lib/properties/zoom.js +0 -12
- package/lib/validProperties.js +0 -410
- package/scripts/generate_valid_properties.js +0 -62
|
@@ -3,63 +3,65 @@
|
|
|
3
3
|
var parsers = require('../parsers');
|
|
4
4
|
|
|
5
5
|
module.exports.definition = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
set: function(v) {
|
|
7
|
+
var valueType = parsers.valueType(v);
|
|
8
|
+
if (valueType === parsers.TYPES.ANGLE) {
|
|
9
|
+
return this._setProperty('azimuth', parsers.parseAngle(v));
|
|
10
|
+
}
|
|
11
|
+
if (valueType === parsers.TYPES.KEYWORD) {
|
|
12
|
+
var keywords = v
|
|
13
|
+
.toLowerCase()
|
|
14
|
+
.trim()
|
|
15
|
+
.split(/\s+/);
|
|
16
|
+
var hasBehind = false;
|
|
17
|
+
if (keywords.length > 2) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
var behindIndex = keywords.indexOf('behind');
|
|
21
|
+
hasBehind = behindIndex !== -1;
|
|
19
22
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
return this._setProperty('azimuth', keywords[0]);
|
|
31
|
-
}
|
|
32
|
-
if (keywords[0] === 'behind') {
|
|
33
|
-
return this._setProperty('azimuth', '180deg');
|
|
34
|
-
}
|
|
35
|
-
var deg;
|
|
36
|
-
switch (keywords[0]) {
|
|
37
|
-
case 'left-side':
|
|
38
|
-
return this._setProperty('azimuth', '270deg');
|
|
39
|
-
case 'far-left':
|
|
40
|
-
return this._setProperty('azimuth', (hasBehind ? 240 : 300) + 'deg');
|
|
41
|
-
case 'left':
|
|
42
|
-
return this._setProperty('azimuth', (hasBehind ? 220 : 320) + 'deg');
|
|
43
|
-
case 'center-left':
|
|
44
|
-
return this._setProperty('azimuth', (hasBehind ? 200 : 340) + 'deg');
|
|
45
|
-
case 'center':
|
|
46
|
-
return this._setProperty('azimuth', (hasBehind ? 180 : 0) + 'deg');
|
|
47
|
-
case 'center-right':
|
|
48
|
-
return this._setProperty('azimuth', (hasBehind ? 160 : 20) + 'deg');
|
|
49
|
-
case 'right':
|
|
50
|
-
return this._setProperty('azimuth', (hasBehind ? 140 : 40) + 'deg');
|
|
51
|
-
case 'far-right':
|
|
52
|
-
return this._setProperty('azimuth', (hasBehind ? 120 : 60) + 'deg');
|
|
53
|
-
case 'right-side':
|
|
54
|
-
return this._setProperty('azimuth', '90deg');
|
|
55
|
-
default:
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
23
|
+
if (keywords.length === 2) {
|
|
24
|
+
if (!hasBehind) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
keywords.splice(behindIndex, 1);
|
|
28
|
+
}
|
|
29
|
+
if (keywords[0] === 'leftwards' || keywords[0] === 'rightwards') {
|
|
30
|
+
if (hasBehind) {
|
|
31
|
+
return;
|
|
58
32
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
33
|
+
return this._setProperty('azimuth', keywords[0]);
|
|
34
|
+
}
|
|
35
|
+
if (keywords[0] === 'behind') {
|
|
36
|
+
return this._setProperty('azimuth', '180deg');
|
|
37
|
+
}
|
|
38
|
+
switch (keywords[0]) {
|
|
39
|
+
case 'left-side':
|
|
40
|
+
return this._setProperty('azimuth', '270deg');
|
|
41
|
+
case 'far-left':
|
|
42
|
+
return this._setProperty('azimuth', (hasBehind ? 240 : 300) + 'deg');
|
|
43
|
+
case 'left':
|
|
44
|
+
return this._setProperty('azimuth', (hasBehind ? 220 : 320) + 'deg');
|
|
45
|
+
case 'center-left':
|
|
46
|
+
return this._setProperty('azimuth', (hasBehind ? 200 : 340) + 'deg');
|
|
47
|
+
case 'center':
|
|
48
|
+
return this._setProperty('azimuth', (hasBehind ? 180 : 0) + 'deg');
|
|
49
|
+
case 'center-right':
|
|
50
|
+
return this._setProperty('azimuth', (hasBehind ? 160 : 20) + 'deg');
|
|
51
|
+
case 'right':
|
|
52
|
+
return this._setProperty('azimuth', (hasBehind ? 140 : 40) + 'deg');
|
|
53
|
+
case 'far-right':
|
|
54
|
+
return this._setProperty('azimuth', (hasBehind ? 120 : 60) + 'deg');
|
|
55
|
+
case 'right-side':
|
|
56
|
+
return this._setProperty('azimuth', '90deg');
|
|
57
|
+
default:
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
get: function() {
|
|
63
|
+
return this.getPropertyValue('azimuth');
|
|
64
|
+
},
|
|
65
|
+
enumerable: true,
|
|
66
|
+
configurable: true,
|
|
65
67
|
};
|
|
@@ -1,24 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var shorthandParser = require('../parsers').shorthandParser;
|
|
4
3
|
var shorthandSetter = require('../parsers').shorthandSetter;
|
|
5
4
|
var shorthandGetter = require('../parsers').shorthandGetter;
|
|
6
5
|
|
|
7
6
|
var shorthand_for = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
module.exports.isValid = function isValid(v) {
|
|
16
|
-
return shorthandParser(v, shorthand_for) !== undefined;
|
|
7
|
+
'background-color': require('./backgroundColor'),
|
|
8
|
+
'background-image': require('./backgroundImage'),
|
|
9
|
+
'background-repeat': require('./backgroundRepeat'),
|
|
10
|
+
'background-attachment': require('./backgroundAttachment'),
|
|
11
|
+
'background-position': require('./backgroundPosition'),
|
|
17
12
|
};
|
|
18
13
|
|
|
19
14
|
module.exports.definition = {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
set: shorthandSetter('background', shorthand_for),
|
|
16
|
+
get: shorthandGetter('background', shorthand_for),
|
|
17
|
+
enumerable: true,
|
|
18
|
+
configurable: true,
|
|
24
19
|
};
|
|
@@ -2,21 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
var parsers = require('../parsers');
|
|
4
4
|
|
|
5
|
-
var isValid = module.exports.isValid = function isValid(v) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
var isValid = (module.exports.isValid = function isValid(v) {
|
|
6
|
+
return (
|
|
7
|
+
parsers.valueType(v) === parsers.TYPES.KEYWORD &&
|
|
8
|
+
(v.toLowerCase() === 'scroll' || v.toLowerCase() === 'fixed' || v.toLowerCase() === 'inherit')
|
|
9
|
+
);
|
|
10
|
+
});
|
|
9
11
|
|
|
10
12
|
module.exports.definition = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
set: function(v) {
|
|
14
|
+
if (!isValid(v)) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
this._setProperty('background-attachment', v);
|
|
18
|
+
},
|
|
19
|
+
get: function() {
|
|
20
|
+
return this.getPropertyValue('background-attachment');
|
|
21
|
+
},
|
|
22
|
+
enumerable: true,
|
|
23
|
+
configurable: true,
|
|
22
24
|
};
|
|
@@ -3,31 +3,34 @@
|
|
|
3
3
|
var parsers = require('../parsers');
|
|
4
4
|
|
|
5
5
|
var parse = function parse(v) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
var parsed = parsers.parseColor(v);
|
|
7
|
+
if (parsed !== undefined) {
|
|
8
|
+
return parsed;
|
|
9
|
+
}
|
|
10
|
+
if (
|
|
11
|
+
parsers.valueType(v) === parsers.TYPES.KEYWORD &&
|
|
12
|
+
(v.toLowerCase() === 'transparent' || v.toLowerCase() === 'inherit')
|
|
13
|
+
) {
|
|
14
|
+
return v;
|
|
15
|
+
}
|
|
16
|
+
return undefined;
|
|
14
17
|
};
|
|
15
18
|
|
|
16
19
|
module.exports.isValid = function isValid(v) {
|
|
17
|
-
|
|
20
|
+
return parse(v) !== undefined;
|
|
18
21
|
};
|
|
19
22
|
|
|
20
23
|
module.exports.definition = {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
set: function(v) {
|
|
25
|
+
var parsed = parse(v);
|
|
26
|
+
if (parsed === undefined) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
this._setProperty('background-color', parsed);
|
|
30
|
+
},
|
|
31
|
+
get: function() {
|
|
32
|
+
return this.getPropertyValue('background-color');
|
|
33
|
+
},
|
|
34
|
+
enumerable: true,
|
|
35
|
+
configurable: true,
|
|
33
36
|
};
|
|
@@ -3,27 +3,30 @@
|
|
|
3
3
|
var parsers = require('../parsers');
|
|
4
4
|
|
|
5
5
|
var parse = function parse(v) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
var parsed = parsers.parseUrl(v);
|
|
7
|
+
if (parsed !== undefined) {
|
|
8
|
+
return parsed;
|
|
9
|
+
}
|
|
10
|
+
if (
|
|
11
|
+
parsers.valueType(v) === parsers.TYPES.KEYWORD &&
|
|
12
|
+
(v.toLowerCase() === 'none' || v.toLowerCase() === 'inherit')
|
|
13
|
+
) {
|
|
14
|
+
return v;
|
|
15
|
+
}
|
|
16
|
+
return undefined;
|
|
14
17
|
};
|
|
15
18
|
|
|
16
19
|
module.exports.isValid = function isValid(v) {
|
|
17
|
-
|
|
20
|
+
return parse(v) !== undefined;
|
|
18
21
|
};
|
|
19
22
|
|
|
20
23
|
module.exports.definition = {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
set: function(v) {
|
|
25
|
+
this._setProperty('background-image', parse(v));
|
|
26
|
+
},
|
|
27
|
+
get: function() {
|
|
28
|
+
return this.getPropertyValue('background-image');
|
|
29
|
+
},
|
|
30
|
+
enumerable: true,
|
|
31
|
+
configurable: true,
|
|
29
32
|
};
|
|
@@ -5,52 +5,54 @@ var parsers = require('../parsers');
|
|
|
5
5
|
var valid_keywords = ['top', 'center', 'bottom', 'left', 'right'];
|
|
6
6
|
|
|
7
7
|
var parse = function parse(v) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
if (types[0] === parsers.TYPES.KEYWORD) {
|
|
24
|
-
if (valid_keywords.indexOf(v.toLowerCase()) !== -1 || v.toLowerCase() === 'inherit') {
|
|
25
|
-
return v;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return undefined;
|
|
29
|
-
}
|
|
30
|
-
if ((types[0] === parsers.TYPES.LENGTH || types[0] === parsers.TYPES.PERCENT) &&
|
|
31
|
-
(types[1] === parsers.TYPES.LENGTH || types[1] === parsers.TYPES.PERCENT)) {
|
|
32
|
-
return v;
|
|
33
|
-
}
|
|
34
|
-
if (types[0] !== parsers.TYPES.KEYWORD || types[1] !== parsers.TYPES.KEYWORD) {
|
|
35
|
-
return undefined;
|
|
8
|
+
if (v === '' || v === null) {
|
|
9
|
+
return undefined;
|
|
10
|
+
}
|
|
11
|
+
var parts = v.split(/\s+/);
|
|
12
|
+
if (parts.length > 2 || parts.length < 1) {
|
|
13
|
+
return undefined;
|
|
14
|
+
}
|
|
15
|
+
var types = [];
|
|
16
|
+
parts.forEach(function(part, index) {
|
|
17
|
+
types[index] = parsers.valueType(part);
|
|
18
|
+
});
|
|
19
|
+
if (parts.length === 1) {
|
|
20
|
+
if (types[0] === parsers.TYPES.LENGTH || types[0] === parsers.TYPES.PERCENT) {
|
|
21
|
+
return v;
|
|
36
22
|
}
|
|
37
|
-
if (
|
|
23
|
+
if (types[0] === parsers.TYPES.KEYWORD) {
|
|
24
|
+
if (valid_keywords.indexOf(v.toLowerCase()) !== -1 || v.toLowerCase() === 'inherit') {
|
|
38
25
|
return v;
|
|
26
|
+
}
|
|
39
27
|
}
|
|
40
28
|
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (
|
|
31
|
+
(types[0] === parsers.TYPES.LENGTH || types[0] === parsers.TYPES.PERCENT) &&
|
|
32
|
+
(types[1] === parsers.TYPES.LENGTH || types[1] === parsers.TYPES.PERCENT)
|
|
33
|
+
) {
|
|
34
|
+
return v;
|
|
35
|
+
}
|
|
36
|
+
if (types[0] !== parsers.TYPES.KEYWORD || types[1] !== parsers.TYPES.KEYWORD) {
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
if (valid_keywords.indexOf(parts[0]) !== -1 && valid_keywords.indexOf(parts[1]) !== -1) {
|
|
40
|
+
return v;
|
|
41
|
+
}
|
|
42
|
+
return undefined;
|
|
41
43
|
};
|
|
42
44
|
|
|
43
45
|
module.exports.isValid = function isValid(v) {
|
|
44
|
-
|
|
46
|
+
return parse(v) !== undefined;
|
|
45
47
|
};
|
|
46
48
|
|
|
47
49
|
module.exports.definition = {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
set: function(v) {
|
|
51
|
+
this._setProperty('background-position', parse(v));
|
|
52
|
+
},
|
|
53
|
+
get: function() {
|
|
54
|
+
return this.getPropertyValue('background-position');
|
|
55
|
+
},
|
|
56
|
+
enumerable: true,
|
|
57
|
+
configurable: true,
|
|
56
58
|
};
|
|
@@ -3,23 +3,30 @@
|
|
|
3
3
|
var parsers = require('../parsers');
|
|
4
4
|
|
|
5
5
|
var parse = function parse(v) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
if (
|
|
7
|
+
parsers.valueType(v) === parsers.TYPES.KEYWORD &&
|
|
8
|
+
(v.toLowerCase() === 'repeat' ||
|
|
9
|
+
v.toLowerCase() === 'repeat-x' ||
|
|
10
|
+
v.toLowerCase() === 'repeat-y' ||
|
|
11
|
+
v.toLowerCase() === 'no-repeat' ||
|
|
12
|
+
v.toLowerCase() === 'inherit')
|
|
13
|
+
) {
|
|
14
|
+
return v;
|
|
15
|
+
}
|
|
16
|
+
return undefined;
|
|
10
17
|
};
|
|
11
18
|
|
|
12
19
|
module.exports.isValid = function isValid(v) {
|
|
13
|
-
|
|
20
|
+
return parse(v) !== undefined;
|
|
14
21
|
};
|
|
15
22
|
|
|
16
23
|
module.exports.definition = {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
set: function(v) {
|
|
25
|
+
this._setProperty('background-repeat', parse(v));
|
|
26
|
+
},
|
|
27
|
+
get: function() {
|
|
28
|
+
return this.getPropertyValue('background-repeat');
|
|
29
|
+
},
|
|
30
|
+
enumerable: true,
|
|
31
|
+
configurable: true,
|
|
25
32
|
};
|
package/lib/properties/border.js
CHANGED
|
@@ -1,49 +1,33 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var shorthandParser = require('../parsers').shorthandParser;
|
|
4
3
|
var shorthandSetter = require('../parsers').shorthandSetter;
|
|
5
4
|
var shorthandGetter = require('../parsers').shorthandGetter;
|
|
6
5
|
|
|
7
6
|
var shorthand_for = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
var isValid = function isValid(v) {
|
|
14
|
-
return shorthandParser(v, shorthand_for) !== undefined;
|
|
15
|
-
};
|
|
16
|
-
module.exports.isValid = isValid;
|
|
17
|
-
|
|
18
|
-
var parser = function (v) {
|
|
19
|
-
if (v.toString().toLowerCase() === 'none') {
|
|
20
|
-
v = '';
|
|
21
|
-
}
|
|
22
|
-
if (isValid(v)) {
|
|
23
|
-
return v;
|
|
24
|
-
}
|
|
25
|
-
return undefined;
|
|
7
|
+
'border-width': require('./borderWidth'),
|
|
8
|
+
'border-style': require('./borderStyle'),
|
|
9
|
+
'border-color': require('./borderColor'),
|
|
26
10
|
};
|
|
27
11
|
|
|
28
12
|
var myShorthandSetter = shorthandSetter('border', shorthand_for);
|
|
29
13
|
var myShorthandGetter = shorthandGetter('border', shorthand_for);
|
|
30
14
|
|
|
31
15
|
module.exports.definition = {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
16
|
+
set: function(v) {
|
|
17
|
+
if (v.toString().toLowerCase() === 'none') {
|
|
18
|
+
v = '';
|
|
19
|
+
}
|
|
20
|
+
myShorthandSetter.call(this, v);
|
|
21
|
+
this.removeProperty('border-top');
|
|
22
|
+
this.removeProperty('border-left');
|
|
23
|
+
this.removeProperty('border-right');
|
|
24
|
+
this.removeProperty('border-bottom');
|
|
25
|
+
this._values['border-top'] = this._values.border;
|
|
26
|
+
this._values['border-left'] = this._values.border;
|
|
27
|
+
this._values['border-right'] = this._values.border;
|
|
28
|
+
this._values['border-bottom'] = this._values.border;
|
|
29
|
+
},
|
|
30
|
+
get: myShorthandGetter,
|
|
31
|
+
enumerable: true,
|
|
32
|
+
configurable: true,
|
|
49
33
|
};
|
|
@@ -2,22 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
var shorthandSetter = require('../parsers').shorthandSetter;
|
|
4
4
|
var shorthandGetter = require('../parsers').shorthandGetter;
|
|
5
|
-
var shorthandParser = require('../parsers').shorthandParser;
|
|
6
5
|
|
|
7
6
|
var shorthand_for = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
'border-bottom-width': require('./borderBottomWidth'),
|
|
8
|
+
'border-bottom-style': require('./borderBottomStyle'),
|
|
9
|
+
'border-bottom-color': require('./borderBottomColor'),
|
|
11
10
|
};
|
|
12
11
|
|
|
13
|
-
var isValid = function isValid(v) {
|
|
14
|
-
return shorthandParser(v, shorthand_for) !== undefined;
|
|
15
|
-
};
|
|
16
|
-
module.exports.isValid = isValid;
|
|
17
|
-
|
|
18
12
|
module.exports.definition = {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
set: shorthandSetter('border-bottom', shorthand_for),
|
|
14
|
+
get: shorthandGetter('border-bottom', shorthand_for),
|
|
15
|
+
enumerable: true,
|
|
16
|
+
configurable: true,
|
|
23
17
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var isValid = module.exports.isValid = require('./borderColor').isValid;
|
|
3
|
+
var isValid = (module.exports.isValid = require('./borderColor').isValid);
|
|
4
4
|
|
|
5
5
|
module.exports.definition = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
set: function(v) {
|
|
7
|
+
if (isValid(v)) {
|
|
8
|
+
this._setProperty('border-bottom-color', v);
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
get: function() {
|
|
12
|
+
return this.getPropertyValue('border-bottom-color');
|
|
13
|
+
},
|
|
14
|
+
enumerable: true,
|
|
15
|
+
configurable: true,
|
|
16
16
|
};
|
|
@@ -4,18 +4,18 @@ var isValid = require('./borderStyle').isValid;
|
|
|
4
4
|
module.exports.isValid = isValid;
|
|
5
5
|
|
|
6
6
|
module.exports.definition = {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
set: function(v) {
|
|
8
|
+
if (isValid(v)) {
|
|
9
|
+
if (v.toLowerCase() === 'none') {
|
|
10
|
+
v = '';
|
|
11
|
+
this.removeProperty('border-bottom-width');
|
|
12
|
+
}
|
|
13
|
+
this._setProperty('border-bottom-style', v);
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
get: function() {
|
|
17
|
+
return this.getPropertyValue('border-bottom-style');
|
|
18
|
+
},
|
|
19
|
+
enumerable: true,
|
|
20
|
+
configurable: true,
|
|
21
21
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var isValid = module.exports.isValid = require('./borderWidth').isValid;
|
|
3
|
+
var isValid = (module.exports.isValid = require('./borderWidth').isValid);
|
|
4
4
|
|
|
5
5
|
module.exports.definition = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
set: function(v) {
|
|
7
|
+
if (isValid(v)) {
|
|
8
|
+
this._setProperty('border-bottom-width', v);
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
get: function() {
|
|
12
|
+
return this.getPropertyValue('border-bottom-width');
|
|
13
|
+
},
|
|
14
|
+
enumerable: true,
|
|
15
|
+
configurable: true,
|
|
16
16
|
};
|