Re: [w3c/payment-request] Derive direction from document element too (#956)

@aphillips commented on this pull request.



> @@ -1139,20 +1139,23 @@ <h2>
               Present a user interface that will allow the user to interact
               with the |handlers|. The user agent SHOULD prioritize the user's
               preference when presenting payment methods. The user interface
-              SHOULD be presented using the language and locale-based
-              formatting that matches the |document|'s [=document
-              element|document element's=] [=Node/language=], if any, or an
-              appropriate fallback locale if that is not available.
+              SHOULD be presented using the language, base direction, and
+              locale-based formatting that matches the |document|'s [=document
+              element|document element's=] [=Node/language=] and
+              {{Document/dir}} attribute, if any, or an appropriate fallback

@marcoscaceres Thanks. I squinted at `{{HTMLElement/dir}}` and it wasn't clear to me if it included inherited direction. `[^html-global/dir^]` is the definition of the `dir` attribute and includes inheritance, but doesn't seem quite to match our needs here. Exporting `directionality` is a better solution--not just here but generally! I may take whatwg/html#6676 to expedite ;-).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/payment-request/pull/956#discussion_r631068830

Received on Wednesday, 12 May 2021 14:00:45 UTC