Bug 1695578 part 1: Add macro to implement HTMLMarqueeElement::FromNodeOrNull, so that some marquee-specific zero-intrinsic-sizing code is actually marquee-specific. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D107034
This commit is contained in:
Daniel Holbert 2021-03-03 09:50:44 +00:00
parent e2592a6219
commit 57389ad625
3 changed files with 22 additions and 0 deletions

View File

@ -17,6 +17,8 @@ class HTMLMarqueeElement final : public nsGenericHTMLElement {
explicit HTMLMarqueeElement(already_AddRefed<dom::NodeInfo>&& aNodeInfo)
: nsGenericHTMLElement(std::move(aNodeInfo)) {}
NS_IMPL_FROMNODE_HTML_WITH_TAG(HTMLMarqueeElement, marquee);
nsresult BindToTree(BindContext&, nsINode& aParent) override;
void UnbindFromTree(bool aNullParent = true) override;

View File

@ -0,0 +1,9 @@
<!doctype html>
<title>Test reference</title>
<link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
<link rel="author" href="https://mozilla.org" title="Mozilla">
<body>
<input type="date">
<br>
<input type="date">
</body>

View File

@ -0,0 +1,11 @@
<!doctype html>
<title>Test: the date field's min-content and max-content sizes should be the same as its automatic size</title>
<link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
<link rel="author" href="https://mozilla.org" title="Mozilla">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1695578">
<link rel="match" href="input-date-content-size-ref.html">
<body>
<input type="date" style="width: min-content">
<br>
<input type="date" style="width: max-content">
</body>