This repository was archived by the owner on Mar 19, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change 25
25
assert_not_inherited ( 'max-width' , 'none' , '10px' ) ;
26
26
assert_not_inherited ( 'min-height' , 'auto' , '10px' ) ;
27
27
assert_not_inherited ( 'min-width' , 'auto' , '10px' ) ;
28
-
29
- // height, width not yet tested.
30
28
</ script >
31
29
</ body >
32
30
</ html >
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < meta charset ="utf-8 ">
5
+ < title > Inheritance of CSS Intrinsic & Extrinsic Sizing properties</ title >
6
+ < link rel ="help " href ="https://drafts.csswg.org/css-sizing-3/#property-index ">
7
+ < meta name ="assert " content ="Properties do not inherit. ">
8
+ < meta name ="assert " content ="Properties have initial values according to the spec. ">
9
+ < script src ="/resources/testharness.js "> </ script >
10
+ < script src ="/resources/testharnessreport.js "> </ script >
11
+ < script src ="/css/support/inheritance-testcommon.js "> </ script >
12
+ < style >
13
+ # target {
14
+ position : absolute;
15
+ }
16
+ </ style >
17
+ </ head >
18
+ < body >
19
+ < div id ="container ">
20
+ < div id ="target "> </ div >
21
+ </ div >
22
+ < script >
23
+ // Without position absolute, the initial value
24
+ // 'auto' gives the size of the parent element.
25
+ assert_not_inherited ( 'height' , '0px' , '10px' ) ;
26
+ assert_not_inherited ( 'width' , '0px' , '10px' ) ;
27
+ </ script >
28
+ </ body >
29
+ </ html >
You can’t perform that action at this time.
0 commit comments