diff --git a/source b/source index 97abc1f8269..d8a03c8a5dc 100644 --- a/source +++ b/source @@ -3308,6 +3308,8 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
The following terms and features are defined in CSS Color: HTMLDialogElement : HTMLElement {
Add an Set the Run the dialog focusing steps for the If subject is not connected, then throw an
" Add an Add an Set the 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 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 Each open
attribute to the dialog
element, whose value is the empty string.dialog
to the normal alignment mode.dialog
element.InvalidStateError
" DOMException
.open
attribute to subject, whose value is the empty string.open
attribute to subject, whose
+ value is the empty string.dialog
to the centered alignment mode.returnValue
attribute to the value of result.
- 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').dialog
element has an is modal flag. When a dialog
+ element is created, this flag must be set to false.
@@ -114374,7 +114339,17 @@ form { margin-block-end: 1em; }
'text-align' property set to 'justify' in a presentational hint, and to align descendants to the left.
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: