Closed
Bug 1679346
Opened 4 years ago
Closed 4 years ago
getClientRects() runs wrong with a span element which using css property `display:flex` shortly after the page was created
Categories
(Firefox :: Untriaged, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: mosu_ouyang, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36
Steps to reproduce:
- wrote a vue page which contains a span element with css property
display: flex
- just shortly after the page was mounted, used getLines() to do some calculation
Actual results:
I saw the content of the span element had been divided into 4 lines, but getLines() returned 1
Expected results:
get correct number of lines so that to be able to calculate correctly
Summary: getLines() runs wrong with a span element which using css property `display:flex` shortly after the page was created → getClientRects() runs wrong with a span element which using css property `display:flex` shortly after the page was created
correct my description, I used function getClientRects()
rather than getLines()
.
getLines()
is a function which contains getClientRect()
to calculate the number of lines of a span element.
Actual results:
I saw the content of the span element had been divided into 4 lines, but getClientRect()
returned a DomRectList of length 1.
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•