javascripthtmldomright-to-leftcssom

Is there any specification for the value of Element.scrollLeft in RTL elements?


Different browsers render different values for Element.scrollLeft in RTL elements. (More details in this question).

And according to the MDN, if the direction of the element is rtl, the scrollLeft should be 0 when the scrollbar is at its rightmost position. (Which means that Chrome's implementation is faulty).

But I couldn't find any specification that backs what the MDN mentions about this property in RTL mode.

Can anyone help me find one ?

Thanks in advance.


Solution

  • After contacting the MDN editor who added the info about this behavior, he told me that the current spec adopts this model. (CSS Object Model (CSSOM) View Module - working draft)

    And the discussion thread is here.