[Webkit-unassigned] [Bug 259979] New: Fail to extend update a `style` block algorithm to non-HTML documents

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 9 09:21:52 PDT 2023


            Bug ID: 259979
           Summary: Fail to extend update a `style` block algorithm to
                    non-HTML documents
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Keywords: BrowserCompat, WPTImpact
          Severity: Normal
          Priority: P2
         Component: DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ahmad.saleem792 at gmail.com
                CC: annevk at annevk.nl, cdumez at apple.com, rniwa at webkit.org

Hi Team,

Currently we have following FIXME, which leads to WPT Test failure:

FIXME Source: https://github.com/WebKit/WebKit/blob/3604d4d6c245c0eb8a7c5f3fae77acadf31dabe0/Source/WebCore/dom/InlineStyleSheetOwner.cpp#L152

"FIXME: Should MIME types really be case sensitive in XML documet..."

WPT Test Case (Live Link): http://wpt.live/html/semantics/document-metadata/the-style-element/style_type_svg.svg

^ We fail third test case: "With a mixed-case type attribute, the style should apply" and Chrome also fail this test case. Only Firefox passes all test cases.

Web-Spec: https://html.spec.whatwg.org/multipage/semantics.html#update-a-style-block


By modifying return and removing unused 'element' in above function, I get 'PASS' on WPT Test case.

inline bool isValidCSSContentType(const AtomString& type)
    // https://html.spec.whatwg.org/multipage/semantics.html#update-a-style-block
    if (type.isEmpty())
        return true;
    return equalLettersIgnoringASCIICase(type, "text/css"_s);


Any input or any concern before I try doing PR?


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/20230809/eb01b3ce/attachment.htm>

More information about the webkit-unassigned mailing list