[Webkit-unassigned] [Bug 202885] New: Pseudo-elements not treated as ASCII case-insensitive

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Oct 12 15:45:12 PDT 2019


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

            Bug ID: 202885
           Summary: Pseudo-elements not treated as ASCII case-insensitive
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Macintosh
                OS: macOS 10.15
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: go.shoemake at yahoo.com

CSS Selectors 4 <https://drafts.csswg.org/selectors-4/#pseudo-element-syntax> clearly states:

> Pseudo-element names are ASCII case-insensitive.

CSS Selectors 4 is currently an Editor's Draft. But CSS 2.1 <https://www.w3.org/TR/CSS21/selector.html#pseudo-elements> also clearly states:

> Pseudo-element and pseudo-class names are case-insensitive.

Nevertheless, the following code does not have the expected effect:

    <!DOCTYPE html>
    <style>
      body::before { content: "Failure!" }
      body::BEFORE { content: "Success!" }
    </style>

(As a data: URI for quick testing:

    data:text/html,<!DOCTYPE html><style>body::before{content:"Failure!"}body::BEFORE{content:"Success!"}</style>

)

Related to Bug 81752, but I'm filing this separately since that bug seems focused on selectors determined by the host language (e.g., attribute selectors), and not selectors defined by CSS.

-- 
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/20191012/bbf59868/attachment.html>


More information about the webkit-unassigned mailing list