Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
background-size should not accept unitless lengths
https://bugs.webkit.org/show_bug.cgi?id=139029 rdar://97039770 Reviewed by Antti Koivisto and Tim Nguyen. Align with other browsers by not using unitless length parsing for background-size. * LayoutTests/fast/backgrounds/size/parsing-background-size-values-expected.txt: * LayoutTests/fast/backgrounds/size/parsing-inherit-expected.txt: * LayoutTests/fast/backgrounds/size/resources/parsing-background-size-values.js: (test): * LayoutTests/fast/backgrounds/size/resources/parsing-inherit.js: (test): * LayoutTests/imported/w3c/web-platform-tests/quirks/unitless-length/excluded-properties-002-expected.txt: * Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp: (WebCore::CSSPropertyParserHelpers::shouldAcceptUnitlessValue): (WebCore::CSSPropertyParserHelpers::IntegerTypeRawKnownTokenTypeNumberConsumer::consume): (WebCore::CSSPropertyParserHelpers::IntegerTypeKnownTokenTypeNumberConsumer::consume): (WebCore::CSSPropertyParserHelpers::NumberRawKnownTokenTypeNumberConsumer::consume): (WebCore::CSSPropertyParserHelpers::NumberCSSPrimitiveValueWithCalcWithKnownTokenTypeNumberConsumer::consume): (WebCore::CSSPropertyParserHelpers::PercentCSSPrimitiveValueWithCalcWithKnownTokenTypePercentConsumer::consume): (WebCore::CSSPropertyParserHelpers::consumeMetaConsumer): (WebCore::CSSPropertyParserHelpers::parseNonRelativeRGBParametersRaw): (WebCore::CSSPropertyParserHelpers::consumeColorInterpolationMethod): (WebCore::CSSPropertyParserHelpers::parseColorMixFunctionParametersRaw): (WebCore::CSSPropertyParserHelpers::consumePositionCoordinates): (WebCore::CSSPropertyParserHelpers::consumePrefixedRadialGradient): (WebCore::CSSPropertyParserHelpers::consumeRadialGradient): (WebCore::CSSPropertyParserHelpers::consumePrefixedLinearGradient): (WebCore::CSSPropertyParserHelpers::consumeLinearGradient): (WebCore::CSSPropertyParserHelpers::consumeConicGradient): (WebCore::CSSPropertyParserHelpers::consumeSingleShadow): (WebCore::CSSPropertyParserHelpers::consumeFamilyNameList): (WebCore::CSSPropertyParserHelpers::consumeFontVariantEastAsian): (WebCore::CSSPropertyParserHelpers::consumeFontVariantAlternates): (WebCore::CSSPropertyParserHelpers::consumeClip): (WebCore::CSSPropertyParserHelpers::consumeSteps): (WebCore::CSSPropertyParserHelpers::consumeCubicBezier): (WebCore::CSSPropertyParserHelpers::consumeSpringFunction): (WebCore::CSSPropertyParserHelpers::consumeTransformFunction): (WebCore::CSSPropertyParserHelpers::consumeAttr): (WebCore::CSSPropertyParserHelpers::consumeBasicShapePath): (WebCore::CSSPropertyParserHelpers::consumeReflect): (WebCore::CSSPropertyParserHelpers::consumeBackgroundSize): (WebCore::CSSPropertyParserHelpers::consumeAlignTracks): (WebCore::CSSPropertyParserHelpers::consumeJustifyTracks): (WebCore::CSSPropertyParserHelpers::consumeHangingPunctuation): Canonical link: https://commits.webkit.org/262873@main
- Loading branch information