WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
245747
Align "UA" stylesheet for "dialog" with HTML Spec and other browsers
https://bugs.webkit.org/show_bug.cgi?id=245747
Summary
Align "UA" stylesheet for "dialog" with HTML Spec and other browsers
Ahmad Saleem
Reported
2022-09-27 12:39:06 PDT
Hi Team, I hope you are well. I just wanted to raise this for aligning "dialog.css" with other browsers and see if it leads to more WPT Test passes: Webkit is missing following compared to Blink: dialog:modal { user-select: text; }
https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/html/resources/html.css;l=1401?q=html.css
and compared to Gecko and Blink, we are missing: dialog:not([open]) { display: none; } ^ this is technically there with dialog {} but I think moving to above would be more aligned with all browsers.
https://html.spec.whatwg.org/multipage/rendering.html#flow-content-3
And let see what happens. Thanks!
Attachments
Add attachment
proposed patch, testcase, etc.
Tim Nguyen (:ntim)
Comment 1
2022-09-27 13:12:09 PDT
> dialog:not([open]) { > display: none; > }
We do it slightly differently, but it's there:
https://searchfox.org/wubkat/rev/cf0cfbaf1ad7728a145c06e3539170870bbb913f/Source/WebCore/css/dialog.css#12-17
> dialog:modal { > user-select: text; > }
Same here, we implement this through inertness (similar to how Firefox does it):
https://searchfox.org/wubkat/rev/cf0cfbaf1ad7728a145c06e3539170870bbb913f/Source/WebCore/rendering/style/RenderStyle.cpp#2934-2944
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug