You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cssom-view/Overview.bs
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -345,7 +345,7 @@ CSS pixels {#css-pixels}
345
345
------------------------
346
346
347
347
All coordinates and dimensions for the APIs defined in this
348
-
specification are in CSS pixels, unless otherwise specified. <!--[[!CSS]]-->
348
+
specification are in <a lt=px value>CSS pixels</a>, unless otherwise specified. [[!CSS-VALUES]]
349
349
350
350
Note: This does not apply to e.g. {{matchMedia()}} as the units are explicitly given there.
351
351
@@ -367,14 +367,14 @@ corner, and the x- and y-coordinates increase rightwards and downwards, respecti
367
367
368
368
The <dfn export>Web-exposed screen area</dfn> is one of the following:
369
369
370
-
* The area of the output device, in CSS pixels.
371
-
* The area of the <a>viewport</a>, in CSS pixels.
370
+
* The area of the output device, in <a lt=px value>CSS pixels</a>.
371
+
* The area of the <a>viewport</a>, in <a lt=px value>CSS pixels</a>.
372
372
373
373
The <dfn export>Web-exposed available screen area</dfn> is one of the following:
374
374
375
-
* The available area of the rendering surface of the output device, in CSS pixels.
376
-
* The area of the output device, in CSS pixels.
377
-
* The area of the <a>viewport</a>, in CSS pixels.
375
+
* The available area of the rendering surface of the output device, in <a lt=px value>CSS pixels</a>.
376
+
* The area of the output device, in <a lt=px value>CSS pixels</a>.
377
+
* The area of the <a>viewport</a>, in <a lt=px value>CSS pixels</a>.
378
378
379
379
380
380
Common Infrastructure {#common-infrastructure}
@@ -512,7 +512,7 @@ The <dfn method for=Window>moveTo(<var>x</var>, <var>y</var>)</dfn> method must
512
512
1. Let <var>source</var> be the <a>responsible browsing context</a> of the <a>incumbent settings object</a>.
513
513
1. If <var>source</var> is not <a>allowed to resize and move</a><var>target</var>, terminate these steps.
514
514
1. Optionally, clamp <var>x</var> and <var>y</var> in a user-agent-defined manner so that the window does not move outside the available space.
515
-
1. Move <var>target</var>’s window such that the window’s top left corner is at coordinates (<var>x</var>, <var>y</var>) relative to the top left corner of the output device, measured in CSS pixels of <var>target</var>. The positive axes are rightward and downward.
515
+
1. Move <var>target</var>’s window such that the window’s top left corner is at coordinates (<var>x</var>, <var>y</var>) relative to the top left corner of the output device, measured in <a lt=px value>CSS pixels</a> of <var>target</var>. The positive axes are rightward and downward.
516
516
517
517
The <dfn method for=Window>moveBy(<var>x</var>, <var>y</var>)</dfn> method must follow these steps:
518
518
@@ -521,7 +521,7 @@ The <dfn method for=Window>moveBy(<var>x</var>, <var>y</var>)</dfn> method must
521
521
1. Let <var>source</var> be the <a>responsible browsing context</a> of the <a>incumbent settings object</a>.
522
522
1. If <var>source</var> is not <a>allowed to resize and move</a><var>target</var>, terminate these steps.
523
523
1. Optionally, clamp <var>x</var> and <var>y</var> in a user-agent-defined manner so that the window does not move outside the available space.
524
-
1. Move <var>target</var>'s window <var>x</var> CSS pixels of <var>target</var> rightward and <var>y</var> CSS pixels of <var>target</var> downward.
524
+
1. Move <var>target</var>'s window <var>x</var><a lt=px value>CSS pixels</a> of <var>target</var> rightward and <var>y</var><a lt=px value>CSS pixels</a> of <var>target</var> downward.
525
525
526
526
527
527
The <dfn method for=Window>resizeTo(<var>x</var>, <var>y</var>)</dfn> method must follow these steps:
1. Let <var>source</var> be the <a>responsible browsing context</a> of the <a>incumbent settings object</a>.
532
532
1. If <var>source</var> is not <a>allowed to resize and move</a><var>target</var>, terminate these steps.
533
533
1. Optionally, clamp <var>x</var> and <var>y</var> in a user-agent-defined manner so that the window does not get too small or bigger than the available space.
534
-
1. Resize <var>target</var>'s window by moving its right and bottom edges such that the distance between the left and right edges of the viewport are <var>x</var> CSS pixels of <var>target</var> and the distance between the top and bottom edges of the viewport are <var>y</var> CSS pixels of <var>target</var>.
534
+
1. Resize <var>target</var>'s window by moving its right and bottom edges such that the distance between the left and right edges of the viewport are <var>x</var><a lt=px value>CSS pixels</a> of <var>target</var> and the distance between the top and bottom edges of the viewport are <var>y</var><a lt=px value>CSS pixels</a> of <var>target</var>.
535
535
1. Optionally, move <var>target</var>'s window in a user-agent-defined manner so that it does not grow outside the available space.
536
536
537
537
The <dfn method for=Window>resizeBy(<var>x</var>, <var>y</var>)</dfn> method must follow these steps:
1. Let <var>source</var> be the <a>responsible browsing context</a> of the <a>incumbent settings object</a>.
542
542
1. If <var>source</var> is not <a>allowed to resize and move</a><var>target</var>, terminate these steps.
543
543
1. Optionally, clamp <var>x</var> and <var>y</var> in a user-agent-defined manner so that the window does not get too small or bigger than the available space.
544
-
1. Resize <var>target</var>'s window by moving its right edge <var>x</var> CSS pixels of <var>target</var> rightward and its bottom edge <var>y</var> CSS pixels of <var>target</var> downward.
544
+
1. Resize <var>target</var>'s window by moving its right edge <var>x</var><a lt=px value>CSS pixels</a> of <var>target</var> rightward and its bottom edge <var>y</var><a lt=px value>CSS pixels</a> of <var>target</var> downward.
545
545
1. Optionally, move <var>target</var>'s window in a user-agent-defined manner so that it does not grow outside the available space.
546
546
547
547
A <a>browsing context</a><var>A</var> is <dfn>allowed to resize and move</dfn> a <a>browsing context</a><var>B</var> if all the following conditions are met:
@@ -656,7 +656,7 @@ attribute must return zero. <!--fingerprint-->
656
656
The <dfn attribute for=Window caniuse=devicepixelratio>devicePixelRatio</dfn> attribute must return the result of the following algorithm:
657
657
658
658
1. If there is no output device, return 1 and abort these steps.
659
-
1. Let <var>CSS pixel size</var> be the size of a CSS pixel at the current <a>page zoom</a> scale factor and at a <a>pinch zoom</a> scale factor of 1.0.
659
+
1. Let <var>CSS pixel size</var> be the size of a <a lt=px value>CSS pixel</a> at the current <a>page zoom</a> scale factor and at a <a>pinch zoom</a> scale factor of 1.0.
660
660
1. Let <var>device pixel size</var> be the vertical size of a device pixel of the output device.
661
661
1. Return the result of dividing <var>CSS pixel size</var> by <var>device pixel size</var>.
662
662
@@ -683,7 +683,7 @@ To <dfn export>set up browsing context features</dfn> for a browsing context <va
683
683
move outside the <a>Web-exposed available screen area</a>.
684
684
1. Optionally, move <var>target</var>'s window such that the window's left edge is at the
685
685
horizontal coordinate <var>x</var> relative to the left edge of the <a>Web-exposed screen
686
-
area</a>, measured in CSS pixels of <var>target</var>. The positive axis is rightward.
686
+
area</a>, measured in <a lt=px value>CSS pixels</a> of <var>target</var>. The positive axis is rightward.
687
687
1. If <var>tokenizedFeatures</var>["<a for="supported open() feature name">top</a>"]
688
688
<a for=map>exists</a>:
689
689
1. Set <var>y</var> to the result of invoking the <a>rules for parsing integers</a> on
@@ -693,7 +693,7 @@ To <dfn export>set up browsing context features</dfn> for a browsing context <va
693
693
move outside the <a>Web-exposed available screen area</a>.
694
694
1. Optionally, move <var>target</var>'s window such that the window's top edge is at the
695
695
vertical coordinate <var>y</var> relative to the top edge of the <a>Web-exposed screen
696
-
area</a>, measured in CSS pixels of <var>target</var>. The positive axis is downward.
696
+
area</a>, measured in <a lt=px value>CSS pixels</a> of <var>target</var>. The positive axis is downward.
697
697
1. If <var>tokenizedFeatures</var>["<a for="supported open() feature name">width</a>"]
698
698
<a for=map>exists</a>:
699
699
1. Set <var>width</var> to the result of invoking the <a>rules for parsing integers</a> on
0 commit comments