Closed
Bug 1025933
Opened 10 years ago
Closed 10 years ago
[WebComponents] Unable to read dimensions of elements within shadow-root
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
VERIFIED
FIXED
mozilla34
People
(Reporter: wilsonpage, Assigned: smaug)
References
(Blocks 1 open bug)
Details
(Whiteboard: [2.1-feature-qa+])
Attachments
(1 file)
2.35 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
`clientWidth`, `clientHeight`, `getBoundingClientRects` all return `0` when querying elements within the shadow-dom.
EXAMPLE
http://jsbin.com/saduq/1/edit
Comment 1•10 years ago
|
||
For the clientWidth case, Element::GetClientAreaRect calls Element::GetScrollFrame which calls Element::GetPrimaryFrame which does:
1746 nsIDocument* doc = GetCurrentDoc();
1747 if (!doc) {
1748 return nullptr;
1749 }
which of course fails for shadow DOM things. Do we have a bug tracking that yet?
Updated•10 years ago
|
Depends on: shadowcurrentdoc
Comment 3•10 years ago
|
||
It shouldn't, no.
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → bugs
Assignee | ||
Comment 4•10 years ago
|
||
Attachment #8463983 -
Flags: review+
Assignee | ||
Comment 5•10 years ago
|
||
I had uploaded the patch to Bug 1026164.
Assignee | ||
Comment 6•10 years ago
|
||
Comment 7•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
Updated•10 years ago
|
QA Whiteboard: [2.1-feature-qa+]
Updated•10 years ago
|
QA Whiteboard: [2.1-feature-qa+] → [2.1-feature-qa-]
Updated•10 years ago
|
QA Whiteboard: [2.1-feature-qa-]
Whiteboard: [2.1-feature-qa+]
Updated•10 years ago
|
Flags: in-moztrap-
Comment 8•10 years ago
|
||
Marking verified since there's no QA support planned to be done here, so verification isn't needed here.
Status: RESOLVED → VERIFIED
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•