Re: [csswg-drafts] CSS: element property : device-overflow-inflation-width + device-overflow-inflated-width (#10404)

@Loiroorio Yes, I would want to apply styles to elements that overflow the viewport, to selectively re-align or change the layout, such that they fall into the viewport and in the case of this proposal, prevent the viewport from being blowing up and limit that for mobiles to a factor and zoom, such pages have less issues rendering on mobile and it then just work.. https://github.com/w3c/csswg-drafts/issues/10403

1. I am using an attribute selector to inspect the property, but using a pseudo-class can work as well, anything that can inspect or make logical decisions in all places required based on an internal dom boolean variable.

2. I would say, that depends on how you structure the code and pre-evaluation of a render buffer of line render elements, before flushing them to pixels, which would allow injection of before items, like currently happens.  You can also limit the recursive iteration to a single overflow functional evaluation, which probably would be good for fixing and sorting most website pages out.
I am pretty sure it would be possible.





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


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

Received on Monday, 22 July 2024 19:17:21 UTC