mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
LibWeb: Add naive support for {margin,padding}-{block,inline}
Like other logical properties, we just alias these to the LTR TB default properties for now.
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 03:35:16 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/2c16e8371f Pull-request: https://github.com/SerenityOS/serenity/pull/19296
@@ -0,0 +1,18 @@
|
||||
<!doctype html><style>
|
||||
* {
|
||||
border: 1px solid black;
|
||||
}
|
||||
body {
|
||||
width: 500px;
|
||||
}
|
||||
.a {
|
||||
padding: 100px;
|
||||
padding-block: 10px;
|
||||
padding-inline: 20px;
|
||||
}
|
||||
.b {
|
||||
margin: 90px;
|
||||
margin-block: 30px;
|
||||
margin-inline: 40px;
|
||||
}
|
||||
</style><div class="a"><div class="b"><span>Hello</span>
|
||||
Reference in New Issue
Block a user