-
Notifications
You must be signed in to change notification settings - Fork 2.2k
FF141 adds HTML popover source + force option #27157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FF141 adds HTML popover source + force option #27157
Conversation
Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs). |
api/HTMLElement.json
Outdated
], | ||
"support": { | ||
"chrome": { | ||
"version_added": false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note, I can't find evidence that they are supported in chrome or Safari, but nor can I find evidence they aren't
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chrome supports
- the
force
option since 130: https://github.com/caugner/chromium-releases/blame/v130/third_party/blink/renderer/core/html/html_element.cc#L1409 - the
force
parameter since 116: https://github.com/caugner/chromium-releases/blame/v116/third_party/blink/renderer/core/html/html_element.cc#L1411C19-L1411C32
WebKit supports
- the
force
option since Safari 18.4 (WebKit/WebKit@899ca0c landed in 621.1.9 before Safari 18.4/WebKit 621.1.15), - the
force
parameter since the beginning, i.e. Safari 17 (see https://github.com/WebKit/WebKit/blame/ecb76a449ffa26cb4da089afe4ee8d7ba90f13a9/Source/WebCore/html/HTMLElement.h#L155).
api/HTMLElement.json
Outdated
@@ -2862,6 +2862,41 @@ | |||
"deprecated": false | |||
} | |||
}, | |||
"force": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I copied the pattern of source
.
For both this and source
shouldn't the actual pattern be as below, based on the schema? Or did that change?
"force": { | |
"option_force": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that force
can be both a parameter and an option, and the option came later, we might want to record it as both force_parameter
and force_option
, to avoid confusion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. That is absolutely the right thing to do. I have changed this to match the expected schema and key names.
PS Thanks for doing the research on when these were introduced in chrome/safari
api/HTMLElement.json
Outdated
@@ -2862,6 +2862,41 @@ | |||
"deprecated": false | |||
} | |||
}, | |||
"force": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that force
can be both a parameter and an option, and the option came later, we might want to record it as both force_parameter
and force_option
, to avoid confusion.
api/HTMLElement.json
Outdated
], | ||
"support": { | ||
"chrome": { | ||
"version_added": false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chrome supports
- the
force
option since 130: https://github.com/caugner/chromium-releases/blame/v130/third_party/blink/renderer/core/html/html_element.cc#L1409 - the
force
parameter since 116: https://github.com/caugner/chromium-releases/blame/v116/third_party/blink/renderer/core/html/html_element.cc#L1411C19-L1411C32
WebKit supports
- the
force
option since Safari 18.4 (WebKit/WebKit@899ca0c landed in 621.1.9 before Safari 18.4/WebKit 621.1.15), - the
force
parameter since the beginning, i.e. Safari 17 (see https://github.com/WebKit/WebKit/blame/ecb76a449ffa26cb4da089afe4ee8d7ba90f13a9/Source/WebCore/html/HTMLElement.h#L155).
FF141 supports the
source
option toHTMLElement.showPopover()
andHTMLElement.togglePopover()
, and theforce
option toHTMLElement.togglePopover()
in https://bugzilla.mozilla.org/show_bug.cgi?id=1936411This adds the features.
Related docs work can be tracked in mdn/content#40027