Skip to content

Commit 026b941

Browse files
committed
Add fieldset test.
1 parent f03d4f2 commit 026b941

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

demos/margins-via-gap-css/test.htm

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<style type="text/css">
5+
6+
fieldset {
7+
display: flex ;
8+
flex-direction: column ;
9+
gap: 1rem ;
10+
11+
& input {
12+
display: block ;
13+
margin: 0 ;
14+
}
15+
}
16+
17+
</style>
18+
</head>
19+
<body>
20+
21+
<fieldset>
22+
<legend>
23+
This is not an inline element
24+
</legend>
25+
26+
<template>
27+
<!-- This is not a rendered element. -->
28+
</template>
29+
<template>
30+
<!-- This is not a rendered element. -->
31+
</template>
32+
33+
<input type="text" />
34+
35+
<template>
36+
<!-- This is not a rendered element -->
37+
</template>
38+
<style>
39+
/* This is not a rendered elemenet. */
40+
</style>
41+
42+
<input type="text" />
43+
<input type="text" />
44+
</fieldset>
45+
46+
</body>
47+
</html>

0 commit comments

Comments
 (0)