Re: [csswg-drafts] [css-anchor-position][other] Handling popover default styles (#10258)

Solved for swift and ios

/* 
  Source: https://github.com/w3c/csswg-drafts/issues/10258
  Adapted and maintained by: Lorcon1 (https://github.com/Lorcon1)
  Date: 2025-08-29
*/
[popover][data-anchored] {
  inset: auto;
  place-self: normal;
}




// Source: https://github.com/w3c/csswg-drafts/issues/10258
// Adapted and maintained by: Lorcon1 (https://github.com/Lorcon1)
if isAnchored {
    popover.sourceView = anchorView
    popover.sourceRect = anchorView.bounds
} else {
    popover.sourceView = self.view
    popover.sourceRect = CGRect(x: self.view.bounds.midX, y: self.view.bounds.midY, width: 0, height: 0)
}

-- 
GitHub Notification of comment by Lorcon1
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10258#issuecomment-3238379018 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 29 August 2025 22:00:15 UTC