[Webkit-unassigned] [Bug 255568] New: Styles for `:dir` incorrectly apply
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Apr 17 17:56:22 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=255568
Bug ID: 255568
Summary: Styles for `:dir` incorrectly apply
Product: WebKit
Version: Safari 16
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: sorvell at google.com
When direction is dynamically changed by setting the `dir` attribute to `rtl`, styles matching `:dir(rtl)` are applied as expected; however, if the `dir` attribute is removed, styles matching `:dir(rtl)` unexpectedly still apply.
See this reproduction: https://lit.dev/playground/#gist=b7c7e390a923d0a54b5c3211bd69a668
Expected:
1. check the `rtl` checkbox to set document to rtl mode
2. styles matching `:dir(rtl)` apply
3. uncheck the `rtl` checkbox to set document back to default (ltr) direction
4. styles matching `:dir(rtl)` do *not* apply
Actual:
1. check the `rtl` checkbox to set document to rtl mode
2. styles matching `:dir(rtl)` apply
3. uncheck the `rtl` checkbox to set document back to default (ltr) direction
4. styles matching `:dir(rtl)` *unexpectedly do* apply
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230418/dca58213/attachment-0001.htm>
More information about the webkit-unassigned
mailing list