mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +00:00
LibWeb: Implement the align attribute for divs
As specified in section 15.3.3 of the HTML spec.
This commit is contained in:
parent
4ac7c41483
commit
23aae7c7f3
Notes:
sideshowbarker
2024-07-17 17:49:11 +09:00
Author: https://github.com/nbvdkamp
Commit: 23aae7c7f3
Pull-request: https://github.com/SerenityOS/serenity/pull/19411
6 changed files with 154 additions and 0 deletions
15
Tests/LibWeb/Layout/input/div_align_nested.html
Normal file
15
Tests/LibWeb/Layout/input/div_align_nested.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<style>
|
||||
.square {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color:green
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<div align="right">This text and the green square are both right aligned: <div class="square"></div>
|
||||
<div align="left">
|
||||
This text and the green square are both left aligned despite being nested in a div with align="right":
|
||||
<div class="square"/>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue