Closed davidjbradshaw closed 7 months ago
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.
New features
ResizeObserver
to all non-static elements to better detect CSS:hover
, CSS Animation,<textarea/>
user resizing events and remove the need for user interaction event listeners961
offsetHeight
&offsetWidth
options to adjust values returned from iframe1030
bodyBoundingClientRect
anddocumentElementBoundingClientRect
size calculation methodslowestDivElement
size calculation methodpostMessageTarget
option to better support GAS iframes400
Changes
documentElementBoundingClientRect
getPageInfo()
to match modern DOM namesscrollLeft -> scrollX
andscrollTop -> scrollY
onInit()
->onReady()
, and added deprecation warninggetPageInfo()
bodyOffset
, usebodyOffsetMargin
for old behaviourgrow
height calculation methodmouse
,touch
andresize
event listeners, as not required alongsideResizeObserver
290
Fixes
lowestElement
to exclude non-visible elements (head
,meta
,base
,title
,script
,link
,style
,map
,area
,option
,optgroup
,template
,track
,wbr
,nobr
) and then check remaining elements usingelement.checkVisibility()
312
508
Math.ceil()
to round up sub-pixel heights1017
811
727
708
1008
min < max
if both are defined as numbers1204
Chore
Todo
trottle()
to useRAF
instead ofsetTimeout(16)
EventListener()
methods710
707
663
794