mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:57:35 +00:00
LibWeb: Implement the CSS revert
keyword
This is a universal value like `initial` and `inherit` and works by reverting the current value to whatever we had at the start of the current cascade origin. The implementation is somewhat inefficient as we make a copy of all current values at the start of each origin. I'm sure we can come up with a way to make this faster eventually.
This commit is contained in:
parent
13d5d47b56
commit
8f29bdb62c
8 changed files with 257 additions and 187 deletions
6
Tests/LibWeb/Layout/input/css-revert.html
Normal file
6
Tests/LibWeb/Layout/input/css-revert.html
Normal file
|
@ -0,0 +1,6 @@
|
|||
<!doctype html><style>
|
||||
* {
|
||||
all: unset;
|
||||
display: revert;
|
||||
}
|
||||
</style>Hello friends
|
Loading…
Add table
Add a link
Reference in a new issue