[Webkit-unassigned] [Bug 205733] New: Unitless zero should not always be allowed

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 3 10:24:31 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=205733

            Bug ID: 205733
           Summary: Unitless zero should not always be allowed
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: simon.fraser at apple.com

inline bool shouldAcceptUnitlessValue(double value, CSSParserMode cssParserMode, UnitlessQuirk unitless)
{
    // FIXME: Presentational HTML attributes shouldn't use the CSS parser for lengths
    return value == 0
        || isUnitLessValueParsingEnabledForMode(cssParserMode)
        || (cssParserMode == HTMLQuirksMode && unitless == UnitlessQuirk::Allow);
}

Note the "value == 0". This is wrong; unitless zero should only be accepted in some legacy situations. See https://www.w3.org/TR/css3-values/#angles and related.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200103/b19c6d97/attachment.htm>


More information about the webkit-unassigned mailing list