[Webkit-unassigned] [Bug 245502] New: Consider implementing a UA-level-only pseudo-class matching <select> as a listbox
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Sep 21 12:53:03 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=245502
Bug ID: 245502
Summary: Consider implementing a UA-level-only pseudo-class
matching <select> as a listbox
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 at bocoup.com
In https://bugs.webkit.org/show_bug.cgi?id=220376 WebKit's UA stylesheet was tweaked to avoid mismatches between which <select> elements the UA stylesheet styles as a listbox and what the rendering engine decides is a listbox based on the rules specified in the HTML standard. But there's still a mismatch, for example if there's trailing whitespace or an infinite number of other attribute values that are parsed one way or the other for the size="" attribute.
Chromium and Gecko instead support a UA-level-only pseudo-class that matches <select> elements that are listboxes, which solves the mismatch problem.
In https://github.com/w3c/csswg-drafts/issues/7422 it's proposed that such a pseudo-class should be standardized and also exposed to author-level CSS, but the CSS WG is hesitant to standardize it because there are already many pseudo-classes and it's not clear if it solves a common problem for web developers.
Nevertheless, I think a UA-level-only pseudo-class makes sense, and would improve WebKit's <select> rendering interop with Chromium and Gecko.
--
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/20220921/6634cd51/attachment.htm>
More information about the webkit-unassigned
mailing list