web-platform-tests / wpt Public
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing plan for :dir() pseudo-class #25569
Comments
|
The |
|
FYI, recently TCs[1][2] for :dir() which cover the list below have been added. I think it would be nice if the checklist includes something about shadow dom and [3]. :) |
|
Thanks @MyidShin! I've invited you to the web-platform-tests reviewers team, which I think would let you edit my comment. I'll edit my comment for now with your suggestions |


Relevant spec sections:
https://drafts.csswg.org/selectors-4/#the-dir-pseudo
https://html.spec.whatwg.org/multipage/semantics-other.html#selector-ltr
The interesting cases to test are from the definition of "directionality" in HTML:
https://html.spec.whatwg.org/multipage/dom.html#the-directionality
dir="ltr"matches:dir(ltr)(#26159)dirattribute matches:dir(ltr)dir="invalid"matches:dir(ltr)<input type=tel>(#25599)dirmatches:dir(ltr)dir="invalid"matches:dir(ltr)dir="rtl"matches:dir(rtl)dir="rtl"matches:dir(rtl)dir="rtl"matches:dir(rtl)<input type=text/search/tel/url/email dir=auto><textarea dir=auto>dir=auto:dir(rtl):dir(ltr)bdi,script,style,textarea, element withdir=ltr/rtl/auto(should be ignored forautologic)display: none(should still affect directionality) (#27125:dir(ltr)dir=rtl, matches:dir(rtl)<bdi>withoutdirwith the same cases as "element withdir=auto"<bdi dir=ltr>and first character is of bidirectional character type AL or R matches:dir(ltr)<bdi dir=rtl>and first character is of bidirectional character type L matches:dir(rtl)dir="ltr"matches:dir(ltr)dir="rtl"matches:dir(rtl)dirattribute does not affect:dir()matching.<slot>(#27954)Check for existing coverage in wpt:
git grep -l ":dir("(in 16 Sep 2020)(Maybe also check for
dir="auto"tests)The text was updated successfully, but these errors were encountered: