Tests: Important custom properties precedence on resolution

This commit is contained in:
luizgfc 2025-09-27 20:21:36 -03:00 committed by Sam Atkins
parent 13748a8c19
commit 82bddd5209
2 changed files with 26 additions and 0 deletions

View File

@ -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)

View File

@ -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>