-
Notifications
You must be signed in to change notification settings - Fork 686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-ui-3] Can |CSS resize| change the value of the width/height properties which has been set with !Important? #5184
Comments
@frivoal can perhaps confirm this. This issue is related to whatwg/fullscreen#171. |
Yeah, the phrasing isn't great. what this means is that the style is injected in to a style attribute, and does not include
This has been a while, so I don't fully remember, but I believe this design was much more driven by existing implementations and compat than by a belief this was a smart approach. If this is causing issues and there's evidence than a better behavior would be web compatible, we could definitely consider it. Otherwise, maybe just an editorial clarification is in order. |
Is that equivalent to
from HTML? It seems like it might be a tiny bit different. |
It is different, yes. These are explicitly at the style-attribute level (so they'll win over normal width/height declarations in CSS), which is a much higher specificity level than presentational hints. |
How are both of these implemented? Do browsers have a more complicated cascade model than the specification allows for? (I'm wondering if HTML and CSS UI monkey patching the cascade is really what we want long term.) |
They're implemented literally changing the style attribute I think. |
Ah okay, I guess for this the way we could improve clarity then is by having the appropriate (low-level) calls into CSSOM to do just that. |
@annevk are you suggesting this clarification for css-ui, or for HTML, or both? |
CSSOM might need to expose the appropriate hook and CSS UI would have to invoke it. (HTML might need a better integration hook from CSS Cascade I suppose to make presentational hints more formalized.) |
https://drafts.csswg.org/css-ui-3/#resize:
Does this mean that we can't resize an element with !important width/height? The end of this sentence may not be easy to understand.
The div element with the following style can't be resized indeed in Firefox and Chrome.
The text was updated successfully, but these errors were encountered: