mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +00:00
LibWeb: Implement the :dir()
selector pseudo-class
This commit is contained in:
parent
5b125811f1
commit
b8e694c0f2
4 changed files with 152 additions and 0 deletions
24
Tests/LibWeb/Layout/input/css-dir-selector.html
Normal file
24
Tests/LibWeb/Layout/input/css-dir-selector.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
<style>
|
||||
div {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
border: 1px solid black;
|
||||
}
|
||||
:dir(rtl) {
|
||||
margin-left: 200px;
|
||||
}
|
||||
:dir(ltr) {
|
||||
margin-left: 100px;
|
||||
}
|
||||
:dir(wheeee) {
|
||||
width: 1000px !important;
|
||||
}
|
||||
</style>
|
||||
<div>Well, hello friends!</div>
|
||||
<div dir="ltr">Well, hello friends!</div>
|
||||
<div dir="rtl">Well, hello friends!</div>
|
||||
<div dir="auto">Well, hello friends!</div>
|
||||
<div>حسنًا ، مرحباً أيها الأصدقاء</div>
|
||||
<div dir="ltr">حسنًا ، مرحباً أيها الأصدقاء</div>
|
||||
<div dir="rtl">حسنًا ، مرحباً أيها الأصدقاء</div>
|
||||
<div dir="auto">حسنًا ، مرحباً أيها الأصدقاء</div>
|
Loading…
Add table
Add a link
Reference in a new issue