File tree Expand file tree Collapse file tree 2 files changed +59
-0
lines changed
Expand file tree Collapse file tree 2 files changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html >
3+ < head >
4+ < link rel ="
author "
title ="
Sam Weinig "
href ="
mailto:[email protected] "
> 5+ < link rel ="help " href ="https://bugs.webkit.org/show_bug.cgi?id=301873 ">
6+ < style >
7+ .cardStack {
8+ display : grid;
9+ width : 100px ;
10+ }
11+ .card {
12+ height : 100px ;
13+ }
14+ # card1 {
15+ background-color : lightpink;
16+ margin-top : 50% ;
17+ }
18+ # card2 {
19+ background-color : lightgreen;
20+ }
21+ </ style >
22+ </ head >
23+ < body >
24+ < div class ="cardStack ">
25+ < div id ="card1 " class ="card "> </ div >
26+ < div id ="card2 " class ="card "> </ div >
27+ </ div >
28+ </ body >
29+ </ html >
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html >
3+ < head >
4+ < link rel ="
author "
title ="
Sam Weinig "
href ="
mailto:[email protected] "
> 5+ < link rel ="help " href ="https://bugs.webkit.org/show_bug.cgi?id=301873 ">
6+ < link rel ="match " href ="grid-calc-margin-ref.html ">
7+ < style >
8+ .cardStack {
9+ display : grid;
10+ width : 100px ;
11+ }
12+ .card {
13+ height : 100px ;
14+ }
15+ # card1 {
16+ background-color : lightpink;
17+ margin-top : calc (50% - 0px );
18+ }
19+ # card2 {
20+ background-color : lightgreen;
21+ }
22+ </ style >
23+ </ head >
24+ < body >
25+ < div class ="cardStack ">
26+ < div id ="card1 " class ="card "> </ div >
27+ < div id ="card2 " class ="card "> </ div >
28+ </ div >
29+ </ body >
30+ </ html >
You can’t perform that action at this time.
0 commit comments