From ab983f09e6da4e06e7c07fe8ae7368c3ca5d67a2 Mon Sep 17 00:00:00 2001
From: Ian Kilpatrick Add an Set the Run the dialog focusing steps for the Add an Set the Let subject's node document be blocked by the modal dialog subject. A When an element subject is placed in centered alignment mode, and when
- it is in that mode and has new rendering boxes created, the user agent must set up the element
- such that its static position of the edge that corresponds to subject's parent's
- block-start edge, for the purposes of calculating the used value of the
- appropriate box offset property ('top', 'right', 'bottom',
- or 'left'), is the value that would place the element's margin edge on
- the side that corresponds to subject's parent's block-start side as far
- from the same-side edge of the viewport as the element's opposing side margin
- edge from that same-side edge of the viewport, if the element's dimension
- ('width' or 'height') in subject's parent's block flow
- direction is less than the same-axis dimension of the viewport, and otherwise
- is the value that would place the element's margin edge on the side that corresponds
- to subject's parent's block-start side at the same-side edge of the
- viewport. If there is a This static position of a User agents in visual interactive media should allow the user to pan the viewport
- to access all parts of a The If subject is not connected, then throw an
" Add an Add an Set the is modal flag of subject to true. Let subject's node document be open
attribute. Set the is modal flag of subject to false. If the argument result was provided, then set the Each The open
attribute to the dialog
element, whose value is the empty string.dialog
to the normal alignment mode.dialog
element.open
attribute to subject, whose value is the empty string.dialog
to the centered alignment mode.
- dialog
element is in one of two modes: normal alignment or
- centered alignment. When a dialog
element is created, it must be placed in
- the normal alignment mode. In this mode, normal CSS requirements apply to the
- element. The centered alignment mode is only used for dialog
elements
- that are in the top layer. dialog
element with centered alignment and that is
- being rendered when its browsing context changes viewport
- dimensions (as measured in CSS pixels), or when this
- dialog
element's parent changes block flow direction, then the user
- agent must recreate the element's boxes, recalculating its edge that corresponds to this
- dialog
element's parent's block-start edge as in the previous
- paragraph.dialog
element's edge with centered
- alignment must remain the element's static position of that edge until its boxes are
- recreated. (The element's static position is only used in calculating the used value
- of the appropriate box offset property ('top', 'right',
- 'bottom', or 'left') in certain situations; it's not used, for instance,
- to position the element if its 'position' property is set to
- 'static'.)dialog
element's border box, even if the
- element is larger than the viewport and the viewport would otherwise not
- have a scroll mechanism (e.g. because the viewport's 'overflow' property
- is set to 'hidden').
-
open
IDL
attribute must reflect the open
content
attribute.InvalidStateError
" DOMException
.open
attribute to subject, whose value is the empty string.open
attribute to subject, whose
+ value is the empty string.returnValue
attribute to the value of result.
+ dialog
element has an is modal flag. When a dialog
+ element is created, this flag must be set to false. This flag is used to control when the
+ :modal
pseudo-class applies.
+
open
IDL
attribute must reflect the open
content
attribute.
:modal
The :modal
pseudo-class must match
+ any dialog
element that has its is modal flag set to true.
This specification does not define when an element matches the Each
Date: Wed, 28 Oct 2020 10:41:57 -0700
Subject: [PATCH 3/7] CSSWG resolution making :modal an internal pseudo-class.
---
source | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/source b/source
index 412dde3f20a..d2b09547360 100644
--- a/source
+++ b/source
@@ -57374,7 +57374,7 @@ interface HTMLDialogElement : HTMLElement {
dialog
element has an is modal flag. When a dialog
element is created, this flag must be set to false. This flag is used to control when the
- :modal
pseudo-class applies.:-internal-modal
pseudo-class applies.
:modal
:-internal-modal
The :modal
pseudo-class must match
- any dialog
element that has its is modal flag set to true.
The :-internal-modal
pseudo-class must
+ match any dialog
element that has its is modal flag set to true.
The :-internal-modal
pseudo-class must
+ not be exposed outside the user agent style sheet.
The following terms and features are defined in CSS Color: HTMLDialogElement : HTMLElement {
Each
dialog
element has an is modal flag. When a dialog
- element is created, this flag must be set to false. This flag is used to control when the
- :-internal-modal
pseudo-class applies.
When this flag is true the user agent is expected to act as if it had a user-agent-level style + sheet rule setting the following properties:
+ +:-internal-modal
The :-internal-modal
pseudo-class must
- match any dialog
element that has its is modal flag set to true.
The :-internal-modal
pseudo-class must
- not be exposed outside the user agent style sheet.
-
This specification does not define when an element matches the Each When this flag is true the user agent is expected to act as if it had a user-agent-level style
- sheet rule setting the following properties: The
Date: Wed, 28 Oct 2020 12:30:49 -0700
Subject: [PATCH 5/7] move to rendering section.
---
source | 22 ++++++++++------------
1 file changed, 10 insertions(+), 12 deletions(-)
diff --git a/source b/source
index 0ed5d3933df..1f3a71cdbbf 100644
--- a/source
+++ b/source
@@ -57379,18 +57379,6 @@ interface HTMLDialogElement : HTMLElement {
'text-align' property set to 'justify' in a presentational hint, and to align descendants to the left.dialog
element has an is modal flag. When a dialog
element is created, this flag must be set to false.
-
-
open
IDL
@@ -113124,7 +113112,17 @@ form { margin-block-end: 1em; }
The dialog
element, when its is modal flag is true, is expected to
+ act as if it had a user-agent-level style sheet rule setting the following properties: