mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
feat(css/prefixer): Support word-wrap
(#6679)
This commit is contained in:
parent
ca815650db
commit
46241b4e55
@ -3945,5 +3945,27 @@
|
|||||||
"safari": "3.2",
|
"safari": "3.2",
|
||||||
"ios": "4.3"
|
"ios": "4.3"
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"word-wrap": [
|
||||||
|
{
|
||||||
|
"chrome": "4",
|
||||||
|
"edge": "12",
|
||||||
|
"safari": "3.1",
|
||||||
|
"firefox": "3.5",
|
||||||
|
"opera": "11.5",
|
||||||
|
"ie": "6",
|
||||||
|
"ios": "3.2",
|
||||||
|
"android": "2.1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"chrome": "22",
|
||||||
|
"edge": "17",
|
||||||
|
"safari": "6",
|
||||||
|
"firefox": "48",
|
||||||
|
"opera": "11.5",
|
||||||
|
"ie": "11",
|
||||||
|
"ios": "6.1",
|
||||||
|
"android": "4.3.0"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -3188,6 +3188,10 @@ impl VisitMut for Prefixer {
|
|||||||
add_declaration!(Prefix::O, "-o-object-position", None);
|
add_declaration!(Prefix::O, "-o-object-position", None);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"overflow-wrap" => {
|
||||||
|
add_declaration!("word-wrap", None);
|
||||||
|
}
|
||||||
|
|
||||||
"tab-size" => {
|
"tab-size" => {
|
||||||
add_declaration!(Prefix::Moz, "-moz-tab-size", None);
|
add_declaration!(Prefix::Moz, "-moz-tab-size", None);
|
||||||
add_declaration!(Prefix::O, "-o-tab-size", None);
|
add_declaration!(Prefix::O, "-o-tab-size", None);
|
||||||
|
@ -0,0 +1,12 @@
|
|||||||
|
.someClass{
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
|
.anotherClass{
|
||||||
|
font-size:1rem;
|
||||||
|
overflow-wrap:break-word;
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
overflow-wrap: normal;
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
.someClass {
|
||||||
|
word-wrap: break-word;
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
}
|
||||||
|
.anotherClass {
|
||||||
|
font-size: 1rem;
|
||||||
|
word-wrap: break-word;
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
}
|
||||||
|
main {
|
||||||
|
word-wrap: normal;
|
||||||
|
overflow-wrap: normal;
|
||||||
|
}
|
@ -0,0 +1,10 @@
|
|||||||
|
.someClass {
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
}
|
||||||
|
.anotherClass {
|
||||||
|
font-size: 1rem;
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
}
|
||||||
|
main {
|
||||||
|
overflow-wrap: normal;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user