Expand file tree Collapse file tree 5 files changed +125
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < title > CSS Values and Units Test: Viewport units and scrollbars</ title >
3
+ < meta charset ="UTF-8 ">
4
+ < link rel ="author " title ="fantasai " href ="http://fantasai.inkedblade.net/contact ">
5
+
6
+
7
+ <!-- This reference assumes that a <div> scrollbar looks identical to the root scrollbar. -->
8
+ < style >
9
+ html , body {
10
+ margin : 0 ;
11
+ padding : 0 ;
12
+ box-sizing : border-box;
13
+ }
14
+ html {
15
+ width : 100% ;
16
+ height : 100% ;
17
+ overflow : hidden;
18
+ }
19
+ body {
20
+ width : 100% ;
21
+ height : 100% ;
22
+ background : white;
23
+ overflow : auto;
24
+ }
25
+ div {
26
+ width : 200% ;
27
+ height : 200% ;
28
+ border-right : solid blue 4px ;
29
+ border-bottom : solid blue 4px ;
30
+ }
31
+ </ style >
32
+
33
+ < div > </ div >
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < title > CSS Values and Units Test: Viewport units and scrollbars</ title >
3
+ < meta charset ="UTF-8 ">
4
+ < meta name ="assert " content ="100vw is reduced by scrollbar width when the scrollbars are unconditional ">
5
+ < link rel ="author " title ="fantasai " href ="http://fantasai.inkedblade.net/contact ">
6
+ < link rel ="help " href ="http://www.w3.org/TR/css3-values/#viewport-relative-lengths ">
7
+
8
+ < link rel ="match " href ="viewport-units-scrollbars-auto-ltr-001-ref.html ">
9
+
10
+ < style >
11
+ html , body {
12
+ margin : 0 ;
13
+ padding : 0 ;
14
+ width : 100vw ;
15
+ height : 100vh ;
16
+ box-sizing : border-box;
17
+ }
18
+ html {
19
+ background : red;
20
+ overflow : auto;
21
+ width : 200% ;
22
+ height : 200% ;
23
+ }
24
+ body {
25
+ background : white;
26
+ border-right : solid blue 4px ;
27
+ border-bottom : solid blue 4px ;
28
+ }
29
+ </ style >
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < title > CSS Values and Units Test: Viewport units and scrollbars</ title >
3
+ < meta charset ="UTF-8 ">
4
+ < link rel ="author " title ="fantasai " href ="http://fantasai.inkedblade.net/contact ">
5
+
6
+ < style >
7
+ html {
8
+ overflow : scroll;
9
+ }
10
+ body {
11
+ background : white;
12
+ }
13
+ </ style >
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < title > CSS Values and Units Test: Viewport units and scrollbars</ title >
3
+ < meta charset ="UTF-8 ">
4
+ < link rel ="author " title ="fantasai " href ="http://fantasai.inkedblade.net/contact ">
5
+
6
+ < style >
7
+ html , body {
8
+ margin : 0 ;
9
+ padding : 0 ;
10
+ width : 100% ;
11
+ height : 100% ;
12
+ box-sizing : border-box;
13
+ }
14
+ html {
15
+ overflow : scroll;
16
+ }
17
+ body {
18
+ background : white;
19
+ border-right : solid green 4px ;
20
+ border-bottom : solid green 4px ;
21
+ }
22
+ </ style >
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < title > CSS Values and Units Test: Viewport units and scrollbars</ title >
3
+ < meta charset ="UTF-8 ">
4
+ < meta name ="assert " content ="100vw is reduced by scrollbar width when the scrollbars are unconditional ">
5
+ < link rel ="author " title ="fantasai " href ="http://fantasai.inkedblade.net/contact ">
6
+ < link rel ="help " href ="http://www.w3.org/TR/css3-values/#viewport-relative-lengths ">
7
+
8
+ < link rel ="match " href ="viewport-units-scrollbars-scroll-ltr-001-ref.html ">
9
+
10
+ < style >
11
+ html , body {
12
+ margin : 0 ;
13
+ padding : 0 ;
14
+ width : 100vw ;
15
+ height : 100vh ;
16
+ box-sizing : border-box;
17
+ }
18
+ html {
19
+ background : red;
20
+ overflow : scroll;
21
+ }
22
+ body {
23
+ background : white;
24
+ border-right : solid green 4px ;
25
+ border-bottom : solid green 4px ;
26
+ }
27
+ </ style >
28
+
0 commit comments