New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
background-size should not accept unitless lengths #12644
background-size should not accept unitless lengths #12644
Conversation
EWS run on previous version of this PR (hash a7be029) |
a7be029
to
5e1b997
Compare
All I changed is the commit message based on some feedback from smfr. This should be good to go. |
EWS run on current version of this PR (hash 5e1b997) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This affects -webkit-background-size too, which seems undesirable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably fine since this only affects quirks mode.
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
5e1b997
to
0b6c4aa
Compare
Committed 262873@main (0b6c4aa): https://commits.webkit.org/262873@main Reviewed commits have been landed. Closing PR #12644 and removing active labels. |
0b6c4aa
5e1b997
π§ͺ gtk-wk2