text_layer_test.css 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* Copyright 2015 Mozilla Foundation
  2. *
  3. * Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS,
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License.
  14. */
  15. /* Used in 'text' tests */
  16. .textLayer {
  17. position: absolute;
  18. left: 0;
  19. top: 0;
  20. right: 0;
  21. bottom: 0;
  22. line-height: 1;
  23. opacity: 1;
  24. }
  25. .textLayer span,
  26. .textLayer br {
  27. color: black;
  28. position: absolute;
  29. white-space: pre;
  30. transform-origin: 0% 0%;
  31. border: solid 1px rgba(255, 0, 0, 0.5);
  32. background-color: rgba(255, 255, 32, 0.1);
  33. box-sizing: border-box;
  34. }
  35. .textLayer .markedContent {
  36. border: none;
  37. background-color: transparent;
  38. }