Skip to content

Commit 82bddd5

Browse files
luizgfrancaAtkinsSJ
authored andcommitted
Tests: Important custom properties precedence on resolution
1 parent 13748a8 commit 82bddd5

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] children: not-inline
2+
BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 66 0+0+0] [BFC] children: not-inline
3+
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 50 0+0+8] children: not-inline
4+
BlockContainer <main> at [8,8] [0+0+0 50 0+0+734] [0+0+0 50 0+0+0] children: inline
5+
TextNode <#text> (not painted)
6+
7+
ViewportPaintable (Viewport<#document>) [0,0 800x600]
8+
PaintableWithLines (BlockContainer<HTML>) [0,0 800x66]
9+
PaintableWithLines (BlockContainer<BODY>) [8,8 784x50]
10+
PaintableWithLines (BlockContainer<MAIN>) [8,8 50x50]
11+
12+
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
13+
SC for BlockContainer<HTML> [0,0 800x66] [children: 0] (z-index: auto)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html><style>
2+
main {
3+
--size: 50px !important;
4+
--bg: green !important;
5+
}
6+
main {
7+
--size: 200px;
8+
width: var(--size);
9+
height: var(--size);
10+
--bg: red;
11+
background: var(--bg);
12+
}
13+
</style><body><main>

0 commit comments

Comments
 (0)