Skip to content
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

[cssom][css-logical-props] Resolved value of logical properties #384

Closed
upsuper opened this issue Aug 5, 2016 · 3 comments
Closed

[cssom][css-logical-props] Resolved value of logical properties #384

upsuper opened this issue Aug 5, 2016 · 3 comments
Labels
cssom-1 Current Work

Comments

@upsuper
Copy link
Member

upsuper commented Aug 5, 2016

There is a list in CSSOM spec about properties which should return used value instead of computed value for declaration from getComputedStyle.

The question is, whether their corresponding logical properties should return used value as well? e.g. width should return used value, but should inline-size and block-size return used value?

My understanding is that, the list exists purely for historical reason, so we don't want to add any new property into that list, and consequently the new logical properties should not be put there either.

If that is the case, I think it's worth at least a note in the CSSOM spec that "any other property" includes the corresponding logical properties from CSS Logical Properties spec.

@fantasai
Copy link
Collaborator

fantasai commented Aug 8, 2016

I would actually lean towards having the same behavior for logical and physical equivalents. They are in a weird way aliases to the same property.

@fantasai fantasai added the cssom-1 Current Work label Aug 8, 2016
@zcorpan
Copy link
Member

zcorpan commented Aug 16, 2016

I tend agree with @fantasai. It also seems somewhat easier for developers to adopt logical properties if they behave the same as physical here.

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/4382
In Gecko blockSize returns the empty string. WebKit and Chromium don't implement block-size.

@upsuper
Copy link
Member Author

upsuper commented Aug 16, 2016

Right, Gecko hasn't implemented that for logical properties (which is unfortunate), and I hope it could get clear before we start implementing it.

Actually I'm fine either way. I just think the spec should make it clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cssom-1 Current Work
Projects
None yet
Development

No branches or pull requests

4 participants