W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2018

Re: [csswg-drafts] [cssom-view] It is not defined what "the range is not in the document " means, and it probably doesn't handle the case when range is in connected shadow DOM

From: yosin via GitHub <sysbot+gh@w3.org>
Date: Tue, 03 Jul 2018 04:15:41 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-402008290-1530591340-sysbot+gh@w3.org>
For Range#getClientRects(), it is better to use term "begin rendered"[1] instead of "not in the document", to make Range#getClientRects() to return union of rect of node having CSS box.

We also add a special cases for <option> and <optgrop> since rendering of them are platform dependent.

1. <option> in <select size="1"> doesn't have CSS box
2. <option> in <select size="10"> has CSS box, but Text inside option doesn't have CSS box when <option> has "label" attribute. Note: In Blink, Text nodes inside <option> never have CSS box due by implementation.

[1] https://html.spec.whatwg.org/multipage/rendering.html#being-rendered

GitHub Notification of comment by yosinch
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2861#issuecomment-402008290 using your GitHub account
Received on Tuesday, 3 July 2018 04:15:47 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:33 UTC