mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
Tests: Important custom properties precedence on resolution
This commit is contained in:
parent
13748a8c19
commit
82bddd5209
|
|
@ -0,0 +1,13 @@
|
|||
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] children: not-inline
|
||||
BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 66 0+0+0] [BFC] children: not-inline
|
||||
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 50 0+0+8] children: not-inline
|
||||
BlockContainer <main> at [8,8] [0+0+0 50 0+0+734] [0+0+0 50 0+0+0] children: inline
|
||||
TextNode <#text> (not painted)
|
||||
|
||||
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x66]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x50]
|
||||
PaintableWithLines (BlockContainer<MAIN>) [8,8 50x50]
|
||||
|
||||
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
|
||||
SC for BlockContainer<HTML> [0,0 800x66] [children: 0] (z-index: auto)
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html><style>
|
||||
main {
|
||||
--size: 50px !important;
|
||||
--bg: green !important;
|
||||
}
|
||||
main {
|
||||
--size: 200px;
|
||||
width: var(--size);
|
||||
height: var(--size);
|
||||
--bg: red;
|
||||
background: var(--bg);
|
||||
}
|
||||
</style><body><main>
|
||||
Loading…
Reference in New Issue
Block a user