【问题标题】:Is there any specification for the value of Element.scrollLeft in RTL elements?RTL 元素中 Element.scrollLeft 的值是否有任何规范?
【发布时间】:2016-09-20 02:44:19
【问题描述】:

不同的浏览器在 RTL 元素中为 Element.scrollLeft 呈现不同的值。 (More details in this question)。

according to the MDN,如果元素的方向是rtl,当滚动条在最右边的时候scrollLeft应该是0。 (这意味着 Chrome 的实现是错误的)。

但我找不到任何规范支持 MDN 在 RTL 模式下提到的有关此属性的内容。

谁能帮我找一个?

提前致谢。

【问题讨论】:

    标签: javascript html dom right-to-left cssom


    【解决方案1】:

    在联系了MDN editoradded the info关于这种行为后,他告诉我目前的规范采用这种模式。 (CSS Object Model (CSSOM) View Module - working draft)

    还有discussion thread is here

    【讨论】:

      猜你喜欢
      • 2016-12-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-24
      • 2014-07-20
      • 2011-01-10
      • 1970-01-01
      • 2014-06-10
      相关资源
      最近更新 更多