1
Fork 0
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:
Sam Atkins 2023-08-16 12:11:14 +01:00 committed by Andreas Kling
parent 5b125811f1
commit b8e694c0f2
4 changed files with 152 additions and 0 deletions

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