mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
Bug 1158500 - make writing-mode a mapped CSS property. r=cam
This commit is contained in:
parent
6e4140d766
commit
481a70b111
@ -1364,7 +1364,6 @@ GK_ATOM(cy, "cy")
|
||||
GK_ATOM(d, "d")
|
||||
GK_ATOM(darken, "darken")
|
||||
GK_ATOM(defs, "defs")
|
||||
GK_ATOM(definition_src, "definition-src")
|
||||
GK_ATOM(deg, "deg")
|
||||
GK_ATOM(desc, "desc")
|
||||
GK_ATOM(diffuseConstant, "diffuseConstant")
|
||||
@ -1438,15 +1437,11 @@ GK_ATOM(g, "g")
|
||||
GK_ATOM(gamma, "gamma")
|
||||
// 'generic' conflicts with msvc11 winrt compiler extensions
|
||||
GK_ATOM(generic_, "generic")
|
||||
GK_ATOM(glyph, "glyph")
|
||||
GK_ATOM(glyphRef, "glyphRef")
|
||||
GK_ATOM(glyph_orientation_horizontal, "glyph-orientation-horizontal")
|
||||
GK_ATOM(glyph_orientation_vertical, "glyph-orientation-vertical")
|
||||
GK_ATOM(grad, "grad")
|
||||
GK_ATOM(gradientTransform, "gradientTransform")
|
||||
GK_ATOM(gradientUnits, "gradientUnits")
|
||||
GK_ATOM(hardLight, "hard-light")
|
||||
GK_ATOM(hkern, "hkern")
|
||||
GK_ATOM(hue, "hue")
|
||||
GK_ATOM(hueRotate, "hueRotate")
|
||||
GK_ATOM(identity, "identity")
|
||||
@ -1458,7 +1453,6 @@ GK_ATOM(k1, "k1")
|
||||
GK_ATOM(k2, "k2")
|
||||
GK_ATOM(k3, "k3")
|
||||
GK_ATOM(k4, "k4")
|
||||
GK_ATOM(kerning, "kerning")
|
||||
GK_ATOM(kernelMatrix, "kernelMatrix")
|
||||
GK_ATOM(kernelUnitLength, "kernelUnitLength")
|
||||
GK_ATOM(lengthAdjust, "lengthAdjust")
|
||||
@ -1587,9 +1581,9 @@ GK_ATOM(userSpaceOnUse, "userSpaceOnUse")
|
||||
GK_ATOM(view, "view")
|
||||
GK_ATOM(viewBox, "viewBox")
|
||||
GK_ATOM(viewTarget, "viewTarget")
|
||||
GK_ATOM(vkern, "vkern")
|
||||
GK_ATOM(white_space, "white-space")
|
||||
GK_ATOM(word_spacing, "word-spacing")
|
||||
GK_ATOM(writing_mode, "writing-mode")
|
||||
GK_ATOM(x, "x")
|
||||
GK_ATOM(x1, "x1")
|
||||
GK_ATOM(x2, "x2")
|
||||
|
@ -330,9 +330,9 @@ nsIAtom** const kElementsSVG[] = {
|
||||
&nsGkAtoms::font_face_uri, // font-face-uri
|
||||
&nsGkAtoms::foreignObject, // foreignObject
|
||||
&nsGkAtoms::g, // g
|
||||
&nsGkAtoms::glyph, // glyph
|
||||
// glyph
|
||||
&nsGkAtoms::glyphRef, // glyphRef
|
||||
&nsGkAtoms::hkern, // hkern
|
||||
// hkern
|
||||
&nsGkAtoms::image, // image
|
||||
&nsGkAtoms::line, // line
|
||||
&nsGkAtoms::linearGradient, // linearGradient
|
||||
@ -358,7 +358,7 @@ nsIAtom** const kElementsSVG[] = {
|
||||
&nsGkAtoms::tspan, // tspan
|
||||
&nsGkAtoms::use, // use
|
||||
&nsGkAtoms::view, // view
|
||||
&nsGkAtoms::vkern, // vkern
|
||||
// vkern
|
||||
nullptr
|
||||
};
|
||||
|
||||
@ -431,8 +431,8 @@ nsIAtom** const kAttributesSVG[] = {
|
||||
// g2
|
||||
// glyph-name
|
||||
// glyphRef
|
||||
&nsGkAtoms::glyph_orientation_horizontal, // glyph-orientation-horizontal
|
||||
&nsGkAtoms::glyph_orientation_vertical, // glyph-orientation-vertical
|
||||
// glyph-orientation-horizontal
|
||||
// glyph-orientation-vertical
|
||||
&nsGkAtoms::gradientTransform, // gradientTransform
|
||||
&nsGkAtoms::gradientUnits, // gradientUnits
|
||||
&nsGkAtoms::height, // height
|
||||
@ -450,7 +450,7 @@ nsIAtom** const kAttributesSVG[] = {
|
||||
&nsGkAtoms::k2, // k2
|
||||
&nsGkAtoms::k3, // k3
|
||||
&nsGkAtoms::k4, // k4
|
||||
&nsGkAtoms::kerning, // kerning
|
||||
// kerning
|
||||
&nsGkAtoms::kernelMatrix, // kernelMatrix
|
||||
&nsGkAtoms::kernelUnitLength, // kernelUnitLength
|
||||
&nsGkAtoms::keyPoints, // keyPoints
|
||||
@ -580,7 +580,7 @@ nsIAtom** const kAttributesSVG[] = {
|
||||
&nsGkAtoms::width, // width
|
||||
// widths
|
||||
&nsGkAtoms::word_spacing, // word-spacing
|
||||
// writing-mode
|
||||
&nsGkAtoms::writing_mode, // writing-mode
|
||||
&nsGkAtoms::x, // x
|
||||
// x-height
|
||||
&nsGkAtoms::x1, // x1
|
||||
|
@ -995,14 +995,12 @@ nsSVGElement::sTextContentElementsMap[] = {
|
||||
// { &nsGkAtoms::baseline_shift },
|
||||
{ &nsGkAtoms::direction },
|
||||
{ &nsGkAtoms::dominant_baseline },
|
||||
// { &nsGkAtoms::glyph_orientation_horizontal },
|
||||
// { &nsGkAtoms::glyph_orientation_vertical },
|
||||
// { &nsGkAtoms::kerning },
|
||||
{ &nsGkAtoms::letter_spacing },
|
||||
{ &nsGkAtoms::text_anchor },
|
||||
{ &nsGkAtoms::text_decoration },
|
||||
{ &nsGkAtoms::unicode_bidi },
|
||||
{ &nsGkAtoms::word_spacing },
|
||||
{ &nsGkAtoms::writing_mode },
|
||||
{ nullptr }
|
||||
};
|
||||
|
||||
|
@ -130,6 +130,9 @@ fuzzy-if(/^Windows\x20NT\x2010\.0/.test(http.oscpu)||/^Windows\x20NT\x206\.[12]/
|
||||
# text-shadow
|
||||
== text-shadow.svg text-shadow-ref.svg
|
||||
|
||||
# vertical text
|
||||
pref(layout.css.vertical-text.enabled,true) == vertical-01.svg vertical-01-ref.svg
|
||||
|
||||
# tests for ignoring various properties
|
||||
== ignore-border.svg ignore-prop-ref.svg
|
||||
== ignore-display.svg ignore-display-ref.svg
|
||||
|
12
layout/reftests/svg/text/vertical-01-ref.svg
Normal file
12
layout/reftests/svg/text/vertical-01-ref.svg
Normal file
@ -0,0 +1,12 @@
|
||||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<defs>
|
||||
<path id="path" d="M 100, 100 v 200" />
|
||||
</defs>
|
||||
<text style="font: 48px sans-serif" text-rendering="geometricPrecision">
|
||||
<textPath xlink:href="#path">A B C</textPath>
|
||||
</text>
|
||||
</svg>
|
After Width: | Height: | Size: 407 B |
10
layout/reftests/svg/text/vertical-01.svg
Normal file
10
layout/reftests/svg/text/vertical-01.svg
Normal file
@ -0,0 +1,10 @@
|
||||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<text x="100" y="100" text-rendering="geometricPrecision"
|
||||
writing-mode="vertical-rl" style="text-orientation: sideways-right;font: 48px sans-serif">
|
||||
A B C
|
||||
</text>
|
||||
</svg>
|
After Width: | Height: | Size: 345 B |
Loading…
Reference in New Issue
Block a user