-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 |
cc @bkardell |
It's interesting, I guess we need to compare because it looks like #29820 has like 40+ tests which I believe are just a couple of checkboxes here? |
#41620 also has some tests to land for this. |
For whatwg/html#9689. Helps with #25569 as this area was barely tested. (Also correct some typos while here.)
For whatwg/html#9689. Helps with #25569 as this area was barely tested. (Also correct some typos while here.)
… more form controls, a=testonly Automatic update from web-platform-tests HTML: make dir=auto and dirname apply to more form controls For whatwg/html#9689. Helps with web-platform-tests/wpt#25569 as this area was barely tested. (Also correct some typos while here.) -- wpt-commits: 364c325f6589ec43c8e0abd85dc3220c6592721d wpt-pr: 42427
… more form controls, a=testonly Automatic update from web-platform-tests HTML: make dir=auto and dirname apply to more form controls For whatwg/html#9689. Helps with web-platform-tests/wpt#25569 as this area was barely tested. (Also correct some typos while here.) -- wpt-commits: 364c325f6589ec43c8e0abd85dc3220c6592721d wpt-pr: 42427
… more form controls, a=testonly Automatic update from web-platform-tests HTML: make dir=auto and dirname apply to more form controls For whatwg/html#9689. Helps with web-platform-tests/wpt#25569 as this area was barely tested. (Also correct some typos while here.) -- wpt-commits: 364c325f6589ec43c8e0abd85dc3220c6592721d wpt-pr: 42427 UltraBlame original commit: baa84c2ff0cb5d7c031e93e92f5694397affc2f5
… more form controls, a=testonly Automatic update from web-platform-tests HTML: make dir=auto and dirname apply to more form controls For whatwg/html#9689. Helps with web-platform-tests/wpt#25569 as this area was barely tested. (Also correct some typos while here.) -- wpt-commits: 364c325f6589ec43c8e0abd85dc3220c6592721d wpt-pr: 42427 UltraBlame original commit: baa84c2ff0cb5d7c031e93e92f5694397affc2f5
… more form controls, a=testonly Automatic update from web-platform-tests HTML: make dir=auto and dirname apply to more form controls For whatwg/html#9689. Helps with web-platform-tests/wpt#25569 as this area was barely tested. (Also correct some typos while here.) -- wpt-commits: 364c325f6589ec43c8e0abd85dc3220c6592721d wpt-pr: 42427 UltraBlame original commit: baa84c2ff0cb5d7c031e93e92f5694397affc2f5
Many additional tests have landed for this, but at some point one of us should go through the list in the initial comment and see what's missing. |
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)
[selectors4] Implement :dir pseudo-class #26159dir
attribute matches:dir(ltr)
dir="invalid"
matches:dir(ltr)
<input type=tel>
(HTML: Add test for <input type=tel> matching :dir() #25599)dir
matches: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 forauto
logic)display: none
(should still affect directionality) Fix the updating dir=auto issue when inserting text into a display:none #27125:dir(ltr)
dir=rtl
, matches:dir(rtl)
<bdi>
withoutdir
with 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)
dir
attribute does not affect:dir()
matching.<slot>
Fix the wrong directionality of slots #27954Check 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: