1
0
Fork 0
firefox/testing/web-platform/tests/css/selectors/dir-pseudo-update-document-element.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

28 lines
474 B
HTML

<!DOCTYPE html>
<html dir="ltr">
<head>
<link rel="match" href="dir-pseudo-update-document-element-ref.html">
<link rel="help" href="https://drafts.csswg.org/selectors-4/#the-dir-pseudo">
<script>
document.documentElement.setAttribute('dir', 'rtl');
</script>
<style>
div {
width: 100px;
height: 100px;
float: left;
}
div:dir(rtl) {
background-color: green;
}
div:dir(ltr) {
background-color: red;
}
</style>
</head>
<body>
<div></div>
</body>
</html>