webkitBoxOrient property is rendered 'webkit-box-orient' instead of '-webkit-box-orient'.
See original GitHub issueEnvironment
- OS: macOS Mojave 10.14.2
- CPU: 2.2 GHz Intel Core i7
- Total Memory: 16.00 GB
- Chrome 71
Binaries
- Node: 8.13.0
- npm: 6.4.1
- react: 16.7.0
npmPackages:
styled-components:
wanted: ^4.1.3 installed: 4.1.3
Reproduction
When i use styled-components as Style Objects, webkitBoxOrient
css property is rendered to webkit-box-orient
instead of -webkit-box-orient
in browser.
- https://www.styled-components.com/docs/advanced#style-objects (Style Objects)
import styled from 'styled-components';
const SampleText = styled.p({
width: '56px',
wordBreak: 'break-word',
webkitBoxOrient: 'vertical', // This
});
.isjcewa {
width: 56px;
word-break: break-word;
webkit-box-orient: vertical; // Should be -webkit-box-orient ....
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
box-orient - CSS: Cascading Style Sheets - MDN Web Docs
The box-orient CSS property sets whether an element lays out its contents horizontally or vertically.
Read more >Are there any alternatives for "-webkit-box-orient"
The line-clamp property is a shorthand for the max-lines , block-ellipsis ... content is fragmented away and neither rendered nor measured.
Read more >MozBoxOrient style property | webkitBoxOrient style property
Specifies or retrieves whether the children of a box element should be laid out horizontally or vertically. Only works for box objects. An...
Read more >CSSProperties - typescript
The box-orient CSS property specifies whether an element lays out its contents horizontally or vertically. Initial value: inline-axis ( horizontal in XUL).
Read more >"-webkit-box-orient" | Can I use... Support tables for ... - CanIUse
CSS property : box-orient · Global · unprefixed: · Chrome · Edge * · Safari · Firefox · Opera · IE.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This should probably filed as an issue on stylis, our CSS processor. https://github.com/thysultan/stylis.js
That being said, I’m not sure whether it’ll be patched considering that the property is nonstandard, so maybe it’s better to stick with manual prefixes for now https://developer.mozilla.org/en-US/docs/Web/CSS/box-orient
I doubt
box-orient
will ever be standard. It was part of the old flex box model of which the new flexbox model has since replaced.