diff --git a/doxyfile b/doxyfile index 1a8ea8a44..af7bd3462 100644 --- a/doxyfile +++ b/doxyfile @@ -32,7 +32,7 @@ DOXYFILE_ENCODING = UTF-8 # title of most generated pages and in a few other places. # The default value is: My Project. -PROJECT_NAME = "pdfHTML 5.0.4 API" +PROJECT_NAME = "pdfHTML 5.0.5 API" # The PROJECT_NUMBER tag can be used to enter a project or revision number. This # could be handy for archiving the generated documentation or if some version @@ -485,7 +485,7 @@ EXTRACT_PRIV_VIRTUAL = NO # scope will be included in the documentation. # The default value is: NO. -EXTRACT_PACKAGE = NO +EXTRACT_PACKAGE = YES # If the EXTRACT_STATIC tag is set to YES, all static members of a file will be # included in the documentation. diff --git a/itext.tests/itext.html2pdf.tests/Properties/AssemblyInfo.cs b/itext.tests/itext.html2pdf.tests/Properties/AssemblyInfo.cs index 899014bea..94ec0bcce 100644 --- a/itext.tests/itext.html2pdf.tests/Properties/AssemblyInfo.cs +++ b/itext.tests/itext.html2pdf.tests/Properties/AssemblyInfo.cs @@ -15,9 +15,9 @@ [assembly: Guid("ae4e5743-0665-4705-9a33-07ea57cdd269")] -[assembly: AssemblyVersion("5.0.4.0")] -[assembly: AssemblyFileVersion("5.0.4.0")] -[assembly: AssemblyInformationalVersion("5.0.4")] +[assembly: AssemblyVersion("5.0.5.0")] +[assembly: AssemblyFileVersion("5.0.5.0")] +[assembly: AssemblyInformationalVersion("5.0.5")] #if !NETSTANDARD2_0 [assembly: NUnit.Framework.Timeout(300000)] diff --git a/itext.tests/itext.html2pdf.tests/itext.html2pdf.tests.csproj b/itext.tests/itext.html2pdf.tests/itext.html2pdf.tests.csproj index bcf9cdce4..c3dd0f117 100644 --- a/itext.tests/itext.html2pdf.tests/itext.html2pdf.tests.csproj +++ b/itext.tests/itext.html2pdf.tests/itext.html2pdf.tests.csproj @@ -44,17 +44,17 @@ - + - + - + - + diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/HtmlConverterMetaInfoTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/HtmlConverterMetaInfoTest.cs index bb323f815..485be0fb9 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/HtmlConverterMetaInfoTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/HtmlConverterMetaInfoTest.cs @@ -40,7 +40,7 @@ namespace iText.Html2pdf { public class HtmlConverterMetaInfoTest : ExtendedITextTest { [NUnit.Framework.Test] public virtual void MetaInfoShouldBePresentTest() { - IMetaInfo o = new _IMetaInfo_56(); + IMetaInfo o = new _IMetaInfo_55(); ConverterProperties converterProperties = new ConverterProperties(); converterProperties.SetEventMetaInfo(o); HtmlConverterMetaInfoTest.InvocationAssert invocationAssert = new HtmlConverterMetaInfoTest.InvocationAssert @@ -54,8 +54,8 @@ public virtual void MetaInfoShouldBePresentTest() { NUnit.Framework.Assert.IsTrue(invocationAssert.IsInvoked()); } - private sealed class _IMetaInfo_56 : IMetaInfo { - public _IMetaInfo_56() { + private sealed class _IMetaInfo_55 : IMetaInfo { + public _IMetaInfo_55() { } } diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/HtmlConverterPdfAParameterizedTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/HtmlConverterPdfAParameterizedTest.cs index a42fd4f33..3422cc466 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/HtmlConverterPdfAParameterizedTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/HtmlConverterPdfAParameterizedTest.cs @@ -23,13 +23,11 @@ You should have received a copy of the GNU Affero General Public License using System; using System.Collections.Generic; using System.IO; -using System.Linq; using iText.Commons.Utils; using iText.Kernel.Pdf; namespace iText.Html2pdf { [NUnit.Framework.Category("IntegrationTest")] - [NUnit.Framework.TestFixtureSource("RotationRelatedPropertiesTestFixtureData")] public class HtmlConverterPdfAParameterizedTest : ExtendedHtmlConversionITextTest { public static readonly String SOURCE_FOLDER = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext .CurrentContext.TestDirectory) + "/resources/itext/html2pdf/HtmlConverterPdfAParameterizedTest/"; @@ -37,27 +35,11 @@ public class HtmlConverterPdfAParameterizedTest : ExtendedHtmlConversionITextTes public static readonly String DESTINATION_FOLDER = NUnit.Framework.TestContext.CurrentContext.TestDirectory + "/test/itext/html2pdf/HtmlConverterPdfAParameterizedTest/"; - private readonly String htmlName; - - private readonly String testName; - - private readonly PdfAConformanceLevel conformanceLevel; - [NUnit.Framework.OneTimeSetUp] public static void BeforeClass() { CreateDestinationFolder(DESTINATION_FOLDER); } - public HtmlConverterPdfAParameterizedTest(Object htmlName, Object testName, Object conformance) { - this.conformanceLevel = (PdfAConformanceLevel)conformance; - this.htmlName = (String)htmlName; - this.testName = (String)testName; - } - - public HtmlConverterPdfAParameterizedTest(Object[] array) - : this(array[0], array[1], array[2]) { - } - // TODO DEVSIX-2449 z-index is not supported (zindex.html) public static IEnumerable RotationRelatedProperties() { return JavaUtil.ArraysAsList(new Object[][] { new Object[] { "images.html", "pdfA4BasicImageTest", PdfAConformanceLevel @@ -105,12 +87,9 @@ public static IEnumerable RotationRelatedProperties() { }, new Object[] { "zIndex.html", "pdfA1ZIndexTest", PdfAConformanceLevel.PDF_A_1B } }); } - public static ICollection RotationRelatedPropertiesTestFixtureData() { - return RotationRelatedProperties().Select(array => new NUnit.Framework.TestFixtureData(array)).ToList(); - } - - [NUnit.Framework.Test] - public virtual void ConvertToPdfA4Test() { + [NUnit.Framework.TestCaseSource("RotationRelatedProperties")] + public virtual void ConvertToPdfA4Test(Object htmlName, Object testName, PdfAConformanceLevel conformanceLevel + ) { String sourceHtml = SOURCE_FOLDER + htmlName; String destinationPdf = DESTINATION_FOLDER + testName + ".pdf"; String cmpPdf = SOURCE_FOLDER + "cmp_" + testName + ".pdf"; diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/HtmlConverterTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/HtmlConverterTest.cs index 046d50ee6..8ebf010f3 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/HtmlConverterTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/HtmlConverterTest.cs @@ -78,13 +78,14 @@ public virtual void ConvertToPdfASimpleTest() { [NUnit.Framework.Test] public virtual void CannotConvertHtmlToDocumentInReadingModeTest() { - NUnit.Framework.Assert.That(() => { + Exception exception = NUnit.Framework.Assert.Catch(typeof(Html2PdfException), () => { PdfDocument pdfDocument = CreateTempDoc(); ConverterProperties properties = new ConverterProperties(); Document document = HtmlConverter.ConvertToDocument("", pdfDocument, properties); } - , NUnit.Framework.Throws.InstanceOf().With.Message.EqualTo(Html2PdfException.PDF_DOCUMENT_SHOULD_BE_IN_WRITING_MODE)) -; + ); + NUnit.Framework.Assert.AreEqual(Html2PdfException.PDF_DOCUMENT_SHOULD_BE_IN_WRITING_MODE, exception.Message + ); } [NUnit.Framework.Test] diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/ProcessorContextTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/ProcessorContextTest.cs index 62ef67aaf..b06a458c8 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/ProcessorContextTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/ProcessorContextTest.cs @@ -49,13 +49,13 @@ public static void BeforeClass() { [NUnit.Framework.Test] public virtual void DoNotResetFontProviderTest() { - NUnit.Framework.Assert.That(() => { + NUnit.Framework.Assert.Catch(typeof(PdfException), () => { FileStream fileInputStream = new FileStream(sourceFolder + "justHelloWorld.html", FileMode.Open, FileAccess.Read ); IXmlParser parser = new JsoupHtmlParser(); IDocumentNode documentNode = parser.Parse(fileInputStream, null); ConverterProperties converterProperties = new ConverterProperties(); - converterProperties.SetFontProvider(new _DefaultFontProvider_71(false, true, false)); + converterProperties.SetFontProvider(new _DefaultFontProvider_66(false, true, false)); // Do nothing here. That should result in an exception. IHtmlProcessor processor = new DefaultHtmlProcessor(converterProperties); Document doc1 = processor.ProcessDocument(documentNode, new PdfDocument(new PdfWriter(new MemoryStream())) @@ -67,12 +67,11 @@ public virtual void DoNotResetFontProviderTest() { NUnit.Framework.Assert.IsTrue(false, "The test should have failed before that assert, since it's strictly forbidden not to reset the FontProvider instance after each html to pdf conversion." ); } - , NUnit.Framework.Throws.InstanceOf()) -; + ); } - private sealed class _DefaultFontProvider_71 : DefaultFontProvider { - public _DefaultFontProvider_71(bool baseArg1, bool baseArg2, bool baseArg3) + private sealed class _DefaultFontProvider_66 : DefaultFontProvider { + public _DefaultFontProvider_66(bool baseArg1, bool baseArg2, bool baseArg3) : base(baseArg1, baseArg2, baseArg3) { } diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/attach/impl/DefaultTagWorkerFactoryTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/attach/impl/DefaultTagWorkerFactoryTest.cs index 7a0a8e72a..33b7a1a09 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/attach/impl/DefaultTagWorkerFactoryTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/attach/impl/DefaultTagWorkerFactoryTest.cs @@ -40,12 +40,15 @@ public virtual void CannotGetTagWorkerForCustomTagViaReflection() { } } +//\cond DO_NOT_DOCUMENT internal class TestTagWorkerFactory : DefaultTagWorkerFactory { public TestTagWorkerFactory() { GetDefaultMapping().PutMapping("custom-tag", (lhs, rhs) => new TestClass()); } } +//\endcond +//\cond DO_NOT_DOCUMENT internal class TestClass : ITagWorker { public virtual void ProcessEnd(IElementNode element, ProcessorContext context) { } @@ -62,4 +65,5 @@ public virtual IPropertyContainer GetElementResult() { return null; } } +//\endcond } diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/attach/impl/layout/PageCountRendererTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/attach/impl/layout/PageCountRendererTest.cs index 217e579db..dad0b4f93 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/attach/impl/layout/PageCountRendererTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/attach/impl/layout/PageCountRendererTest.cs @@ -33,13 +33,13 @@ public class PageCountRendererTest : ExtendedITextTest { [NUnit.Framework.Test] [LogMessage(iText.IO.Logs.IoLogMessageConstant.GET_NEXT_RENDERER_SHOULD_BE_OVERRIDDEN)] public virtual void GetNextRendererShouldBeOverriddenTest() { - PageCountRenderer pageCountRenderer = new _PageCountRenderer_50(new PageCountElement()); + PageCountRenderer pageCountRenderer = new _PageCountRenderer_49(new PageCountElement()); // Nothing is overridden NUnit.Framework.Assert.AreEqual(typeof(PageCountRenderer), pageCountRenderer.GetNextRenderer().GetType()); } - private sealed class _PageCountRenderer_50 : PageCountRenderer { - public _PageCountRenderer_50(PageCountElement baseArg1) + private sealed class _PageCountRenderer_49 : PageCountRenderer { + public _PageCountRenderer_49(PageCountElement baseArg1) : base(baseArg1) { } } @@ -55,6 +55,7 @@ public virtual void CreateCopyShouldBeOverriddenTest() { NUnit.Framework.Assert.IsTrue(true); } +//\cond DO_NOT_DOCUMENT internal class CustomPageCountRenderer : PageCountRenderer { public CustomPageCountRenderer(PageCountElement textElement) : base(textElement) { @@ -74,5 +75,6 @@ public override IRenderer GetNextRenderer() { return new PageCountRendererTest.CustomPageCountRenderer((PageCountElement)this.modelElement); } } +//\endcond } } diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/attach/impl/layout/PageTargetCountRendererTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/attach/impl/layout/PageTargetCountRendererTest.cs index 598b886da..060ad9846 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/attach/impl/layout/PageTargetCountRendererTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/attach/impl/layout/PageTargetCountRendererTest.cs @@ -33,15 +33,15 @@ public class PageTargetCountRendererTest : ExtendedITextTest { [NUnit.Framework.Test] [LogMessage(iText.IO.Logs.IoLogMessageConstant.GET_NEXT_RENDERER_SHOULD_BE_OVERRIDDEN)] public virtual void GetNextRendererShouldBeOverriddenTest() { - PageTargetCountRenderer pageTargetCountRenderer = new _PageTargetCountRenderer_51(new PageTargetCountElement + PageTargetCountRenderer pageTargetCountRenderer = new _PageTargetCountRenderer_50(new PageTargetCountElement ("test")); // Nothing is overridden NUnit.Framework.Assert.AreEqual(typeof(PageTargetCountRenderer), pageTargetCountRenderer.GetNextRenderer() .GetType()); } - private sealed class _PageTargetCountRenderer_51 : PageTargetCountRenderer { - public _PageTargetCountRenderer_51(PageTargetCountElement baseArg1) + private sealed class _PageTargetCountRenderer_50 : PageTargetCountRenderer { + public _PageTargetCountRenderer_50(PageTargetCountElement baseArg1) : base(baseArg1) { } } @@ -57,6 +57,7 @@ public virtual void CreateCopyShouldBeOverriddenTest() { NUnit.Framework.Assert.IsTrue(true); } +//\cond DO_NOT_DOCUMENT internal class CustomPageTargetCountRenderer : PageTargetCountRenderer { public CustomPageTargetCountRenderer(PageTargetCountElement textElement) : base(textElement) { @@ -77,5 +78,6 @@ public override IRenderer GetNextRenderer() { ); } } +//\endcond } } diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/attach/impl/layout/WidthDimensionContainerTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/attach/impl/layout/WidthDimensionContainerTest.cs index 2501ac917..e3ffcd323 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/attach/impl/layout/WidthDimensionContainerTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/attach/impl/layout/WidthDimensionContainerTest.cs @@ -35,7 +35,7 @@ public virtual void MinFixContentDimensionTest() { INode iNode = null; IDictionary styles = new Dictionary(); styles.Put("width", "20pt"); - CssContextNode cssContextNode = new _CssContextNode_46(iNode); + CssContextNode cssContextNode = new _CssContextNode_45(iNode); cssContextNode.SetStyles(styles); Paragraph paragraph = new Paragraph("Paragraph"); WidthDimensionContainer widthDimensionContainer = new WidthDimensionContainer(cssContextNode, 500, paragraph @@ -43,8 +43,8 @@ public virtual void MinFixContentDimensionTest() { NUnit.Framework.Assert.AreEqual(widthDimensionContainer.minContentDimension, 20, 0.0); } - private sealed class _CssContextNode_46 : CssContextNode { - public _CssContextNode_46(INode baseArg1) + private sealed class _CssContextNode_45 : CssContextNode { + public _CssContextNode_45(INode baseArg1) : base(baseArg1) { } diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/FontFaceTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/FontFaceTest.cs index 70b665af1..430295897 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/FontFaceTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/FontFaceTest.cs @@ -311,6 +311,12 @@ public virtual void UnusedFontWithUnicodeRangeTest() { RunTest("unusedFontWithUnicodeRangeTest"); } + [NUnit.Framework.Test] + public virtual void BolderAndLighterFontWeightTest() { + //TODO DEVSIX-2114: Support bolder / Lighter font weight + RunTest("bolderLighterFontWeightTest"); + } + private void RunTest(String name, FontProvider fontProvider) { String htmlPath = sourceFolder + name + ".html"; String pdfPath = destinationFolder + name + ".pdf"; diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/FontFamilyFallbackTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/FontFamilyFallbackTest.cs new file mode 100644 index 000000000..293cfd5fb --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/FontFamilyFallbackTest.cs @@ -0,0 +1,96 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using System.IO; +using iText.Html2pdf; +using iText.IO.Font; +using iText.Kernel.Pdf; +using iText.Layout.Font; +using iText.Test; + +namespace iText.Html2pdf.Css { + [NUnit.Framework.Category("IntegrationTest")] + public class FontFamilyFallbackTest : ExtendedITextTest { + public static readonly String SOURCE_FOLDER = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext + .CurrentContext.TestDirectory) + "/resources/itext/html2pdf/css/FontFamilyFallbackTest/"; + + public static readonly String DESTINATION_FOLDER = NUnit.Framework.TestContext.CurrentContext.TestDirectory + + "/test/itext/html2pdf/css/FontFamilyFallbackTest/"; + + public static readonly String FONTSFOLDER = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext + .CurrentContext.TestDirectory) + "/resources/itext/html2pdf/fonts/"; + + [NUnit.Framework.OneTimeSetUp] + public static void BeforeClass() { + CreateOrClearDestinationFolder(DESTINATION_FOLDER); + } + + [NUnit.Framework.Test] + public virtual void NoJapaneseGlyphsTest() { + String htmlPath = SOURCE_FOLDER + "glyphsNotFound.html"; + String pdfPath = DESTINATION_FOLDER + "glyphsNotFound.pdf"; + FontProgram font = FontProgramFactory.CreateFont(FONTSFOLDER + "Bokor-Regular.ttf"); + FontProgram backUpFont = FontProgramFactory.CreateFont(FONTSFOLDER + "NotoSansJP-Bold.ttf"); + FontProvider dfp = new FontProvider(); + dfp.AddFont(font); + dfp.AddFont(backUpFont); + ConverterProperties props = new ConverterProperties(); + props.SetFontProvider(dfp); + HtmlConverter.ConvertToPdf(new FileInfo(htmlPath), new FileInfo(pdfPath), props); + String basefontName = ""; + int fontDictionarySize = 0; + using (PdfDocument resultPdf = new PdfDocument(new PdfReader(pdfPath))) { + PdfDictionary resources = resultPdf.GetPage(1).GetResources().GetPdfObject(); + PdfDictionary fontDictionary = resources.GetAsDictionary(PdfName.Font); + fontDictionarySize = fontDictionary.Size(); + basefontName = fontDictionary.GetAsDictionary(new PdfName("F1")).GetAsName(PdfName.BaseFont).GetValue(); + } + NUnit.Framework.Assert.AreEqual(2, fontDictionarySize, "PDF contains a number of fonts different from expected." + ); + NUnit.Framework.Assert.IsTrue(basefontName.Contains("NotoSansJP-Bold"), "Base font name is different from expected." + ); + } + + [NUnit.Framework.Test] + public virtual void MixedEnglishJapaneseTest() { + String htmlPath = SOURCE_FOLDER + "mixedJapaneseEnglish.html"; + String pdfPath = DESTINATION_FOLDER + "mixedJapaneseEnglish.pdf"; + FontProgram font = FontProgramFactory.CreateFont(FONTSFOLDER + "Bokor-Regular.ttf"); + FontProgram backUpFont = FontProgramFactory.CreateFont(FONTSFOLDER + "NotoSansJP-Bold.ttf"); + FontProvider dfp = new FontProvider(); + dfp.AddFont(font); + dfp.AddFont(backUpFont); + ConverterProperties props = new ConverterProperties(); + props.SetFontProvider(dfp); + HtmlConverter.ConvertToPdf(new FileInfo(htmlPath), new FileInfo(pdfPath), props); + int fontDictionarySize = 0; + using (PdfDocument resultPdf = new PdfDocument(new PdfReader(pdfPath))) { + PdfDictionary resources = resultPdf.GetPage(1).GetResources().GetPdfObject(); + PdfDictionary fontDictionary = resources.GetAsDictionary(PdfName.Font); + fontDictionarySize = fontDictionary.Size(); + } + NUnit.Framework.Assert.AreEqual(2, fontDictionarySize, "PDF contains " + fontDictionarySize + " and not the expected 2." + ); + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/FontFamilyTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/FontFamilyTest.cs index 74a358c7e..972fbf09c 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/FontFamilyTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/FontFamilyTest.cs @@ -23,8 +23,10 @@ You should have received a copy of the GNU Affero General Public License using System; using System.IO; using iText.Html2pdf; +using iText.Html2pdf.Logs; using iText.Kernel.Utils; using iText.Test; +using iText.Test.Attributes; namespace iText.Html2pdf.Css { [NUnit.Framework.Category("IntegrationTest")] @@ -49,5 +51,18 @@ public virtual void HugeFontFamilyForDosAttackTest() { NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(pdfPath, cmpPdfPath, DESTINATION_FOLDER, "diff_")); } + + [NUnit.Framework.Test] + [LogMessage(Html2PdfLogMessageConstant.UNABLE_TO_RETRIEVE_FONT, Count = 1)] + public virtual void SelectFontFromTTCTest() { + String htmlPath = SOURCE_FOLDER + "selectFontInGroup.html"; + String pdfPath = DESTINATION_FOLDER + "selectFontInGroup.pdf"; + String cmpPdfPath = SOURCE_FOLDER + "cmp_selectFontInGroup.pdf"; + HtmlConverter.ConvertToPdf(new FileInfo(htmlPath), new FileInfo(pdfPath)); + //TODO DEVSIX-1104: Change cmp file after supporting ttc#id when selecting font from ttc + //Currently it will look for a font file where #{id} is part of the font path. + NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(pdfPath, cmpPdfPath, DESTINATION_FOLDER, + "diff_")); + } } } diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/FontRangeTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/FontRangeTest.cs new file mode 100644 index 000000000..6c7f11594 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/FontRangeTest.cs @@ -0,0 +1,74 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf; +using iText.Html2pdf.Resolver.Font; +using iText.IO.Font; +using iText.IO.Font.Constants; +using iText.Kernel.Pdf; +using iText.Layout.Font; +using iText.Layout.Font.Selectorstrategy; +using iText.Test; + +namespace iText.Html2pdf.Css { + [NUnit.Framework.Category("IntegrationTest")] + public class FontRangeTest : ExtendedITextTest { + public static readonly String SOURCE_FOLDER = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext + .CurrentContext.TestDirectory) + "/resources/itext/html2pdf/css/FontRangeTest/"; + + public static readonly String DESTINATION_FOLDER = NUnit.Framework.TestContext.CurrentContext.TestDirectory + + "/test/itext/html2pdf/css/FontRangeTest/"; + + public static readonly String FONTS_FOLDER = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext + .CurrentContext.TestDirectory) + "/resources/itext/html2pdf/fonts/"; + + [NUnit.Framework.OneTimeSetUp] + public static void BeforeClass() { + CreateOrClearDestinationFolder(DESTINATION_FOLDER); + } + + [NUnit.Framework.Test] + public virtual void FontCharRangeTest() { + char glyph = '\u00B6'; + String HTML = "Hello" + glyph + "World"; + String font = FONTS_FOLDER + "Bokor-Regular.ttf"; + String dest = DESTINATION_FOLDER + "fontRangeTest.pdf"; + FontProvider fontProvider = new DefaultFontProvider(false, false, false); + FontProgram fontProgram = FontProgramFactory.CreateFont(font); + fontProvider.SetFontSelectorStrategyFactory(new BestMatchFontSelectorStrategy.BestMatchFontSelectorStrategyFactory + ()); + fontProvider.AddFont(fontProgram); + fontProvider.AddFont(StandardFonts.HELVETICA, PdfEncodings.WINANSI, new RangeBuilder((int)glyph).Create()); + ConverterProperties properties = new ConverterProperties(); + properties.SetFontProvider(fontProvider); + HtmlConverter.ConvertToPdf(HTML, new PdfWriter(dest), properties); + PdfDocument pdfDocument = new PdfDocument(new PdfReader(dest)); + String contentStream = iText.Commons.Utils.JavaUtil.GetStringForBytes(pdfDocument.GetPage(1).GetFirstContentStream + ().GetBytes(), System.Text.Encoding.UTF8); + //Currently we will find only one mention of our first font in the contentstream. + //Expected we would find it twice. /F1 for hello - /F2 for the glyph - /F1 again for world. + int count = iText.Commons.Utils.StringUtil.Split(contentStream, "/F1").Length - 1; + NUnit.Framework.Assert.AreEqual(2, count, "The result does not find the expected number of occurrences."); + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/FontStyleParameterizedTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/FontStyleParameterizedTest.cs new file mode 100644 index 000000000..ea61b2f76 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/FontStyleParameterizedTest.cs @@ -0,0 +1,77 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using iText.Commons.Utils; +using iText.Html2pdf; +using iText.Kernel.Utils; +using iText.Test; + +namespace iText.Html2pdf.Css { + [NUnit.Framework.Category("IntegrationTest")] + [NUnit.Framework.TestFixtureSource("RotationRelatedPropertiesTestFixtureData")] + public class FontStyleParameterizedTest : ExtendedITextTest { + public static readonly String SOURCE_FOLDER = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext + .CurrentContext.TestDirectory) + "/resources/itext/html2pdf/css/FontStyleParameterizedTest/"; + + public static readonly String DESTINATION_FOLDER = NUnit.Framework.TestContext.CurrentContext.TestDirectory + + "/test/itext/html2pdf/css/FontStyleParameterizedTest/"; + + private readonly String htmlName; + + [NUnit.Framework.OneTimeSetUp] + public static void BeforeClass() { + CreateDestinationFolder(DESTINATION_FOLDER); + } + + public FontStyleParameterizedTest(String htmlName) { + this.htmlName = htmlName; + } + + public FontStyleParameterizedTest(String[] array) + : this(array[0]) { + } + + public static IEnumerable RotationRelatedProperties() { + return JavaUtil.ArraysAsList(new Object[][] { new Object[] { "fontWithSerifTest" }, new Object[] { "fontWithSansSerifTest" + }, new Object[] { "monospaceFontTest" }, new Object[] { "cursiveFontTest" }, new Object[] { "fantasyFontTest" + } }); + } + + public static ICollection RotationRelatedPropertiesTestFixtureData() { + return RotationRelatedProperties().Select(array => new NUnit.Framework.TestFixtureData(array)).ToList(); + } + + [NUnit.Framework.Test] + public virtual void ConvertToPdfA4Test() { + String htmlPath = SOURCE_FOLDER + htmlName + ".html"; + String pdfPath = DESTINATION_FOLDER + htmlName + ".pdf"; + String cmpPdfPath = SOURCE_FOLDER + "cmp_" + htmlName + ".pdf"; + HtmlConverter.ConvertToPdf(new FileInfo(htmlPath), new FileInfo(pdfPath)); + NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(pdfPath, cmpPdfPath, DESTINATION_FOLDER, + "diff_")); + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/LineHeightTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/LineHeightTest.cs index 0d8222ff9..1f6fcb024 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/LineHeightTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/LineHeightTest.cs @@ -208,6 +208,7 @@ public virtual void LineHeightMathJaxMathFontNormalTest() { TestLineHeight("lineHeightMathJaxMathFontNormalTest"); } +//\cond DO_NOT_DOCUMENT internal virtual void TestLineHeight(String name) { String sourceHtml = SOURCE_FOLDER + name + ".html"; String destinationPdf = DESTINATION_FOLDER + name + ".pdf"; @@ -221,7 +222,9 @@ internal virtual void TestLineHeight(String name) { NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(destinationPdf, cmpPdf, DESTINATION_FOLDER , "diff_" + name + "_")); } +//\endcond +//\cond DO_NOT_DOCUMENT internal static ConverterProperties InitConverterProperties() { ConverterProperties converterProperties = new ConverterProperties(); converterProperties.SetBaseUri(SOURCE_FOLDER); @@ -231,5 +234,6 @@ internal static ConverterProperties InitConverterProperties() { converterProperties.SetFontProvider(fontProvider); return converterProperties; } +//\endcond } } diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/OrphansWidowsUnitTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/OrphansWidowsUnitTest.cs index 21d220393..025da08ce 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/OrphansWidowsUnitTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/OrphansWidowsUnitTest.cs @@ -228,6 +228,7 @@ private IList ConvertToElements(String name) { return HtmlConverter.ConvertToElements(new FileStream(sourceHtml, FileMode.Open, FileAccess.Read)); } +//\cond DO_NOT_DOCUMENT internal class CustomBlockCssApplierFactory : DefaultCssApplierFactory { public override ICssApplier GetCustomCssApplier(IElementNode tag) { if (TagConstants.P.Equals(tag.Name())) { @@ -236,7 +237,9 @@ public override ICssApplier GetCustomCssApplier(IElementNode tag) { return null; } } +//\endcond +//\cond DO_NOT_DOCUMENT internal class CustomBlockCssApplier : BlockCssApplier { public override void Apply(ProcessorContext context, IStylesContainer stylesContainer, ITagWorker tagWorker ) { @@ -250,5 +253,6 @@ public override void Apply(ProcessorContext context, IStylesContainer stylesCont } } } +//\endcond } } diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/OverflowWrapTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/OverflowWrapTest.cs index 14611d643..745002cd3 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/OverflowWrapTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/OverflowWrapTest.cs @@ -153,7 +153,7 @@ public virtual void ChosenOverflowWrapValueUnset01() { } // todo DEVSIX-4723 replace assertNull above with the commented lines below - // Assert.assertEquals(OverflowWrapPropertyValue.ANYWHERE, + // Assertions.assertEquals(OverflowWrapPropertyValue.ANYWHERE, // paragraph.getProperty(Property.OVERFLOW_WRAP)); [NUnit.Framework.Test] public virtual void ChosenOverflowWrapValueUnset02() { diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/PageBreakTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/PageBreakTest.cs index 23b38699e..b17fd2356 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/PageBreakTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/PageBreakTest.cs @@ -36,7 +36,6 @@ You should have received a copy of the GNU Affero General Public License namespace iText.Html2pdf.Css { [NUnit.Framework.Category("IntegrationTest")] public class PageBreakTest : ExtendedHtmlConversionITextTest { - //Member of testing class. Add if it isn't there. public static readonly String sourceFolder = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext .CurrentContext.TestDirectory) + "/resources/itext/html2pdf/css/PageBreakTest/"; @@ -166,12 +165,9 @@ public virtual void PageBreakAlwaysInsidePageBreakAvoidTest() { [NUnit.Framework.Test] [LogMessage(iText.IO.Logs.IoLogMessageConstant.CLIP_ELEMENT)] public virtual void PageBreakInConstrainedDivTest() { - NUnit.Framework.Assert.That(() => { - /* Test will fail after fix in DEVSIX-2024 */ - RunTest("pageBreakInConstrainedDivTest"); - } - , NUnit.Framework.Throws.InstanceOf()) -; + /* Test will fail after fix in DEVSIX-2024 */ + NUnit.Framework.Assert.Catch(typeof(NotSupportedException), () => RunTest("pageBreakInConstrainedDivTest") + ); } [NUnit.Framework.Test] diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/PageRuleTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/PageRuleTest.cs index 459421d03..12360aefb 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/PageRuleTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/PageRuleTest.cs @@ -660,17 +660,13 @@ public virtual void MarginBoxMultilineTest04() { [NUnit.Framework.Test] public virtual void WrongPageRuleCssStructureTest() { - NUnit.Framework.Assert.That(() => { - RunTest("wrongPageRuleCssStructureTest"); - } - , NUnit.Framework.Throws.InstanceOf()) -; + NUnit.Framework.Assert.Catch(typeof(Exception), () => RunTest("wrongPageRuleCssStructureTest")); } [NUnit.Framework.Test] public virtual void PageCountTestTableAlignLeft() { - NUnit.Framework.Assert.That(() => { - //TODO: DEVSIX-1570, SUP-2322. Remove junitExpectedException after the fix. + //TODO: DEVSIX-1570, SUP-2322. Remove junitExpectedException after the fix. + NUnit.Framework.Assert.Catch(typeof(AssertionException), () => { String expectedText = "Page 1 of 3"; String nameAlignLeft = "htmlWithTableAlignLeft.html"; String pdfOutputName = DESTINATION_FOLDER + nameAlignLeft + ".pdf"; @@ -683,14 +679,13 @@ public virtual void PageCountTestTableAlignLeft() { NUnit.Framework.Assert.IsTrue(textFromPage.Contains(expectedText), "Page doesn't contain text " + expectedText ); } - , NUnit.Framework.Throws.InstanceOf()) -; + ); } [NUnit.Framework.Test] public virtual void PageCountTestTableFloatLeft() { - NUnit.Framework.Assert.That(() => { - //TODO: DEVSIX-1570, SUP-2322. Remove junitExpectedException after the fix. + //TODO: DEVSIX-1570, SUP-2322. Remove junitExpectedException after the fix. + NUnit.Framework.Assert.Catch(typeof(AssertionException), () => { String expectedText = "Page 3 of 3"; String nameFloatLeft = "htmlWithTableFloatLeft.html"; String pdfOutputName = DESTINATION_FOLDER + nameFloatLeft + ".pdf"; @@ -703,8 +698,7 @@ public virtual void PageCountTestTableFloatLeft() { NUnit.Framework.Assert.IsTrue(textFromPage.Contains(expectedText), "Page doesn't contain text " + expectedText ); } - , NUnit.Framework.Throws.InstanceOf()) -; + ); } private class CustomFlushingTagWorkerFactory : DefaultTagWorkerFactory { diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/TargetCounterTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/TargetCounterTest.cs index 3d29803ca..f15950de8 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/TargetCounterTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/TargetCounterTest.cs @@ -150,7 +150,7 @@ public virtual void CustomRendererAndNonPageTargetCounterTest() { } private void ConvertToPdfWithCustomRendererAndCompare(String name) { - ConverterProperties properties = new ConverterProperties().SetTagWorkerFactory(new _DefaultTagWorkerFactory_166 + ConverterProperties properties = new ConverterProperties().SetTagWorkerFactory(new _DefaultTagWorkerFactory_165 ()); DefaultHtmlProcessor processor = new DefaultHtmlProcessor(properties); IXmlParser parser = new JsoupHtmlParser(); @@ -164,19 +164,19 @@ private void ConvertToPdfWithCustomRendererAndCompare(String name) { + ".pdf", destinationFolder)); } - private sealed class _DefaultTagWorkerFactory_166 : DefaultTagWorkerFactory { - public _DefaultTagWorkerFactory_166() { + private sealed class _DefaultTagWorkerFactory_165 : DefaultTagWorkerFactory { + public _DefaultTagWorkerFactory_165() { } public override ITagWorker GetCustomTagWorker(IElementNode tag, ProcessorContext context) { if (TagConstants.HTML.Equals(tag.Name())) { - return new _ITagWorker_170(tag, context); + return new _ITagWorker_169(tag, context); } return null; } - private sealed class _ITagWorker_170 : ITagWorker { - public _ITagWorker_170(IElementNode tag, ProcessorContext context) { + private sealed class _ITagWorker_169 : ITagWorker { + public _ITagWorker_169(IElementNode tag, ProcessorContext context) { this.tag = tag; this.context = context; this.htmlTagWorker = new HtmlTagWorker(tag, context); diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/apply/impl/DefaultCssApplierFactoryTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/apply/impl/DefaultCssApplierFactoryTest.cs index 44389aa80..58fda9142 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/apply/impl/DefaultCssApplierFactoryTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/apply/impl/DefaultCssApplierFactoryTest.cs @@ -37,15 +37,19 @@ public virtual void CannotGetCssApplierForCustomTagViaReflection() { } } +//\cond DO_NOT_DOCUMENT internal class TestCssApplierFactory : DefaultCssApplierFactory { public TestCssApplierFactory() { GetDefaultMapping().PutMapping("custom-tag", () => new TestClass()); } } +//\endcond +//\cond DO_NOT_DOCUMENT internal class TestClass : ICssApplier { public virtual void Apply(ProcessorContext context, IStylesContainer stylesContainer, ITagWorker tagWorker ) { } } +//\endcond } diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/apply/util/BackgroundApplierUtilTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/apply/util/BackgroundApplierUtilTest.cs index 964885eb2..81f3449af 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/apply/util/BackgroundApplierUtilTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/apply/util/BackgroundApplierUtilTest.cs @@ -48,14 +48,14 @@ public class BackgroundApplierUtilTest : ExtendedITextTest { [NUnit.Framework.Test] public virtual void BackgroundColorTest() { - IPropertyContainer container = new _BodyHtmlStylesContainer_69(); + IPropertyContainer container = new _BodyHtmlStylesContainer_68(); IDictionary props = new Dictionary(); props.Put(CssConstants.BACKGROUND_COLOR, "red"); BackgroundApplierUtil.ApplyBackground(props, new ProcessorContext(new ConverterProperties()), container); } - private sealed class _BodyHtmlStylesContainer_69 : BodyHtmlStylesContainer { - public _BodyHtmlStylesContainer_69() { + private sealed class _BodyHtmlStylesContainer_68 : BodyHtmlStylesContainer { + public _BodyHtmlStylesContainer_68() { } public override void SetProperty(int property, Object value) { @@ -71,24 +71,28 @@ public override void SetProperty(int property, Object value) { public virtual void BackgroundImageTest() { String image = "url(rock_texture.jpg)"; ProcessorContext context = new ProcessorContext(new ConverterProperties().SetBaseUri(SOURCE_FOLDER)); - IPropertyContainer container = new _BodyHtmlStylesContainer_88(context, image); + IPropertyContainer container = new _BodyHtmlStylesContainer_87(context, image); IDictionary props = new Dictionary(); props.Put(CssConstants.BACKGROUND_IMAGE, image); props.Put(CssConstants.FONT_SIZE, "15pt"); BackgroundApplierUtil.ApplyBackground(props, context, container); } - private sealed class _BodyHtmlStylesContainer_88 : BodyHtmlStylesContainer { - public _BodyHtmlStylesContainer_88(ProcessorContext context, String image) { + private sealed class _BodyHtmlStylesContainer_87 : BodyHtmlStylesContainer { + public _BodyHtmlStylesContainer_87(ProcessorContext context, String image) { this.context = context; this.image = image; this.innerContext = context; this.innerImage = image; } +//\cond DO_NOT_DOCUMENT internal readonly ProcessorContext innerContext; +//\endcond +//\cond DO_NOT_DOCUMENT internal readonly String innerImage; +//\endcond public override void SetProperty(int property, Object propertyValue) { NUnit.Framework.Assert.AreEqual(Property.BACKGROUND_IMAGE, property); @@ -118,15 +122,15 @@ public override void SetProperty(int property, Object propertyValue) { public virtual void BackgroundInvalidImageTest() { String image = "url(img.jpg)"; ProcessorContext context = new ProcessorContext(new ConverterProperties().SetBaseUri(SOURCE_FOLDER)); - IPropertyContainer container = new _BodyHtmlStylesContainer_124(); + IPropertyContainer container = new _BodyHtmlStylesContainer_123(); IDictionary props = new Dictionary(); props.Put(CssConstants.BACKGROUND_IMAGE, image); props.Put(CssConstants.FONT_SIZE, "15pt"); BackgroundApplierUtil.ApplyBackground(props, context, container); } - private sealed class _BodyHtmlStylesContainer_124 : BodyHtmlStylesContainer { - public _BodyHtmlStylesContainer_124() { + private sealed class _BodyHtmlStylesContainer_123 : BodyHtmlStylesContainer { + public _BodyHtmlStylesContainer_123() { } public override void SetProperty(int property, Object propertyValue) { @@ -138,7 +142,7 @@ public override void SetProperty(int property, Object propertyValue) { public virtual void BackgroundImageRepeatTest() { String image = "url(rock_texture.jpg)"; ProcessorContext context = new ProcessorContext(new ConverterProperties().SetBaseUri(SOURCE_FOLDER)); - IPropertyContainer container = new _BodyHtmlStylesContainer_141(); + IPropertyContainer container = new _BodyHtmlStylesContainer_140(); IDictionary props = new Dictionary(); props.Put(CssConstants.BACKGROUND_IMAGE, image); props.Put(CssConstants.BACKGROUND_REPEAT, "no-repeat"); @@ -146,8 +150,8 @@ public virtual void BackgroundImageRepeatTest() { BackgroundApplierUtil.ApplyBackground(props, context, container); } - private sealed class _BodyHtmlStylesContainer_141 : BodyHtmlStylesContainer { - public _BodyHtmlStylesContainer_141() { + private sealed class _BodyHtmlStylesContainer_140 : BodyHtmlStylesContainer { + public _BodyHtmlStylesContainer_140() { } public override void SetProperty(int property, Object propertyValue) { @@ -170,7 +174,7 @@ public override void SetProperty(int property, Object propertyValue) { public virtual void BackgroundImageInvalidRepeatTest() { String image = "url(rock_texture.jpg)"; ProcessorContext context = new ProcessorContext(new ConverterProperties().SetBaseUri(SOURCE_FOLDER)); - IPropertyContainer container = new _BodyHtmlStylesContainer_168(); + IPropertyContainer container = new _BodyHtmlStylesContainer_167(); IDictionary props = new Dictionary(); props.Put(CssConstants.BACKGROUND_IMAGE, image); props.Put(CssConstants.BACKGROUND_REPEAT, "j"); @@ -178,8 +182,8 @@ public virtual void BackgroundImageInvalidRepeatTest() { BackgroundApplierUtil.ApplyBackground(props, context, container); } - private sealed class _BodyHtmlStylesContainer_168 : BodyHtmlStylesContainer { - public _BodyHtmlStylesContainer_168() { + private sealed class _BodyHtmlStylesContainer_167 : BodyHtmlStylesContainer { + public _BodyHtmlStylesContainer_167() { } public override void SetProperty(int property, Object propertyValue) { @@ -202,24 +206,28 @@ public override void SetProperty(int property, Object propertyValue) { public virtual void BackgroundImagesTest() { String images = "url(rock_texture.jpg),url(rock_texture2.jpg)"; ProcessorContext context = new ProcessorContext(new ConverterProperties().SetBaseUri(SOURCE_FOLDER)); - IPropertyContainer container = new _BodyHtmlStylesContainer_195(context, images); + IPropertyContainer container = new _BodyHtmlStylesContainer_194(context, images); IDictionary props = new Dictionary(); props.Put(CssConstants.BACKGROUND_IMAGE, images); props.Put(CssConstants.FONT_SIZE, "15pt"); BackgroundApplierUtil.ApplyBackground(props, context, container); } - private sealed class _BodyHtmlStylesContainer_195 : BodyHtmlStylesContainer { - public _BodyHtmlStylesContainer_195(ProcessorContext context, String images) { + private sealed class _BodyHtmlStylesContainer_194 : BodyHtmlStylesContainer { + public _BodyHtmlStylesContainer_194(ProcessorContext context, String images) { this.context = context; this.images = images; this.innerContext = context; this.imagesArray = iText.Commons.Utils.StringUtil.Split(images, ","); } +//\cond DO_NOT_DOCUMENT internal readonly ProcessorContext innerContext; +//\endcond +//\cond DO_NOT_DOCUMENT internal readonly String[] imagesArray; +//\endcond public override void SetProperty(int property, Object propertyValue) { NUnit.Framework.Assert.AreEqual(Property.BACKGROUND_IMAGE, property); @@ -249,7 +257,7 @@ public override void SetProperty(int property, Object propertyValue) { public virtual void BackgroundImagesRepeatTest() { String images = "url(rock_texture.jpg),url(rock_texture2.jpg)"; ProcessorContext context = new ProcessorContext(new ConverterProperties().SetBaseUri(SOURCE_FOLDER)); - IPropertyContainer container = new _BodyHtmlStylesContainer_229(images); + IPropertyContainer container = new _BodyHtmlStylesContainer_228(images); IDictionary props = new Dictionary(); props.Put(CssConstants.BACKGROUND_IMAGE, images); props.Put(CssConstants.BACKGROUND_REPEAT, "no-repeat"); @@ -257,13 +265,15 @@ public virtual void BackgroundImagesRepeatTest() { BackgroundApplierUtil.ApplyBackground(props, context, container); } - private sealed class _BodyHtmlStylesContainer_229 : BodyHtmlStylesContainer { - public _BodyHtmlStylesContainer_229(String images) { + private sealed class _BodyHtmlStylesContainer_228 : BodyHtmlStylesContainer { + public _BodyHtmlStylesContainer_228(String images) { this.images = images; this.imagesArray = iText.Commons.Utils.StringUtil.Split(images, ","); } +//\cond DO_NOT_DOCUMENT internal readonly String[] imagesArray; +//\endcond public override void SetProperty(int property, Object propertyValue) { NUnit.Framework.Assert.AreEqual(Property.BACKGROUND_IMAGE, property); @@ -288,20 +298,22 @@ public override void SetProperty(int property, Object propertyValue) { public virtual void BackgroundImagesRepeatsTest() { String images = "url(rock_texture.jpg),url(rock_texture2.jpg)"; ProcessorContext context = new ProcessorContext(new ConverterProperties().SetBaseUri(SOURCE_FOLDER)); - IPropertyContainer container = new _BodyHtmlStylesContainer_258(images); + IPropertyContainer container = new _BodyHtmlStylesContainer_257(images); IDictionary props = new Dictionary(); props.Put(CssConstants.BACKGROUND_IMAGE, images); props.Put(CssConstants.BACKGROUND_REPEAT, "no-repeat,repeat"); BackgroundApplierUtil.ApplyBackground(props, context, container); } - private sealed class _BodyHtmlStylesContainer_258 : BodyHtmlStylesContainer { - public _BodyHtmlStylesContainer_258(String images) { + private sealed class _BodyHtmlStylesContainer_257 : BodyHtmlStylesContainer { + public _BodyHtmlStylesContainer_257(String images) { this.images = images; this.imagesArray = iText.Commons.Utils.StringUtil.Split(images, ","); } +//\cond DO_NOT_DOCUMENT internal readonly String[] imagesArray; +//\endcond public override void SetProperty(int property, Object propertyValue) { NUnit.Framework.Assert.AreEqual(Property.BACKGROUND_IMAGE, property); @@ -334,24 +346,28 @@ public override void SetProperty(int property, Object propertyValue) { public virtual void BackgroundLinearGradientsTest() { String gradients = "linear-gradient(red),linear-gradient(green),linear-gradient(blue)"; String otterFontSize = "15px"; - IPropertyContainer container = new _BodyHtmlStylesContainer_292(gradients, otterFontSize); + IPropertyContainer container = new _BodyHtmlStylesContainer_291(gradients, otterFontSize); IDictionary props = new Dictionary(); props.Put(CssConstants.BACKGROUND_IMAGE, gradients); props.Put(CssConstants.FONT_SIZE, "15px"); BackgroundApplierUtil.ApplyBackground(props, new ProcessorContext(new ConverterProperties()), container); } - private sealed class _BodyHtmlStylesContainer_292 : BodyHtmlStylesContainer { - public _BodyHtmlStylesContainer_292(String gradients, String otterFontSize) { + private sealed class _BodyHtmlStylesContainer_291 : BodyHtmlStylesContainer { + public _BodyHtmlStylesContainer_291(String gradients, String otterFontSize) { this.gradients = gradients; this.otterFontSize = otterFontSize; this.gradientsArray = CssUtils.SplitStringWithComma(gradients); this.fontSize = CssDimensionParsingUtils.ParseAbsoluteLength(otterFontSize); } +//\cond DO_NOT_DOCUMENT internal readonly IList gradientsArray; +//\endcond +//\cond DO_NOT_DOCUMENT internal readonly float fontSize; +//\endcond public override void SetProperty(int property, Object value) { NUnit.Framework.Assert.AreEqual(Property.BACKGROUND_IMAGE, property); @@ -382,24 +398,28 @@ public override void SetProperty(int property, Object value) { public virtual void BackgroundLinearGradientTest() { String otterGradient = "linear-gradient(red)"; String otterFontSize = "15px"; - IPropertyContainer container = new _BodyHtmlStylesContainer_329(otterGradient, otterFontSize); + IPropertyContainer container = new _BodyHtmlStylesContainer_328(otterGradient, otterFontSize); IDictionary props = new Dictionary(); props.Put(CssConstants.BACKGROUND_IMAGE, otterGradient); props.Put(CssConstants.FONT_SIZE, "15px"); BackgroundApplierUtil.ApplyBackground(props, new ProcessorContext(new ConverterProperties()), container); } - private sealed class _BodyHtmlStylesContainer_329 : BodyHtmlStylesContainer { - public _BodyHtmlStylesContainer_329(String otterGradient, String otterFontSize) { + private sealed class _BodyHtmlStylesContainer_328 : BodyHtmlStylesContainer { + public _BodyHtmlStylesContainer_328(String otterGradient, String otterFontSize) { this.otterGradient = otterGradient; this.otterFontSize = otterFontSize; this.gradient = otterGradient; this.fontSize = CssDimensionParsingUtils.ParseAbsoluteLength(otterFontSize); } +//\cond DO_NOT_DOCUMENT internal readonly String gradient; +//\endcond +//\cond DO_NOT_DOCUMENT internal readonly float fontSize; +//\endcond public override void SetProperty(int property, Object propertyValue) { NUnit.Framework.Assert.AreEqual(Property.BACKGROUND_IMAGE, property); @@ -430,7 +450,7 @@ public override void SetProperty(int property, Object propertyValue) { public virtual void BackgroundImagePositionTest() { String image = "url(rock_texture.jpg)"; ProcessorContext context = new ProcessorContext(new ConverterProperties().SetBaseUri(SOURCE_FOLDER)); - IPropertyContainer container = new _BodyHtmlStylesContainer_365(); + IPropertyContainer container = new _BodyHtmlStylesContainer_364(); IDictionary props = new Dictionary(); props.Put(CssConstants.BACKGROUND_IMAGE, image); props.Put(CssConstants.BACKGROUND_POSITION_X, "right"); @@ -439,8 +459,8 @@ public virtual void BackgroundImagePositionTest() { BackgroundApplierUtil.ApplyBackground(props, context, container); } - private sealed class _BodyHtmlStylesContainer_365 : BodyHtmlStylesContainer { - public _BodyHtmlStylesContainer_365() { + private sealed class _BodyHtmlStylesContainer_364 : BodyHtmlStylesContainer { + public _BodyHtmlStylesContainer_364() { } public override void SetProperty(int property, Object propertyValue) { @@ -463,7 +483,7 @@ public override void SetProperty(int property, Object propertyValue) { public virtual void BackgroundImageInvalidPositionTest() { String image = "url(rock_texture.jpg)"; ProcessorContext context = new ProcessorContext(new ConverterProperties().SetBaseUri(SOURCE_FOLDER)); - IPropertyContainer container = new _BodyHtmlStylesContainer_395(); + IPropertyContainer container = new _BodyHtmlStylesContainer_394(); IDictionary props = new Dictionary(); props.Put(CssConstants.BACKGROUND_IMAGE, image); props.Put(CssConstants.BACKGROUND_POSITION_X, "j"); @@ -471,8 +491,8 @@ public virtual void BackgroundImageInvalidPositionTest() { BackgroundApplierUtil.ApplyBackground(props, context, container); } - private sealed class _BodyHtmlStylesContainer_395 : BodyHtmlStylesContainer { - public _BodyHtmlStylesContainer_395() { + private sealed class _BodyHtmlStylesContainer_394 : BodyHtmlStylesContainer { + public _BodyHtmlStylesContainer_394() { } public override void SetProperty(int property, Object propertyValue) { @@ -495,7 +515,7 @@ public override void SetProperty(int property, Object propertyValue) { public virtual void BackgroundImageEmptyPositionTest() { String image = "url(rock_texture.jpg)"; ProcessorContext context = new ProcessorContext(new ConverterProperties().SetBaseUri(SOURCE_FOLDER)); - IPropertyContainer container = new _BodyHtmlStylesContainer_423(); + IPropertyContainer container = new _BodyHtmlStylesContainer_422(); IDictionary props = new Dictionary(); props.Put(CssConstants.BACKGROUND_IMAGE, image); props.Put(CssConstants.BACKGROUND_POSITION_X, ""); @@ -504,8 +524,8 @@ public virtual void BackgroundImageEmptyPositionTest() { BackgroundApplierUtil.ApplyBackground(props, context, container); } - private sealed class _BodyHtmlStylesContainer_423 : BodyHtmlStylesContainer { - public _BodyHtmlStylesContainer_423() { + private sealed class _BodyHtmlStylesContainer_422 : BodyHtmlStylesContainer { + public _BodyHtmlStylesContainer_422() { } public override void SetProperty(int property, Object propertyValue) { @@ -528,7 +548,7 @@ public override void SetProperty(int property, Object propertyValue) { public virtual void BackgroundImagesLeftBottomPositionTest() { String images = "url(rock_texture.jpg),url(rock_texture2.jpg),url(rock_texture.jpg)"; ProcessorContext context = new ProcessorContext(new ConverterProperties().SetBaseUri(SOURCE_FOLDER)); - IPropertyContainer container = new _BodyHtmlStylesContainer_452(images); + IPropertyContainer container = new _BodyHtmlStylesContainer_451(images); IDictionary props = new Dictionary(); props.Put(CssConstants.BACKGROUND_IMAGE, images); props.Put(CssConstants.BACKGROUND_POSITION_X, "left"); @@ -537,13 +557,15 @@ public virtual void BackgroundImagesLeftBottomPositionTest() { BackgroundApplierUtil.ApplyBackground(props, context, container); } - private sealed class _BodyHtmlStylesContainer_452 : BodyHtmlStylesContainer { - public _BodyHtmlStylesContainer_452(String images) { + private sealed class _BodyHtmlStylesContainer_451 : BodyHtmlStylesContainer { + public _BodyHtmlStylesContainer_451(String images) { this.images = images; this.imagesArray = iText.Commons.Utils.StringUtil.Split(images, ","); } +//\cond DO_NOT_DOCUMENT internal readonly String[] imagesArray; +//\endcond public override void SetProperty(int property, Object propertyValue) { NUnit.Framework.Assert.AreEqual(Property.BACKGROUND_IMAGE, property); @@ -566,7 +588,7 @@ public override void SetProperty(int property, Object propertyValue) { public virtual void BackgroundImagesRightTopPositionTest() { String images = "url(rock_texture.jpg),url(rock_texture2.jpg),url(rock_texture.jpg)"; ProcessorContext context = new ProcessorContext(new ConverterProperties().SetBaseUri(SOURCE_FOLDER)); - IPropertyContainer container = new _BodyHtmlStylesContainer_482(images); + IPropertyContainer container = new _BodyHtmlStylesContainer_481(images); IDictionary props = new Dictionary(); props.Put(CssConstants.BACKGROUND_IMAGE, images); props.Put(CssConstants.BACKGROUND_POSITION_X, "right 30pt"); @@ -575,13 +597,15 @@ public virtual void BackgroundImagesRightTopPositionTest() { BackgroundApplierUtil.ApplyBackground(props, context, container); } - private sealed class _BodyHtmlStylesContainer_482 : BodyHtmlStylesContainer { - public _BodyHtmlStylesContainer_482(String images) { + private sealed class _BodyHtmlStylesContainer_481 : BodyHtmlStylesContainer { + public _BodyHtmlStylesContainer_481(String images) { this.images = images; this.imagesArray = iText.Commons.Utils.StringUtil.Split(images, ","); } +//\cond DO_NOT_DOCUMENT internal readonly String[] imagesArray; +//\endcond public override void SetProperty(int property, Object propertyValue) { NUnit.Framework.Assert.AreEqual(Property.BACKGROUND_IMAGE, property); @@ -604,7 +628,7 @@ public override void SetProperty(int property, Object propertyValue) { public virtual void BackgroundImagesCenterCenterPositionTest() { String images = "url(rock_texture.jpg),url(rock_texture2.jpg),url(rock_texture.jpg)"; ProcessorContext context = new ProcessorContext(new ConverterProperties().SetBaseUri(SOURCE_FOLDER)); - IPropertyContainer container = new _BodyHtmlStylesContainer_512(images); + IPropertyContainer container = new _BodyHtmlStylesContainer_511(images); IDictionary props = new Dictionary(); props.Put(CssConstants.BACKGROUND_IMAGE, images); props.Put(CssConstants.BACKGROUND_POSITION_X, "center"); @@ -613,13 +637,15 @@ public virtual void BackgroundImagesCenterCenterPositionTest() { BackgroundApplierUtil.ApplyBackground(props, context, container); } - private sealed class _BodyHtmlStylesContainer_512 : BodyHtmlStylesContainer { - public _BodyHtmlStylesContainer_512(String images) { + private sealed class _BodyHtmlStylesContainer_511 : BodyHtmlStylesContainer { + public _BodyHtmlStylesContainer_511(String images) { this.images = images; this.imagesArray = iText.Commons.Utils.StringUtil.Split(images, ","); } +//\cond DO_NOT_DOCUMENT internal readonly String[] imagesArray; +//\endcond public override void SetProperty(int property, Object propertyValue) { NUnit.Framework.Assert.AreEqual(Property.BACKGROUND_IMAGE, property); @@ -642,7 +668,7 @@ public override void SetProperty(int property, Object propertyValue) { public virtual void BackgroundImagesPositionMissedTest() { String images = "url(rock_texture.jpg),url(rock_texture2.jpg),url(rock_texture.jpg)"; ProcessorContext context = new ProcessorContext(new ConverterProperties().SetBaseUri(SOURCE_FOLDER)); - IPropertyContainer container = new _BodyHtmlStylesContainer_542(images); + IPropertyContainer container = new _BodyHtmlStylesContainer_541(images); IDictionary props = new Dictionary(); props.Put(CssConstants.BACKGROUND_IMAGE, images); props.Put(CssConstants.BACKGROUND_POSITION_X, "left, center"); @@ -651,13 +677,15 @@ public virtual void BackgroundImagesPositionMissedTest() { BackgroundApplierUtil.ApplyBackground(props, context, container); } - private sealed class _BodyHtmlStylesContainer_542 : BodyHtmlStylesContainer { - public _BodyHtmlStylesContainer_542(String images) { + private sealed class _BodyHtmlStylesContainer_541 : BodyHtmlStylesContainer { + public _BodyHtmlStylesContainer_541(String images) { this.images = images; this.imagesArray = iText.Commons.Utils.StringUtil.Split(images, ","); } +//\cond DO_NOT_DOCUMENT internal readonly String[] imagesArray; +//\endcond public override void SetProperty(int property, Object propertyValue) { NUnit.Framework.Assert.AreEqual(Property.BACKGROUND_IMAGE, property); @@ -683,7 +711,7 @@ public override void SetProperty(int property, Object propertyValue) { public virtual void BackgroundImagesPositionsTest() { String images = "url(rock_texture.jpg),url(rock_texture2.jpg),url(rock_texture.jpg)"; ProcessorContext context = new ProcessorContext(new ConverterProperties().SetBaseUri(SOURCE_FOLDER)); - IPropertyContainer container = new _BodyHtmlStylesContainer_579(images); + IPropertyContainer container = new _BodyHtmlStylesContainer_578(images); IDictionary props = new Dictionary(); props.Put(CssConstants.BACKGROUND_IMAGE, images); props.Put(CssConstants.BACKGROUND_POSITION_X, "left,left,right"); @@ -692,13 +720,15 @@ public virtual void BackgroundImagesPositionsTest() { BackgroundApplierUtil.ApplyBackground(props, context, container); } - private sealed class _BodyHtmlStylesContainer_579 : BodyHtmlStylesContainer { - public _BodyHtmlStylesContainer_579(String images) { + private sealed class _BodyHtmlStylesContainer_578 : BodyHtmlStylesContainer { + public _BodyHtmlStylesContainer_578(String images) { this.images = images; this.imagesArray = iText.Commons.Utils.StringUtil.Split(images, ","); } +//\cond DO_NOT_DOCUMENT internal readonly String[] imagesArray; +//\endcond public override void SetProperty(int property, Object propertyValue) { NUnit.Framework.Assert.AreEqual(Property.BACKGROUND_IMAGE, property); @@ -723,7 +753,7 @@ public override void SetProperty(int property, Object propertyValue) { public virtual void BackgroundClipOriginImageTest() { String image = "url(rock_texture.jpg)"; ProcessorContext context = new ProcessorContext(new ConverterProperties().SetBaseUri(SOURCE_FOLDER)); - IPropertyContainer container = new _BodyHtmlStylesContainer_613(); + IPropertyContainer container = new _BodyHtmlStylesContainer_612(); IDictionary props = new Dictionary(); props.Put(CssConstants.BACKGROUND_IMAGE, image); props.Put(CssConstants.BACKGROUND_CLIP, CssConstants.CONTENT_BOX); @@ -731,8 +761,8 @@ public virtual void BackgroundClipOriginImageTest() { BackgroundApplierUtil.ApplyBackground(props, context, container); } - private sealed class _BodyHtmlStylesContainer_613 : BodyHtmlStylesContainer { - public _BodyHtmlStylesContainer_613() { + private sealed class _BodyHtmlStylesContainer_612 : BodyHtmlStylesContainer { + public _BodyHtmlStylesContainer_612() { } public override void SetProperty(int property, Object propertyValue) { @@ -752,15 +782,15 @@ public override void SetProperty(int property, Object propertyValue) { [NUnit.Framework.Test] public virtual void BackgroundClipColorTest() { ProcessorContext context = new ProcessorContext(new ConverterProperties().SetBaseUri(SOURCE_FOLDER)); - IPropertyContainer container = new _BodyHtmlStylesContainer_639(); + IPropertyContainer container = new _BodyHtmlStylesContainer_638(); IDictionary props = new Dictionary(); props.Put(CssConstants.BACKGROUND_COLOR, "blue"); props.Put(CssConstants.BACKGROUND_CLIP, CssConstants.CONTENT_BOX); BackgroundApplierUtil.ApplyBackground(props, context, container); } - private sealed class _BodyHtmlStylesContainer_639 : BodyHtmlStylesContainer { - public _BodyHtmlStylesContainer_639() { + private sealed class _BodyHtmlStylesContainer_638 : BodyHtmlStylesContainer { + public _BodyHtmlStylesContainer_638() { } public override void SetProperty(int property, Object propertyValue) { @@ -775,7 +805,7 @@ public override void SetProperty(int property, Object propertyValue) { public virtual void BackgroundClipOriginImagesTest() { String images = "url(rock_texture.jpg),url(rock_texture2.jpg)"; ProcessorContext context = new ProcessorContext(new ConverterProperties().SetBaseUri(SOURCE_FOLDER)); - IPropertyContainer container = new _BodyHtmlStylesContainer_659(images); + IPropertyContainer container = new _BodyHtmlStylesContainer_658(images); IDictionary props = new Dictionary(); props.Put(CssConstants.BACKGROUND_IMAGE, images); props.Put(CssConstants.BACKGROUND_CLIP, CssConstants.CONTENT_BOX); @@ -783,13 +813,15 @@ public virtual void BackgroundClipOriginImagesTest() { BackgroundApplierUtil.ApplyBackground(props, context, container); } - private sealed class _BodyHtmlStylesContainer_659 : BodyHtmlStylesContainer { - public _BodyHtmlStylesContainer_659(String images) { + private sealed class _BodyHtmlStylesContainer_658 : BodyHtmlStylesContainer { + public _BodyHtmlStylesContainer_658(String images) { this.images = images; this.imagesArray = iText.Commons.Utils.StringUtil.Split(images, ","); } +//\cond DO_NOT_DOCUMENT internal readonly String[] imagesArray; +//\endcond public override void SetProperty(int property, Object propertyValue) { NUnit.Framework.Assert.AreEqual(Property.BACKGROUND_IMAGE, property); diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/apply/util/GridApplierUtilTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/apply/util/GridApplierUtilTest.cs new file mode 100644 index 000000000..7b0b82928 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/apply/util/GridApplierUtilTest.cs @@ -0,0 +1,818 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using System.Collections.Generic; +using iText.Commons.Utils; +using iText.Html2pdf; +using iText.Html2pdf.Attach; +using iText.Html2pdf.Css; +using iText.Html2pdf.Logs; +using iText.Layout.Element; +using iText.Layout.Properties; +using iText.Layout.Properties.Grid; +using iText.StyledXmlParser.Css; +using iText.StyledXmlParser.Node; +using iText.StyledXmlParser.Node.Impl.Jsoup.Node; +using iText.Test; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.Apply.Util { + [NUnit.Framework.Category("UnitTest")] + public class GridApplierUtilTest : ExtendedITextTest { + [NUnit.Framework.Test] + public virtual void ApplyColumnStartTest() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_COLUMN_START, "2"); + IElement element = new Div(); + GridApplierUtil.ApplyGridItemProperties(cssProps, CreateStylesContainer(), element); + int? columnStart = element.GetProperty(Property.GRID_COLUMN_START); + NUnit.Framework.Assert.AreEqual(2, columnStart); + } + + [NUnit.Framework.Test] + public virtual void ApplyColumnEndTest() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_COLUMN_END, "4"); + IElement element = new Div(); + GridApplierUtil.ApplyGridItemProperties(cssProps, CreateStylesContainer(), element); + int? columnStart = element.GetProperty(Property.GRID_COLUMN_END); + NUnit.Framework.Assert.AreEqual(4, columnStart); + } + + [NUnit.Framework.Test] + public virtual void ApplyRowStartTest() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_ROW_START, "3"); + IElement element = new Div(); + GridApplierUtil.ApplyGridItemProperties(cssProps, CreateStylesContainer(), element); + int? columnStart = element.GetProperty(Property.GRID_ROW_START); + NUnit.Framework.Assert.AreEqual(3, columnStart); + } + + [NUnit.Framework.Test] + public virtual void ApplyRowStartSpanTest() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_ROW_START, "span 3"); + IElement element = new Div(); + GridApplierUtil.ApplyGridItemProperties(cssProps, CreateStylesContainer(), element); + int? rowSpan = element.GetProperty(Property.GRID_ROW_SPAN); + NUnit.Framework.Assert.AreEqual(3, rowSpan); + } + + [NUnit.Framework.Test] + public virtual void ApplyRowEndTest() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_ROW_END, "11"); + IElement element = new Div(); + GridApplierUtil.ApplyGridItemProperties(cssProps, CreateStylesContainer(), element); + int? columnStart = element.GetProperty(Property.GRID_ROW_END); + NUnit.Framework.Assert.AreEqual(11, columnStart); + } + + [NUnit.Framework.Test] + public virtual void ApplyInvalidColumnStartTest() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_COLUMN_START, CssConstants.AUTO); + Div element = new Div(); + GridContainer grid = new GridContainer(); + grid.Add(element); + GridApplierUtil.ApplyGridItemProperties(cssProps, CreateStylesContainer(), element); + GridApplierUtil.ApplyGridContainerProperties(new Dictionary(), grid, new ProcessorContext( + new ConverterProperties())); + int? columnStart = element.GetProperty(Property.GRID_COLUMN_START); + NUnit.Framework.Assert.IsNull(columnStart); + } + + [NUnit.Framework.Test] + public virtual void ApplyGridAreaBasicTest() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_AREA, "1 / 2 / 3 / 4"); + IElement element = new Div(); + GridApplierUtil.ApplyGridItemProperties(cssProps, CreateStylesContainer(), element); + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_ROW_START)); + NUnit.Framework.Assert.AreEqual(2, element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.AreEqual(3, element.GetProperty(Property.GRID_ROW_END)); + NUnit.Framework.Assert.AreEqual(4, element.GetProperty(Property.GRID_COLUMN_END)); + } + + [NUnit.Framework.Test] + public virtual void ApplyGridAreaAutoTest() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_AREA, "auto / auto / auto / auto"); + IElement element = new Div(); + GridApplierUtil.ApplyGridItemProperties(cssProps, CreateStylesContainer(), element); + NUnit.Framework.Assert.IsNull(element.GetProperty(Property.GRID_ROW_START)); + NUnit.Framework.Assert.IsNull(element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.IsNull(element.GetProperty(Property.GRID_ROW_END)); + NUnit.Framework.Assert.IsNull(element.GetProperty(Property.GRID_COLUMN_END)); + } + + [NUnit.Framework.Test] + public virtual void ApplyGridAreaOrderTest() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_AREA, "1 / 2 / 3 / 4"); + cssProps.Put(CssConstants.GRID_COLUMN_START, "1"); + IElement element = new Div(); + GridApplierUtil.ApplyGridItemProperties(cssProps, CreateStylesContainer(), element); + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_ROW_START)); + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.AreEqual(3, element.GetProperty(Property.GRID_ROW_END)); + NUnit.Framework.Assert.AreEqual(4, element.GetProperty(Property.GRID_COLUMN_END)); + } + + [NUnit.Framework.Test] + public virtual void ApplyGridAreaOrder2Test() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_COLUMN_START, "1"); + cssProps.Put(CssConstants.GRID_AREA, "1 / 2 / 3 / 4"); + IElement element = new Div(); + GridApplierUtil.ApplyGridItemProperties(cssProps, CreateStylesContainer(), element); + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_ROW_START)); + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.AreEqual(3, element.GetProperty(Property.GRID_ROW_END)); + NUnit.Framework.Assert.AreEqual(4, element.GetProperty(Property.GRID_COLUMN_END)); + } + + [NUnit.Framework.Test] + public virtual void ApplyGridAreaOrder3Test() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_AREA, "auto / 2 / 3 / 4"); + cssProps.Put(CssConstants.GRID_ROW_START, "1"); + IElement element = new Div(); + GridApplierUtil.ApplyGridItemProperties(cssProps, CreateStylesContainer(), element); + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_ROW_START)); + NUnit.Framework.Assert.AreEqual(2, element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.AreEqual(3, element.GetProperty(Property.GRID_ROW_END)); + NUnit.Framework.Assert.AreEqual(4, element.GetProperty(Property.GRID_COLUMN_END)); + } + + [NUnit.Framework.Test] + public virtual void ApplyGridAreaOrder4Test() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_ROW_START, "1"); + cssProps.Put(CssConstants.GRID_AREA, "auto / 2 / 3 / 4"); + IElement element = new Div(); + GridApplierUtil.ApplyGridItemProperties(cssProps, CreateStylesContainer(), element); + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_ROW_START)); + NUnit.Framework.Assert.AreEqual(2, element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.AreEqual(3, element.GetProperty(Property.GRID_ROW_END)); + NUnit.Framework.Assert.AreEqual(4, element.GetProperty(Property.GRID_COLUMN_END)); + } + + [NUnit.Framework.Test] + public virtual void ApplyGridPropertiesToNotGrid() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_AREA, "1 / 2 / 3 / 4"); + IElement element = new Div(); + IElementNode stylesContainer = CreateStylesContainer(); + IDictionary parentStyles = ((JsoupElementNode)stylesContainer.ParentNode()).GetStyles(); + parentStyles.JRemove(CssConstants.DISPLAY); + GridApplierUtil.ApplyGridItemProperties(cssProps, stylesContainer, element); + NUnit.Framework.Assert.IsNull(element.GetProperty(Property.GRID_ROW_START)); + NUnit.Framework.Assert.IsNull(element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.IsNull(element.GetProperty(Property.GRID_ROW_END)); + NUnit.Framework.Assert.IsNull(element.GetProperty(Property.GRID_COLUMN_END)); + } + + [NUnit.Framework.Test] + public virtual void ApplyNoneGridTemplateAreasTest() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_AREA, CommonCssConstants.NONE); + Div element = new Div(); + IElementNode stylesContainer = CreateStylesContainer(); + IDictionary parentStyles = ((JsoupElementNode)stylesContainer.ParentNode()).GetStyles(); + parentStyles.Put(CssConstants.GRID_TEMPLATE_AREAS, CommonCssConstants.NONE); + GridContainer grid = new GridContainer(); + grid.Add(element); + GridApplierUtil.ApplyGridItemProperties(cssProps, stylesContainer, element); + GridApplierUtil.ApplyGridContainerProperties(new Dictionary(), grid, new ProcessorContext( + new ConverterProperties())); + NUnit.Framework.Assert.IsNull(element.GetProperty(Property.GRID_ROW_START)); + NUnit.Framework.Assert.IsNull(element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.IsNull(element.GetProperty(Property.GRID_ROW_END)); + NUnit.Framework.Assert.IsNull(element.GetProperty(Property.GRID_COLUMN_END)); + } + + [NUnit.Framework.Test] + public virtual void ApplyGridTemplateAreas1Test() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_AREA, "somename1"); + Div element = new Div(); + IElementNode stylesContainer = CreateStylesContainer(); + IDictionary parentStyles = ((JsoupElementNode)stylesContainer.ParentNode()).GetStyles(); + parentStyles.Put(CssConstants.GRID_TEMPLATE_AREAS, "\"somename1 Somename1\" ' somename1 Somename1' ' somename1 Somename1'" + ); + GridContainer grid = new GridContainer(); + grid.Add(element); + GridApplierUtil.ApplyGridItemProperties(cssProps, stylesContainer, element); + GridApplierUtil.ApplyGridContainerProperties(parentStyles, grid, new ProcessorContext(new ConverterProperties + ())); + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_ROW_START)); + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.AreEqual(4, element.GetProperty(Property.GRID_ROW_END)); + NUnit.Framework.Assert.AreEqual(2, element.GetProperty(Property.GRID_COLUMN_END)); + } + + [NUnit.Framework.Test] + public virtual void ApplyGridTemplateAreasOrder1Test() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_ROW_END, "3"); + cssProps.Put(CssConstants.GRID_AREA, "somename1"); + Div element = new Div(); + IElementNode stylesContainer = CreateStylesContainer(); + IDictionary parentStyles = ((JsoupElementNode)stylesContainer.ParentNode()).GetStyles(); + parentStyles.Put(CssConstants.GRID_TEMPLATE_AREAS, "\"somename1 Somename1\" ' somename1 Somename1' ' somename1 Somename1'" + ); + GridContainer grid = new GridContainer(); + grid.Add(element); + GridApplierUtil.ApplyGridItemProperties(cssProps, stylesContainer, element); + GridApplierUtil.ApplyGridContainerProperties(parentStyles, grid, new ProcessorContext(new ConverterProperties + ())); + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_ROW_START)); + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.AreEqual(4, element.GetProperty(Property.GRID_ROW_END)); + NUnit.Framework.Assert.AreEqual(2, element.GetProperty(Property.GRID_COLUMN_END)); + } + + [NUnit.Framework.Test] + public virtual void ApplyGridTemplateAreasOrder2Test() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_AREA, "somename1"); + cssProps.Put(CssConstants.GRID_ROW_END, "3"); + Div element = new Div(); + IElementNode stylesContainer = CreateStylesContainer(); + IDictionary parentStyles = ((JsoupElementNode)stylesContainer.ParentNode()).GetStyles(); + parentStyles.Put(CssConstants.GRID_TEMPLATE_AREAS, "\"somename1 Somename1\" ' somename1 Somename1' ' somename1 Somename1'" + ); + GridContainer grid = new GridContainer(); + grid.Add(element); + GridApplierUtil.ApplyGridItemProperties(cssProps, stylesContainer, element); + GridApplierUtil.ApplyGridContainerProperties(parentStyles, grid, new ProcessorContext(new ConverterProperties + ())); + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_ROW_START)); + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.AreEqual(4, element.GetProperty(Property.GRID_ROW_END)); + NUnit.Framework.Assert.AreEqual(2, element.GetProperty(Property.GRID_COLUMN_END)); + } + + [NUnit.Framework.Test] + public virtual void ApplyGridTemplateAreasInvalidNameTest() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_AREA, "1"); + IElement element = new Div(); + IElementNode stylesContainer = CreateStylesContainer(); + IDictionary parentStyles = ((JsoupElementNode)stylesContainer.ParentNode()).GetStyles(); + parentStyles.Put(CssConstants.GRID_TEMPLATE_AREAS, "'a b' '1 1'"); + GridApplierUtil.ApplyGridItemProperties(cssProps, stylesContainer, element); + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_ROW_START)); + NUnit.Framework.Assert.IsNull(element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.IsNull(element.GetProperty(Property.GRID_ROW_END)); + NUnit.Framework.Assert.IsNull(element.GetProperty(Property.GRID_COLUMN_END)); + } + + [NUnit.Framework.Test] + [LogMessage(Html2PdfLogMessageConstant.GRID_TEMPLATE_AREAS_IS_INVALID, Count = 2)] + public virtual void ApplyInvalidGridTemplateAreas1Test() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_AREA, "b"); + Div element = new Div(); + IElementNode stylesContainer = CreateStylesContainer(); + IDictionary parentStyles = ((JsoupElementNode)stylesContainer.ParentNode()).GetStyles(); + parentStyles.Put(CssConstants.GRID_TEMPLATE_AREAS, "'a b' 'b a'"); + GridContainer grid = new GridContainer(); + grid.Add(element); + GridApplierUtil.ApplyGridItemProperties(cssProps, stylesContainer, element); + GridApplierUtil.ApplyGridContainerProperties(parentStyles, grid, new ProcessorContext(new ConverterProperties + ())); + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_ROW_START)); + NUnit.Framework.Assert.AreEqual(2, element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.AreEqual(2, element.GetProperty(Property.GRID_ROW_END)); + NUnit.Framework.Assert.AreEqual(3, element.GetProperty(Property.GRID_COLUMN_END)); + } + + [NUnit.Framework.Test] + [LogMessage(Html2PdfLogMessageConstant.GRID_TEMPLATE_AREAS_IS_INVALID, Count = 2)] + public virtual void ApplyInvalidGridTemplateAreas2Test() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_AREA, "a"); + Div element = new Div(); + IElementNode stylesContainer = CreateStylesContainer(); + IDictionary parentStyles = ((JsoupElementNode)stylesContainer.ParentNode()).GetStyles(); + parentStyles.Put(CssConstants.GRID_TEMPLATE_AREAS, "'a b a' 'a b a'"); + GridContainer grid = new GridContainer(); + grid.Add(element); + GridApplierUtil.ApplyGridItemProperties(cssProps, stylesContainer, element); + GridApplierUtil.ApplyGridContainerProperties(parentStyles, grid, new ProcessorContext(new ConverterProperties + ())); + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_ROW_START)); + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.AreEqual(3, element.GetProperty(Property.GRID_ROW_END)); + NUnit.Framework.Assert.AreEqual(2, element.GetProperty(Property.GRID_COLUMN_END)); + } + + [NUnit.Framework.Test] + public virtual void ApplyGridTemplateAreasWithDotsTest() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_AREA, "."); + Div element = new Div(); + IElementNode stylesContainer = CreateStylesContainer(); + IDictionary parentStyles = ((JsoupElementNode)stylesContainer.ParentNode()).GetStyles(); + parentStyles.Put(CssConstants.GRID_TEMPLATE_AREAS, "'. . a' '. . a'"); + GridContainer grid = new GridContainer(); + grid.Add(element); + GridApplierUtil.ApplyGridItemProperties(cssProps, stylesContainer, element); + GridApplierUtil.ApplyGridContainerProperties(new Dictionary(), grid, new ProcessorContext( + new ConverterProperties())); + NUnit.Framework.Assert.IsNull(element.GetProperty(Property.GRID_ROW_START)); + NUnit.Framework.Assert.IsNull(element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.IsNull(element.GetProperty(Property.GRID_ROW_END)); + NUnit.Framework.Assert.IsNull(element.GetProperty(Property.GRID_COLUMN_END)); + } + + // ------------------ Grid container tests ------------------ + [NUnit.Framework.Test] + public virtual void ContainerAutoValuesTest() { + IDictionary cssProps = new Dictionary(); + cssProps.Put(CssConstants.GRID_AUTO_COLUMNS, "11px"); + cssProps.Put(CssConstants.GRID_AUTO_ROWS, "30%"); + IElement element = new Div(); + GridApplierUtil.ApplyGridContainerProperties(cssProps, element, new ProcessorContext(new ConverterProperties + ())); + NUnit.Framework.Assert.AreEqual(8.25f, element.GetProperty(Property.GRID_AUTO_COLUMNS).GetValue + ()); + NUnit.Framework.Assert.AreEqual(30.0f, element.GetProperty(Property.GRID_AUTO_ROWS).GetValue( + )); + } + + [NUnit.Framework.Test] + public virtual void ContainerTemplateValuesTest() { + IDictionary cssProps = new Dictionary(); + cssProps.Put(CssConstants.GRID_TEMPLATE_COLUMNS, "min-content 1.5fr auto 2fr 100px 20%"); + cssProps.Put(CssConstants.GRID_TEMPLATE_ROWS, "10px 20pt 3em 5rem"); + IElement element = new Div(); + GridApplierUtil.ApplyGridContainerProperties(cssProps, element, new ProcessorContext(new ConverterProperties + ())); + IList actualColValues = element.GetProperty>(Property.GRID_TEMPLATE_COLUMNS + ); + NUnit.Framework.Assert.AreEqual(6, actualColValues.Count); + NUnit.Framework.Assert.AreEqual(actualColValues[0].GetType(), TemplateValue.ValueType.MIN_CONTENT); + NUnit.Framework.Assert.AreEqual(actualColValues[1].GetType(), TemplateValue.ValueType.FLEX); + NUnit.Framework.Assert.AreEqual(actualColValues[2].GetType(), TemplateValue.ValueType.AUTO); + NUnit.Framework.Assert.AreEqual(actualColValues[3].GetType(), TemplateValue.ValueType.FLEX); + NUnit.Framework.Assert.AreEqual(75.0f, ((PointValue)actualColValues[4]).GetValue()); + NUnit.Framework.Assert.AreEqual(20.0f, ((PercentValue)actualColValues[5]).GetValue()); + IList actualRowValues = element.GetProperty>(Property.GRID_TEMPLATE_ROWS + ); + NUnit.Framework.Assert.AreEqual(4, actualRowValues.Count); + NUnit.Framework.Assert.AreEqual(7.5f, ((PointValue)actualRowValues[0]).GetValue()); + NUnit.Framework.Assert.AreEqual(20.0f, ((PointValue)actualRowValues[1]).GetValue()); + NUnit.Framework.Assert.AreEqual(0.0f, ((PointValue)actualRowValues[2]).GetValue()); + NUnit.Framework.Assert.AreEqual(60.0f, ((PointValue)actualRowValues[3]).GetValue()); + } + + [NUnit.Framework.Test] + public virtual void ContainerComplexTemplateValuesTest() { + IDictionary cssProps = new Dictionary(); + cssProps.Put(CssConstants.GRID_TEMPLATE_COLUMNS, "minmax(min-content, 1fr) fit-content(40%) fit-content(20px) repeat(2, fit-content(200px))" + ); + cssProps.Put(CssConstants.GRID_TEMPLATE_ROWS, "repeat(3, 100px) repeat(auto-fit, minmax(100px, auto))"); + IElement element = new Div(); + GridApplierUtil.ApplyGridContainerProperties(cssProps, element, new ProcessorContext(new ConverterProperties + ())); + IList actualColValues = element.GetProperty>(Property.GRID_TEMPLATE_COLUMNS + ); + NUnit.Framework.Assert.AreEqual(4, actualColValues.Count); + NUnit.Framework.Assert.AreEqual(TemplateValue.ValueType.MINMAX, actualColValues[0].GetType()); + NUnit.Framework.Assert.AreEqual(TemplateValue.ValueType.MIN_CONTENT, ((MinMaxValue)actualColValues[0]).GetMin + ().GetType()); + NUnit.Framework.Assert.AreEqual(TemplateValue.ValueType.FLEX, ((MinMaxValue)actualColValues[0]).GetMax().GetType + ()); + NUnit.Framework.Assert.AreEqual(TemplateValue.ValueType.FIT_CONTENT, actualColValues[1].GetType()); + NUnit.Framework.Assert.AreEqual(TemplateValue.ValueType.PERCENT, ((FitContentValue)actualColValues[1]).GetLength + ().GetType()); + NUnit.Framework.Assert.AreEqual(TemplateValue.ValueType.FIT_CONTENT, actualColValues[2].GetType()); + NUnit.Framework.Assert.AreEqual(TemplateValue.ValueType.POINT, ((FitContentValue)actualColValues[2]).GetLength + ().GetType()); + NUnit.Framework.Assert.AreEqual(TemplateValue.ValueType.FIXED_REPEAT, actualColValues[3].GetType()); + NUnit.Framework.Assert.AreEqual(TemplateValue.ValueType.FIT_CONTENT, ((FixedRepeatValue)actualColValues[3] + ).GetValues()[0].GetType()); + IList actualRowValues = element.GetProperty>(Property.GRID_TEMPLATE_ROWS + ); + NUnit.Framework.Assert.AreEqual(2, actualRowValues.Count); + NUnit.Framework.Assert.AreEqual(TemplateValue.ValueType.FIXED_REPEAT, actualRowValues[0].GetType()); + NUnit.Framework.Assert.AreEqual(TemplateValue.ValueType.POINT, ((FixedRepeatValue)actualRowValues[0]).GetValues + ()[0].GetType()); + NUnit.Framework.Assert.AreEqual(TemplateValue.ValueType.AUTO_REPEAT, actualRowValues[1].GetType()); + NUnit.Framework.Assert.AreEqual(TemplateValue.ValueType.MINMAX, ((AutoRepeatValue)actualRowValues[1]).GetValues + ()[0].GetType()); + } + + [NUnit.Framework.Test] + public virtual void ContainerGapValuesTest() { + IDictionary cssProps = new Dictionary(); + cssProps.Put(CssConstants.COLUMN_GAP, "11px"); + cssProps.Put(CssConstants.ROW_GAP, "30%"); + IElement element = new Div(); + GridApplierUtil.ApplyGridContainerProperties(cssProps, element, new ProcessorContext(new ConverterProperties + ())); + NUnit.Framework.Assert.AreEqual(8.25f, element.GetProperty(Property.COLUMN_GAP)); + NUnit.Framework.Assert.AreEqual(30, element.GetProperty(Property.ROW_GAP)); + } + + [NUnit.Framework.Test] + public virtual void ContainerGridGapValuesTest() { + IDictionary cssProps = new Dictionary(); + cssProps.Put(CssConstants.GRID_COLUMN_GAP, "11px"); + cssProps.Put(CssConstants.GRID_ROW_GAP, "30%"); + IElement element = new Div(); + GridApplierUtil.ApplyGridContainerProperties(cssProps, element, new ProcessorContext(new ConverterProperties + ())); + NUnit.Framework.Assert.AreEqual(8.25f, element.GetProperty(Property.COLUMN_GAP)); + NUnit.Framework.Assert.AreEqual(30, element.GetProperty(Property.ROW_GAP)); + } + + [NUnit.Framework.Test] + public virtual void ColumnFlowTest() { + IDictionary cssProps = new Dictionary(); + cssProps.Put(CssConstants.GRID_AUTO_FLOW, CommonCssConstants.COLUMN); + IElement element = new Div(); + GridApplierUtil.ApplyGridContainerProperties(cssProps, element, new ProcessorContext(new ConverterProperties + ())); + NUnit.Framework.Assert.AreEqual(GridFlow.COLUMN, element.GetProperty(Property.GRID_FLOW)); + } + + [NUnit.Framework.Test] + public virtual void NullFlowTest() { + IDictionary cssProps = new Dictionary(); + IElement element = new Div(); + GridApplierUtil.ApplyGridContainerProperties(cssProps, element, new ProcessorContext(new ConverterProperties + ())); + NUnit.Framework.Assert.AreEqual(GridFlow.ROW, element.GetProperty(Property.GRID_FLOW)); + } + + [NUnit.Framework.Test] + public virtual void DenseFlowTest() { + IDictionary cssProps = new Dictionary(); + cssProps.Put(CssConstants.GRID_AUTO_FLOW, CssConstants.DENSE); + IElement element = new Div(); + GridApplierUtil.ApplyGridContainerProperties(cssProps, element, new ProcessorContext(new ConverterProperties + ())); + NUnit.Framework.Assert.AreEqual(GridFlow.ROW_DENSE, element.GetProperty(Property.GRID_FLOW)); + } + + [NUnit.Framework.Test] + public virtual void ColumnDenseFlowTest() { + IDictionary cssProps = new Dictionary(); + cssProps.Put(CssConstants.GRID_AUTO_FLOW, CommonCssConstants.COLUMN + " " + CssConstants.DENSE); + IElement element = new Div(); + GridApplierUtil.ApplyGridContainerProperties(cssProps, element, new ProcessorContext(new ConverterProperties + ())); + NUnit.Framework.Assert.AreEqual(GridFlow.COLUMN_DENSE, element.GetProperty(Property.GRID_FLOW)); + } + + [NUnit.Framework.Test] + public virtual void InvalidFlowTest() { + IDictionary cssProps = new Dictionary(); + cssProps.Put(CssConstants.GRID_AUTO_FLOW, "some text"); + IElement element = new Div(); + GridApplierUtil.ApplyGridContainerProperties(cssProps, element, new ProcessorContext(new ConverterProperties + ())); + NUnit.Framework.Assert.AreEqual(GridFlow.ROW, element.GetProperty(Property.GRID_FLOW)); + } + + [NUnit.Framework.Test] + public virtual void CustomIndentTest() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_COLUMN_START, " a "); + cssProps.Put(CssConstants.GRID_COLUMN_END, "c"); + cssProps.Put(CssConstants.GRID_ROW_START, " a "); + cssProps.Put(CssConstants.GRID_ROW_END, "c"); + Div element = new Div(); + IElementNode stylesContainer = CreateStylesContainer(); + IDictionary parentStyles = ((JsoupElementNode)stylesContainer.ParentNode()).GetStyles(); + parentStyles.Put(CssConstants.GRID_TEMPLATE_COLUMNS, "[a] 10px [ b c d ] 10px [e f]"); + parentStyles.Put(CssConstants.GRID_TEMPLATE_ROWS, "[f] 10px [ e d c ] 10px [b a]"); + GridContainer grid = new GridContainer(); + grid.Add(element); + GridApplierUtil.ApplyGridItemProperties(cssProps, stylesContainer, element); + GridApplierUtil.ApplyGridContainerProperties(parentStyles, grid, new ProcessorContext(new ConverterProperties + ())); + NUnit.Framework.Assert.AreEqual(3, element.GetProperty(Property.GRID_ROW_START)); + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.AreEqual(2, element.GetProperty(Property.GRID_ROW_END)); + NUnit.Framework.Assert.AreEqual(2, element.GetProperty(Property.GRID_COLUMN_END)); + } + + [NUnit.Framework.Test] + public virtual void CustomIndentNthTest() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_COLUMN_START, "2 a"); + cssProps.Put(CssConstants.GRID_COLUMN_END, "3 a"); + cssProps.Put(CssConstants.GRID_ROW_START, "2 c"); + cssProps.Put(CssConstants.GRID_ROW_END, "d"); + Div element = new Div(); + IElementNode stylesContainer = CreateStylesContainer(); + IDictionary parentStyles = ((JsoupElementNode)stylesContainer.ParentNode()).GetStyles(); + parentStyles.Put(CssConstants.GRID_TEMPLATE_COLUMNS, "[a] 10px [b] 10px [a] 10px [a]"); + parentStyles.Put(CssConstants.GRID_TEMPLATE_ROWS, "[c] 10px [c] 10px [c]"); + GridContainer grid = new GridContainer(); + grid.Add(element); + GridApplierUtil.ApplyGridItemProperties(cssProps, stylesContainer, element); + GridApplierUtil.ApplyGridContainerProperties(parentStyles, grid, new ProcessorContext(new ConverterProperties + ())); + NUnit.Framework.Assert.AreEqual(2, element.GetProperty(Property.GRID_ROW_START)); + NUnit.Framework.Assert.AreEqual(3, element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.IsNull(element.GetProperty(Property.GRID_ROW_END)); + NUnit.Framework.Assert.AreEqual(4, element.GetProperty(Property.GRID_COLUMN_END)); + } + + [NUnit.Framework.Test] + public virtual void CustomIndentNegativeTest() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_COLUMN_START, "-3 a"); + cssProps.Put(CssConstants.GRID_COLUMN_END, "-1 a"); + cssProps.Put(CssConstants.GRID_ROW_START, "-3 c"); + cssProps.Put(CssConstants.GRID_ROW_END, "-1 c"); + Div element = new Div(); + IElementNode stylesContainer = CreateStylesContainer(); + IDictionary parentStyles = ((JsoupElementNode)stylesContainer.ParentNode()).GetStyles(); + parentStyles.Put(CssConstants.GRID_TEMPLATE_COLUMNS, "[a] 10px [b] 10px [a] 10px [a]"); + parentStyles.Put(CssConstants.GRID_TEMPLATE_ROWS, "[c] 10px [c] 10px [c]"); + GridContainer grid = new GridContainer(); + grid.Add(element); + GridApplierUtil.ApplyGridItemProperties(cssProps, stylesContainer, element); + GridApplierUtil.ApplyGridContainerProperties(parentStyles, grid, new ProcessorContext(new ConverterProperties + ())); + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_ROW_START)); + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.AreEqual(3, element.GetProperty(Property.GRID_ROW_END)); + NUnit.Framework.Assert.AreEqual(4, element.GetProperty(Property.GRID_COLUMN_END)); + } + + [NUnit.Framework.Test] + [LogMessage(Html2PdfLogMessageConstant.ADDING_GRID_LINES_TO_THE_LEFT_OR_TOP_IS_NOT_SUPPORTED)] + public virtual void CustomIndentOutOfBoundsTest() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_COLUMN_START, "a"); + cssProps.Put(CssConstants.GRID_COLUMN_END, "5 a"); + cssProps.Put(CssConstants.GRID_ROW_START, "-5 c"); + cssProps.Put(CssConstants.GRID_ROW_END, "-1 c"); + Div element = new Div(); + IElementNode stylesContainer = CreateStylesContainer(); + IDictionary parentStyles = ((JsoupElementNode)stylesContainer.ParentNode()).GetStyles(); + parentStyles.Put(CssConstants.GRID_TEMPLATE_COLUMNS, "[a] 10px [b] 10px [a] 10px [a]"); + parentStyles.Put(CssConstants.GRID_TEMPLATE_ROWS, "[c] 10px [c] 10px [c]"); + GridContainer grid = new GridContainer(); + grid.Add(element); + GridApplierUtil.ApplyGridItemProperties(cssProps, stylesContainer, element); + GridApplierUtil.ApplyGridContainerProperties(parentStyles, grid, new ProcessorContext(new ConverterProperties + ())); + // Null for row start as we don't support negative starts + NUnit.Framework.Assert.IsNull(element.GetProperty(Property.GRID_ROW_START)); + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.AreEqual(3, element.GetProperty(Property.GRID_ROW_END)); + NUnit.Framework.Assert.AreEqual(6, element.GetProperty(Property.GRID_COLUMN_END)); + } + + [NUnit.Framework.Test] + public virtual void CustomIndentOutOfBounds2Test() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_COLUMN_START, "a"); + cssProps.Put(CssConstants.GRID_COLUMN_END, "5 a"); + cssProps.Put(CssConstants.GRID_ROW_START, "c"); + cssProps.Put(CssConstants.GRID_ROW_END, "2 c"); + Div element = new Div(); + IElementNode stylesContainer = CreateStylesContainer(); + IDictionary parentStyles = ((JsoupElementNode)stylesContainer.ParentNode()).GetStyles(); + parentStyles.Put(CssConstants.GRID_TEMPLATE_COLUMNS, "[a] 10px 10px [a] 10px [b]"); + parentStyles.Put(CssConstants.GRID_TEMPLATE_ROWS, "10px 10px [c] 10px [a]"); + GridContainer grid = new GridContainer(); + grid.Add(element); + GridApplierUtil.ApplyGridItemProperties(cssProps, stylesContainer, element); + GridApplierUtil.ApplyGridContainerProperties(parentStyles, grid, new ProcessorContext(new ConverterProperties + ())); + NUnit.Framework.Assert.AreEqual(3, element.GetProperty(Property.GRID_ROW_START)); + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.AreEqual(5, element.GetProperty(Property.GRID_ROW_END)); + NUnit.Framework.Assert.AreEqual(7, element.GetProperty(Property.GRID_COLUMN_END)); + } + + [NUnit.Framework.Test] + public virtual void CustomIndentGridAreaTest() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_AREA, "c / a 2 / c -2 / 5 a"); + Div element = new Div(); + IElementNode stylesContainer = CreateStylesContainer(); + IDictionary parentStyles = ((JsoupElementNode)stylesContainer.ParentNode()).GetStyles(); + parentStyles.Put(CssConstants.GRID_TEMPLATE_COLUMNS, "[a] 10px [b] 10px [a] 10px [a]"); + parentStyles.Put(CssConstants.GRID_TEMPLATE_ROWS, "[c] 10px [c] 10px [c]"); + GridContainer grid = new GridContainer(); + grid.Add(element); + GridApplierUtil.ApplyGridItemProperties(cssProps, stylesContainer, element); + GridApplierUtil.ApplyGridContainerProperties(parentStyles, grid, new ProcessorContext(new ConverterProperties + ())); + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_ROW_START)); + NUnit.Framework.Assert.AreEqual(3, element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.AreEqual(2, element.GetProperty(Property.GRID_ROW_END)); + NUnit.Framework.Assert.AreEqual(6, element.GetProperty(Property.GRID_COLUMN_END)); + } + + [NUnit.Framework.Test] + public virtual void CustomIndentSpan1Test() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_COLUMN_START, "a"); + cssProps.Put(CssConstants.GRID_COLUMN_END, "span 2 a"); + cssProps.Put(CssConstants.GRID_ROW_START, "span c"); + cssProps.Put(CssConstants.GRID_ROW_END, "4"); + Div element = new Div(); + IElementNode stylesContainer = CreateStylesContainer(); + IDictionary parentStyles = ((JsoupElementNode)stylesContainer.ParentNode()).GetStyles(); + parentStyles.Put(CssConstants.GRID_TEMPLATE_COLUMNS, "[a] 10px 10px [a] 10px [b]"); + parentStyles.Put(CssConstants.GRID_TEMPLATE_ROWS, "10px 10px [c] 10px [a]"); + GridContainer grid = new GridContainer(); + grid.Add(element); + GridApplierUtil.ApplyGridItemProperties(cssProps, stylesContainer, element); + GridApplierUtil.ApplyGridContainerProperties(parentStyles, grid, new ProcessorContext(new ConverterProperties + ())); + NUnit.Framework.Assert.AreEqual(3, element.GetProperty(Property.GRID_ROW_START)); + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.AreEqual(4, element.GetProperty(Property.GRID_ROW_END)); + NUnit.Framework.Assert.AreEqual(5, element.GetProperty(Property.GRID_COLUMN_END)); + } + + [NUnit.Framework.Test] + public virtual void CustomIndentSpan2Test() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_COLUMN_START, "2 a"); + cssProps.Put(CssConstants.GRID_COLUMN_END, "span 2 a"); + cssProps.Put(CssConstants.GRID_ROW_START, "span 2 c"); + cssProps.Put(CssConstants.GRID_ROW_END, "4"); + Div element = new Div(); + IElementNode stylesContainer = CreateStylesContainer(); + IDictionary parentStyles = ((JsoupElementNode)stylesContainer.ParentNode()).GetStyles(); + parentStyles.Put(CssConstants.GRID_TEMPLATE_COLUMNS, "[a] 10px 10px [a] 10px [b]"); + parentStyles.Put(CssConstants.GRID_TEMPLATE_ROWS, "10px 10px [c] 10px [a]"); + GridContainer grid = new GridContainer(); + grid.Add(element); + GridApplierUtil.ApplyGridItemProperties(cssProps, stylesContainer, element); + GridApplierUtil.ApplyGridContainerProperties(parentStyles, grid, new ProcessorContext(new ConverterProperties + ())); + // Null for row start as we don't support negative starts + NUnit.Framework.Assert.IsNull(element.GetProperty(Property.GRID_ROW_START)); + NUnit.Framework.Assert.AreEqual(3, element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.AreEqual(4, element.GetProperty(Property.GRID_ROW_END)); + NUnit.Framework.Assert.AreEqual(6, element.GetProperty(Property.GRID_COLUMN_END)); + } + + [NUnit.Framework.Test] + public virtual void CustomIndentSpan3Test() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_COLUMN_START, " 2 a-a"); + cssProps.Put(CssConstants.GRID_COLUMN_END, "span 2 a-a"); + cssProps.Put(CssConstants.GRID_ROW_START, "span 2 c"); + cssProps.Put(CssConstants.GRID_ROW_END, "4"); + Div element = new Div(); + IElementNode stylesContainer = CreateStylesContainer(); + IDictionary parentStyles = ((JsoupElementNode)stylesContainer.ParentNode()).GetStyles(); + parentStyles.Put(CssConstants.GRID_TEMPLATE_COLUMNS, "[a-a] 10px 10px [a-a] 10px [b-a]"); + parentStyles.Put(CssConstants.GRID_TEMPLATE_ROWS, "10px 10px [c] 10px [a]"); + GridContainer grid = new GridContainer(); + grid.Add(element); + GridApplierUtil.ApplyGridItemProperties(cssProps, stylesContainer, element); + GridApplierUtil.ApplyGridContainerProperties(parentStyles, grid, new ProcessorContext(new ConverterProperties + ())); + // Null for row start as we don't support negative starts + NUnit.Framework.Assert.IsNull(element.GetProperty(Property.GRID_ROW_START)); + NUnit.Framework.Assert.AreEqual(3, element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.AreEqual(4, element.GetProperty(Property.GRID_ROW_END)); + NUnit.Framework.Assert.AreEqual(6, element.GetProperty(Property.GRID_COLUMN_END)); + } + + [NUnit.Framework.Test] + public virtual void GridAreaLinenamesTest() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_COLUMN_START, "a-start"); + cssProps.Put(CssConstants.GRID_COLUMN_END, "span c-end 2"); + cssProps.Put(CssConstants.GRID_ROW_START, "span a-start"); + cssProps.Put(CssConstants.GRID_ROW_END, "c-end -1"); + Div element = new Div(); + IElementNode stylesContainer = CreateStylesContainer(); + IDictionary parentStyles = ((JsoupElementNode)stylesContainer.ParentNode()).GetStyles(); + parentStyles.Put(CssConstants.GRID_TEMPLATE_AREAS, "'a a a b b c c c' 'a a a b b c c c' 'a a a b b c c c'" + ); + GridContainer grid = new GridContainer(); + grid.Add(element); + GridApplierUtil.ApplyGridItemProperties(cssProps, stylesContainer, element); + GridApplierUtil.ApplyGridContainerProperties(parentStyles, grid, new ProcessorContext(new ConverterProperties + ())); + // Null for row start as we don't support negative starts + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_ROW_START)); + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.AreEqual(4, element.GetProperty(Property.GRID_ROW_END)); + NUnit.Framework.Assert.AreEqual(10, element.GetProperty(Property.GRID_COLUMN_END)); + } + + [NUnit.Framework.Test] + public virtual void LineNamesInRepeatTest() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_COLUMN_START, "4 a"); + cssProps.Put(CssConstants.GRID_COLUMN_END, "b 4"); + cssProps.Put(CssConstants.GRID_ROW_START, "span start"); + cssProps.Put(CssConstants.GRID_ROW_END, "c 2"); + Div element = new Div(); + IElementNode stylesContainer = CreateStylesContainer(); + IDictionary parentStyles = ((JsoupElementNode)stylesContainer.ParentNode()).GetStyles(); + parentStyles.Put(CssConstants.GRID_TEMPLATE_COLUMNS, "[a] repeat(3, [a st] 10px 10px [a] 10px [b])"); + parentStyles.Put(CssConstants.GRID_TEMPLATE_ROWS, "[start] repeat(2, 10px 10px [c] 10px [a])"); + GridContainer grid = new GridContainer(); + grid.Add(element); + GridApplierUtil.ApplyGridItemProperties(cssProps, stylesContainer, element); + GridApplierUtil.ApplyGridContainerProperties(parentStyles, grid, new ProcessorContext(new ConverterProperties + ())); + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_ROW_START)); + NUnit.Framework.Assert.AreEqual(6, element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.AreEqual(6, element.GetProperty(Property.GRID_ROW_END)); + NUnit.Framework.Assert.AreEqual(11, element.GetProperty(Property.GRID_COLUMN_END)); + } + + [NUnit.Framework.Test] + public virtual void LineNamesInRepeat2Test() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_COLUMN_START, "3 a"); + cssProps.Put(CssConstants.GRID_COLUMN_END, "span nd 3"); + cssProps.Put(CssConstants.GRID_ROW_START, "span c"); + cssProps.Put(CssConstants.GRID_ROW_END, "a 8"); + Div element = new Div(); + IElementNode stylesContainer = CreateStylesContainer(); + IDictionary parentStyles = ((JsoupElementNode)stylesContainer.ParentNode()).GetStyles(); + parentStyles.Put(CssConstants.GRID_TEMPLATE_COLUMNS, "[a] 10px repeat( 2, 10px 10px [a] 10px [b]) repeat(3, [nd] auto)" + ); + parentStyles.Put(CssConstants.GRID_TEMPLATE_ROWS, "[start] 10px repeat( 5, 10px 10px [c] 10px [a]) auto [a] auto [a]" + ); + GridContainer grid = new GridContainer(); + grid.Add(element); + GridApplierUtil.ApplyGridItemProperties(cssProps, stylesContainer, element); + GridApplierUtil.ApplyGridContainerProperties(parentStyles, grid, new ProcessorContext(new ConverterProperties + ())); + NUnit.Framework.Assert.AreEqual(16, element.GetProperty(Property.GRID_ROW_START)); + NUnit.Framework.Assert.AreEqual(7, element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.AreEqual(20, element.GetProperty(Property.GRID_ROW_END)); + NUnit.Framework.Assert.AreEqual(10, element.GetProperty(Property.GRID_COLUMN_END)); + } + + [NUnit.Framework.Test] + [LogMessage(Html2PdfLogMessageConstant.LINENAMES_ARE_NOT_SUPPORTED_WITHIN_AUTO_REPEAT, Count = 2)] + public virtual void LineNamesInAutoRepeatTest() { + IDictionary cssProps = new LinkedDictionary(); + cssProps.Put(CssConstants.GRID_COLUMN_START, "a"); + cssProps.Put(CssConstants.GRID_COLUMN_END, "c"); + Div element = new Div(); + IElementNode stylesContainer = CreateStylesContainer(); + IDictionary parentStyles = ((JsoupElementNode)stylesContainer.ParentNode()).GetStyles(); + parentStyles.Put(CssConstants.GRID_TEMPLATE_COLUMNS, "repeat(auto-fill, [a] 10%) [b] repeat(auto-fit, 1fr) [c]" + ); + GridContainer grid = new GridContainer(); + grid.Add(element); + GridApplierUtil.ApplyGridItemProperties(cssProps, stylesContainer, element); + GridApplierUtil.ApplyGridContainerProperties(parentStyles, grid, new ProcessorContext(new ConverterProperties + ())); + NUnit.Framework.Assert.AreEqual(1, element.GetProperty(Property.GRID_COLUMN_START)); + NUnit.Framework.Assert.AreEqual(3, element.GetProperty(Property.GRID_COLUMN_END)); + } + + private IElementNode CreateStylesContainer() { + iText.StyledXmlParser.Jsoup.Nodes.Element element = new iText.StyledXmlParser.Jsoup.Nodes.Element(iText.StyledXmlParser.Jsoup.Parser.Tag + .ValueOf("div"), ""); + iText.StyledXmlParser.Jsoup.Nodes.Element parentElement = new iText.StyledXmlParser.Jsoup.Nodes.Element(iText.StyledXmlParser.Jsoup.Parser.Tag + .ValueOf("div"), ""); + parentElement.AppendChild(element); + IElementNode node = new JsoupElementNode(element); + IElementNode parentNode = new JsoupElementNode(parentElement); + parentNode.AddChild(node); + IDictionary styles = new Dictionary(); + styles.Put(CssConstants.DISPLAY, CssConstants.GRID); + parentNode.SetStyles(styles); + return node; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/apply/util/TextDecorationApplierUtilTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/apply/util/TextDecorationApplierUtilTest.cs index 186acdca5..37398736b 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/apply/util/TextDecorationApplierUtilTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/apply/util/TextDecorationApplierUtilTest.cs @@ -276,12 +276,15 @@ public virtual void TextDecorationShouldBeAppliedToChildAndSubChildWhenSecondChi )); } +//\cond DO_NOT_DOCUMENT internal class TextDecorationTestElementNode : IElementNode { private readonly INode parent; +//\cond DO_NOT_DOCUMENT internal TextDecorationTestElementNode(INode parent) { this.parent = parent; } +//\endcond public virtual String Name() { return "testnode"; @@ -310,7 +313,9 @@ public virtual IList ChildNodes() { return children; } +//\cond DO_NOT_DOCUMENT internal IList children = new List(); +//\endcond public virtual void AddChild(INode node) { children.Add(node); @@ -323,11 +328,14 @@ public virtual INode ParentNode() { public virtual void SetStyles(IDictionary stringStringMap) { } +//\cond DO_NOT_DOCUMENT internal Dictionary styles = new Dictionary(); +//\endcond public virtual IDictionary GetStyles() { return styles; } } +//\endcond } } diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridAreaTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridAreaTest.cs new file mode 100644 index 000000000..290ef4a83 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridAreaTest.cs @@ -0,0 +1,160 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf; +using iText.Html2pdf.Logs; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.Grid { + [NUnit.Framework.Category("IntegrationTest")] + public class GridAreaTest : ExtendedHtmlConversionITextTest { + public static readonly String SOURCE_FOLDER = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext + .CurrentContext.TestDirectory) + "/resources/itext/html2pdf/css/grid/GridAreaTest/"; + + public static readonly String DESTINATION_FOLDER = NUnit.Framework.TestContext.CurrentContext.TestDirectory + + "/test/itext/html2pdf/css/grid/GridAreaTest/"; + + [NUnit.Framework.OneTimeSetUp] + public static void BeforeClass() { + CreateOrClearDestinationFolder(DESTINATION_FOLDER); + } + + [NUnit.Framework.Test] + public virtual void BasicGridArea1Test() { + RunTest("basicGridArea1"); + } + + [NUnit.Framework.Test] + public virtual void BasicGridArea2Test() { + RunTest("basicGridArea2"); + } + + [NUnit.Framework.Test] + public virtual void TemplateAreasBasicTest() { + RunTest("templateAreasBasic"); + } + + [NUnit.Framework.Test] + public virtual void TemplateAreasShorthandBasicTest() { + RunTest("templateAreasShorthandBasic"); + } + + [NUnit.Framework.Test] + public virtual void TemplateAreasShorthandAdvancedTest() { + RunTest("templateAreasShorthandAdvanced"); + } + + [NUnit.Framework.Test] + public virtual void GridShorthandAdvancedTest() { + RunTest("gridShorthandAdvanced"); + } + + [NUnit.Framework.Test] + public virtual void TemplateShorthandWithoutLineNamesTest() { + RunTest("templateShorthandWithoutLineNames"); + } + + [NUnit.Framework.Test] + public virtual void TemplateAreasInvalidNameTest() { + RunTest("templateAreasInvalidName"); + } + + [NUnit.Framework.Test] + public virtual void TemplateAreasWithDotsTest() { + RunTest("templateAreasWithDots"); + } + + [NUnit.Framework.Test] + public virtual void TemplateAreasSwitchedPlacesTest() { + RunTest("grid-area-switched-places"); + } + + [NUnit.Framework.Test] + public virtual void DifferentRowSpanTest() { + RunTest("differentRowSpanTest"); + } + + [NUnit.Framework.Test] + public virtual void BorderBoxTest() { + RunTest("borderBoxTest"); + } + + [NUnit.Framework.Test] + public virtual void BorderBoxTest2() { + RunTest("borderBoxTest2"); + } + + [NUnit.Framework.Test] + public virtual void DifferentRowSpanOnSplitTest() { + RunTest("differentRowSpanOnSplitTest"); + } + + [NUnit.Framework.Test] + public virtual void DifferentRowSpanOnSplitTest2() { + RunTest("differentRowSpanOnSplitTest2"); + } + + [NUnit.Framework.Test] + public virtual void DifferentRowSpanWithGaps50OnSplitTest() { + RunTest("differentRowSpanWithGaps50OnSplitTest"); + } + + [NUnit.Framework.Test] + public virtual void DifferentRowSpanWithGaps100OnSplitTest() { + RunTest("differentRowSpanWithGaps100OnSplitTest"); + } + + [NUnit.Framework.Test] + public virtual void SplitOn2ndRowGapTest() { + RunTest("splitOn2ndRowGapTest"); + } + + [NUnit.Framework.Test] + [LogMessage(Html2PdfLogMessageConstant.GRID_TEMPLATE_AREAS_IS_INVALID)] + public virtual void InvalidTemplateAreasTest() { + RunTest("invalidTemplateAreas"); + } + + [NUnit.Framework.Test] + public virtual void TemplateAreasStartAutoTest() { + RunTest("templateAreasStartAuto"); + } + + [NUnit.Framework.Test] + public virtual void TemplateAreasStartTest() { + // Here browser result seems strange. We specified only row starts but it somehow applies to column starts also. + // I'd expect the same result as for templateAreasStartAutoTest + RunTest("templateAreasStart"); + } + + [NUnit.Framework.Test] + public virtual void TemplateAreasStartEndTest() { + RunTest("templateAreasStartEnd"); + } + + private void RunTest(String testName) { + ConvertToPdfAndCompare(testName, SOURCE_FOLDER, DESTINATION_FOLDER, false, new ConverterProperties().SetBaseUri + (SOURCE_FOLDER)); + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridGapTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridGapTest.cs new file mode 100644 index 000000000..723b5f388 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridGapTest.cs @@ -0,0 +1,206 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf; +using iText.Html2pdf.Logs; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.Grid { + [NUnit.Framework.Category("IntegrationTest")] + public class GridGapTest : ExtendedHtmlConversionITextTest { + public static readonly String SOURCE_FOLDER = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext + .CurrentContext.TestDirectory) + "/resources/itext/html2pdf/css/grid/GridGapTest/"; + + public static readonly String DESTINATION_FOLDER = NUnit.Framework.TestContext.CurrentContext.TestDirectory + + "/test/itext/html2pdf/css/grid/GridGapTest/"; + + [NUnit.Framework.OneTimeSetUp] + public static void BeforeClass() { + CreateOrClearDestinationFolder(DESTINATION_FOLDER); + } + + [NUnit.Framework.Test] + public virtual void TemplateColsGapTest() { + RunTest("template_cols_gap"); + } + + [NUnit.Framework.Test] + public virtual void TemplateColsColGapTest() { + RunTest("template_cols_col_gap"); + } + + [NUnit.Framework.Test] + public virtual void Template_rowsRowGapTest() { + RunTest("template_rows_row_gap"); + } + + [NUnit.Framework.Test] + public virtual void TemplateRowsGapTest() { + RunTest("template_rows_gap"); + } + + [NUnit.Framework.Test] + public virtual void TemplateRowsColsGapTest() { + RunTest("template_rows_cols_gap"); + } + + [NUnit.Framework.Test] + public virtual void TemplateRowsColsAutoRowsGapTest() { + RunTest("template_rows_cols_auto_rows_gap"); + } + + [NUnit.Framework.Test] + public virtual void TemplateRowsColsAutoColsGapTest() { + RunTest("template_rows_cols_auto_cols_gap"); + } + + [NUnit.Framework.Test] + public virtual void TemplateRowsColsBigCellGapTest1() { + RunTest("template_rows_cols_big_cell_gap_1"); + } + + [NUnit.Framework.Test] + public virtual void TemplateRowsColsBigCellGapTest2() { + RunTest("template_rows_cols_big_cell_gap_2"); + } + + [NUnit.Framework.Test] + public virtual void TemplateRowsColsVertCellGapTest1() { + RunTest("template_rows_cols_vert_cell_gap_1"); + } + + [NUnit.Framework.Test] + public virtual void TemplateRowsColsVertCellGapTest2() { + RunTest("template_rows_cols_vert_cell_gap_2"); + } + + [NUnit.Framework.Test] + public virtual void TemplateRowsColsHorzCellGapTest1() { + RunTest("template_rows_cols_horz_cell_gap_1"); + } + + [NUnit.Framework.Test] + public virtual void TemplateRowsColsHorzCellGapTest2() { + RunTest("template_rows_cols_horz_cell_gap_2"); + } + + [NUnit.Framework.Test] + public virtual void TemplateRowsColsFewBigCellGapTest1() { + RunTest("template_rows_cols_few_big_cell_gap_1"); + } + + [NUnit.Framework.Test] + public virtual void TemplateRowsColsFewBigCellGapTest2() { + RunTest("template_rows_cols_few_big_cell_gap_2"); + } + + [NUnit.Framework.Test] + [LogMessage(Html2PdfLogMessageConstant.INVALID_CSS_PROPERTY_DECLARATION, Count = 2)] + public virtual void DiffUnitsTest() { + RunTest("diff_units"); + } + + [NUnit.Framework.Test] + public virtual void FloatGapValueTest() { + RunTest("float_gap_value"); + } + + [NUnit.Framework.Test] + public virtual void LargeColGapValueTest() { + RunTest("large_col_gap_value"); + } + + [NUnit.Framework.Test] + public virtual void LargeRowGapValueTest() { + RunTest("large_row_gap_value"); + } + + [NUnit.Framework.Test] + public virtual void LargeGapValueTest() { + RunTest("large_gap_value"); + } + + [NUnit.Framework.Test] + public virtual void MarginTest() { + RunTest("margin"); + } + + [NUnit.Framework.Test] + public virtual void PaddingTest() { + RunTest("padding"); + } + + [NUnit.Framework.Test] + [LogMessage(Html2PdfLogMessageConstant.INVALID_CSS_PROPERTY_DECLARATION)] + public virtual void NegativeColGapValueTest() { + RunTest("negative_col_gap_value"); + } + + [NUnit.Framework.Test] + [LogMessage(Html2PdfLogMessageConstant.INVALID_CSS_PROPERTY_DECLARATION)] + public virtual void NegativeRowGapValueTest() { + RunTest("negative_row_gap_value"); + } + + [NUnit.Framework.Test] + [LogMessage(Html2PdfLogMessageConstant.INVALID_CSS_PROPERTY_DECLARATION)] + public virtual void NegativeGapValueTest() { + RunTest("negative_gap_value"); + } + + [NUnit.Framework.Test] + public virtual void SmallValuesGapTest() { + RunTest("small_values_gap"); + } + + [NUnit.Framework.Test] + public virtual void DifferentRowsColsGapTest() { + RunTest("different_rows_cols_gap"); + } + + [NUnit.Framework.Test] + public virtual void GridGapTest1() { + RunTest("gridGapTest1"); + } + + [NUnit.Framework.Test] + public virtual void GridGapTest2() { + RunTest("gridGapTest2"); + } + + [NUnit.Framework.Test] + public virtual void GridColumnGapTest() { + RunTest("gridColumnGapTest"); + } + + [NUnit.Framework.Test] + public virtual void GridRowGapTest() { + RunTest("gridRowGapTest"); + } + + private void RunTest(String testName) { + ConvertToPdfAndCompare(testName, SOURCE_FOLDER, DESTINATION_FOLDER, false, new ConverterProperties().SetBaseUri + (SOURCE_FOLDER)); + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridItemPlacementTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridItemPlacementTest.cs new file mode 100644 index 000000000..27783eca8 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridItemPlacementTest.cs @@ -0,0 +1,225 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf; + +namespace iText.Html2pdf.Css.Grid { + [NUnit.Framework.Category("IntegrationTest")] + public class GridItemPlacementTest : ExtendedHtmlConversionITextTest { + public static readonly String SOURCE_FOLDER = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext + .CurrentContext.TestDirectory) + "/resources/itext/html2pdf/css/grid/GridItemPlacementTest/"; + + public static readonly String DESTINATION_FOLDER = NUnit.Framework.TestContext.CurrentContext.TestDirectory + + "/test/itext/html2pdf/css/grid/GridItemPlacementTest/"; + + [NUnit.Framework.OneTimeSetUp] + public static void BeforeClass() { + CreateOrClearDestinationFolder(DESTINATION_FOLDER); + } + + [NUnit.Framework.Test] + public virtual void ColStartEnd1Test() { + RunTest("colStartEnd1"); + } + + [NUnit.Framework.Test] + public virtual void ColStartEnd2Test() { + RunTest("colStartEnd2"); + } + + [NUnit.Framework.Test] + public virtual void ColStartEnd3Test() { + RunTest("colStartEnd3"); + } + + [NUnit.Framework.Test] + public virtual void ColStartEnd4Test() { + RunTest("colStartEnd4"); + } + + [NUnit.Framework.Test] + public virtual void ColStartEnd5Test() { + RunTest("colStartEnd5"); + } + + [NUnit.Framework.Test] + public virtual void FewCellsPlacement1Test() { + RunTest("fewCellsPlacement1"); + } + + [NUnit.Framework.Test] + public virtual void FewCellsPlacement2Test() { + RunTest("fewCellsPlacement2"); + } + + [NUnit.Framework.Test] + public virtual void FewCellsPlacement3Test() { + RunTest("fewCellsPlacement3"); + } + + [NUnit.Framework.Test] + public virtual void FewCellsPlacement4Test() { + RunTest("fewCellsPlacement4"); + } + + [NUnit.Framework.Test] + public virtual void FewCellsPlacement5Test() { + RunTest("fewCellsPlacement5"); + } + + [NUnit.Framework.Test] + public virtual void FewCellsPlacement6Test() { + RunTest("fewCellsPlacement6"); + } + + [NUnit.Framework.Test] + public virtual void FewCellsPlacement7Test() { + RunTest("fewCellsPlacement7"); + } + + [NUnit.Framework.Test] + public virtual void RowStartEnd1Test() { + RunTest("rowStartEnd1"); + } + + [NUnit.Framework.Test] + public virtual void RowStartEnd2Test() { + RunTest("rowStartEnd2"); + } + + [NUnit.Framework.Test] + public virtual void RowStartEnd3Test() { + RunTest("rowStartEnd3"); + } + + [NUnit.Framework.Test] + public virtual void RowStartEnd4Test() { + RunTest("rowStartEnd4"); + } + + [NUnit.Framework.Test] + public virtual void TwoColumnSpans1Test() { + RunTest("twoColumnSpans1"); + } + + [NUnit.Framework.Test] + public virtual void TwoColumnSpans2Test() { + RunTest("twoColumnSpans2"); + } + + [NUnit.Framework.Test] + public virtual void TwoColumnSpans3Test() { + RunTest("twoColumnSpans3"); + } + + [NUnit.Framework.Test] + public virtual void TwoRowSpans1Test() { + RunTest("twoRowSpans1"); + } + + [NUnit.Framework.Test] + public virtual void TwoRowSpans2Test() { + RunTest("twoRowSpans2"); + } + + [NUnit.Framework.Test] + public virtual void TwoRowSpans3Test() { + RunTest("twoRowSpans3"); + } + + [NUnit.Framework.Test] + public virtual void SpanToNegativeStartTest() { + RunTest("spanToNegativeStartTest"); + } + + [NUnit.Framework.Test] + public virtual void SpanToNegativeStartWithExplicitTemplatesTest() { + RunTest("spanToNegativeStartWithExplicitTemplatesTest"); + } + + [NUnit.Framework.Test] + public virtual void SpanToNegativeStartWithoutTemplatesTest() { + RunTest("spanToNegativeStartWithoutTemplatesTest"); + } + + [NUnit.Framework.Test] + public virtual void SpanToNegativeStartWithoutTemplatesTest2() { + RunTest("spanToNegativeStartWithoutTemplatesTest2"); + } + + [NUnit.Framework.Test] + public virtual void SpanToNegativeStartWithSingleTemplateTest() { + RunTest("spanToNegativeStartWithSingleTemplateTest"); + } + + [NUnit.Framework.Test] + public virtual void ColumnSpanExpandsStartToNegativeTest() { + RunTest("columnSpanExpandsStartToNegativeTest"); + } + + [NUnit.Framework.Test] + public virtual void NegativeIndexOutOfTemplateTest() { + RunTest("negativeIndexOutOfTemplateTest"); + } + + [NUnit.Framework.Test] + public virtual void NegativeIndexWithImplicitLinesTest() { + RunTest("negativeIndexWithImplicitLinesTest"); + } + + [NUnit.Framework.Test] + public virtual void NegativeIndexWithoutTemplateTest() { + RunTest("negativeIndexWithoutTemplateTest"); + } + + [NUnit.Framework.Test] + public virtual void NegativeIndexShorthandTest() { + RunTest("negativeIndexShorthandTest"); + } + + [NUnit.Framework.Test] + public virtual void NegativeAndPositiveIndexShorthandTest() { + RunTest("negativeAndPositiveIndexShorthandTest"); + } + + [NUnit.Framework.Test] + public virtual void SpanToNegativeIndexWithoutTemplateTest() { + RunTest("spanToNegativeIndexWithoutTemplateTest"); + } + + [NUnit.Framework.Test] + public virtual void NoTemplate1Test() { + RunTest("noTemplate1"); + } + + [NUnit.Framework.Test] + public virtual void NoTemplate2Test() { + RunTest("noTemplate2"); + } + + private void RunTest(String testName) { + ConvertToPdfAndCompare(testName, SOURCE_FOLDER, DESTINATION_FOLDER, false, new ConverterProperties().SetBaseUri + (SOURCE_FOLDER)); + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridLinenameTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridLinenameTest.cs new file mode 100644 index 000000000..91c6b9432 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridLinenameTest.cs @@ -0,0 +1,98 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf; +using iText.Html2pdf.Logs; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.Grid { + [NUnit.Framework.Category("IntegrationTest")] + public class GridLinenameTest : ExtendedHtmlConversionITextTest { + public static readonly String SOURCE_FOLDER = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext + .CurrentContext.TestDirectory) + "/resources/itext/html2pdf/css/grid/GridLinenameTest/"; + + public static readonly String DESTINATION_FOLDER = NUnit.Framework.TestContext.CurrentContext.TestDirectory + + "/test/itext/html2pdf/css/grid/GridLinenameTest/"; + + [NUnit.Framework.OneTimeSetUp] + public static void BeforeClass() { + CreateOrClearDestinationFolder(DESTINATION_FOLDER); + } + + [NUnit.Framework.Test] + public virtual void LinenamesCombinedTest() { + RunTest("linenamesCombined"); + } + + [NUnit.Framework.Test] + public virtual void LinenameSpanTest() { + RunTest("linenameSpan"); + } + + [NUnit.Framework.Test] + public virtual void LinenameNthTest() { + RunTest("linenameNth"); + } + + [NUnit.Framework.Test] + public virtual void DuplicateLineNamesTest() { + RunTest("duplicateLineNames"); + } + + [NUnit.Framework.Test] + public virtual void LinenameGridAreaTest() { + RunTest("linenameGridArea"); + } + + [NUnit.Framework.Test] + public virtual void CustomIndentSpanTest() { + RunTest("customIndentSpan"); + } + + [NUnit.Framework.Test] + public virtual void CustomIndentTrickySpanTest() { + RunTest("customIndentTrickySpan"); + } + + [NUnit.Framework.Test] + public virtual void TemplateAreasNamesTest() { + RunTest("templateAreasNames"); + } + + [NUnit.Framework.Test] + public virtual void LinenameRepeatTest() { + RunTest("linenameRepeat"); + } + + [NUnit.Framework.Test] + [LogMessage(Html2PdfLogMessageConstant.LINENAMES_ARE_NOT_SUPPORTED_WITHIN_AUTO_REPEAT)] + public virtual void LinenameAutoRepeatTest() { + RunTest("linenameAutoRepeat"); + } + + private void RunTest(String testName) { + ConvertToPdfAndCompare(testName, SOURCE_FOLDER, DESTINATION_FOLDER, false, new ConverterProperties().SetBaseUri + (SOURCE_FOLDER)); + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridRelativeValuesTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridRelativeValuesTest.cs new file mode 100644 index 000000000..0844db6d6 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridRelativeValuesTest.cs @@ -0,0 +1,347 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf; +using iText.Layout.Exceptions; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.Grid { + [NUnit.Framework.Category("IntegrationTest")] + public class GridRelativeValuesTest : ExtendedHtmlConversionITextTest { + public static readonly String SOURCE_FOLDER = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext + .CurrentContext.TestDirectory) + "/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/"; + + public static readonly String DESTINATION_FOLDER = NUnit.Framework.TestContext.CurrentContext.TestDirectory + + "/test/itext/html2pdf/css/grid/GridRelativeValuesTest/"; + + [NUnit.Framework.OneTimeSetUp] + public static void BeforeClass() { + CreateOrClearDestinationFolder(DESTINATION_FOLDER); + } + + [NUnit.Framework.Test] + public virtual void BothAxis1Test() { + RunTest("bothAxis1"); + } + + [NUnit.Framework.Test] + public virtual void BothAxis2Test() { + RunTest("bothAxis2"); + } + + [NUnit.Framework.Test] + public virtual void BothAxis3Test() { + RunTest("bothAxis3"); + } + + [NUnit.Framework.Test] + public virtual void BothAxis4Test() { + RunTest("bothAxis4"); + } + + [NUnit.Framework.Test] + public virtual void BothAxis5Test() { + RunTest("bothAxis5"); + } + + [NUnit.Framework.Test] + public virtual void BothAxis6Test() { + RunTest("bothAxis6"); + } + + [NUnit.Framework.Test] + public virtual void BothAxis7Test() { + RunTest("bothAxis7"); + } + + [NUnit.Framework.Test] + public virtual void BothAxis8Test() { + RunTest("bothAxis8"); + } + + [NUnit.Framework.Test] + public virtual void BothAxis9Test() { + RunTest("bothAxis9"); + } + + [NUnit.Framework.Test] + public virtual void BothAxis10Test() { + RunTest("bothAxis10"); + } + + [NUnit.Framework.Test] + public virtual void BothAxis11Test() { + RunTest("bothAxis11"); + } + + [NUnit.Framework.Test] + public virtual void BothAxis12Test() { + RunTest("bothAxis12"); + } + + [NUnit.Framework.Test] + public virtual void BothAxis13Test() { + RunTest("bothAxis13"); + } + + [NUnit.Framework.Test] + public virtual void BothAxis14Test() { + RunTest("bothAxis14"); + } + + [NUnit.Framework.Test] + public virtual void BothAxis15Test() { + RunTest("bothAxis15"); + } + + [NUnit.Framework.Test] + public virtual void BothAxis16Test() { + RunTest("bothAxis16"); + } + + [NUnit.Framework.Test] + public virtual void BothAxis17Test() { + RunTest("bothAxis17"); + } + + [NUnit.Framework.Test] + public virtual void BothAxis18Test() { + RunTest("bothAxis18"); + } + + [NUnit.Framework.Test] + public virtual void BothAxis19Test() { + RunTest("bothAxis19"); + } + + [NUnit.Framework.Test] + public virtual void BothAxis20Test() { + RunTest("bothAxis20"); + } + + [NUnit.Framework.Test] + public virtual void BothAxis21Test() { + RunTest("bothAxis21"); + } + + [NUnit.Framework.Test] + public virtual void BothAxisOnlyFr1Test() { + RunTest("bothAxisOnlyFr1"); + } + + [NUnit.Framework.Test] + public virtual void BothAxisOnlyFr2Test() { + RunTest("bothAxisOnlyFr2"); + } + + [NUnit.Framework.Test] + public virtual void BothAxisOnlyFr3Test() { + RunTest("bothAxisOnlyFr3"); + } + + [NUnit.Framework.Test] + public virtual void BothAxisOnlyFr4Test() { + RunTest("bothAxisOnlyFr4"); + } + + [NUnit.Framework.Test] + public virtual void BothAxisOnlyFr5Test() { + RunTest("bothAxisOnlyFr5"); + } + + [NUnit.Framework.Test] + public virtual void BothAxisOnlyFr6Test() { + RunTest("bothAxisOnlyFr6"); + } + + [NUnit.Framework.Test] + public virtual void ColAxis1Test() { + RunTest("colAxis1"); + } + + [NUnit.Framework.Test] + public virtual void ColAxis2Test() { + RunTest("colAxis2"); + } + + [NUnit.Framework.Test] + public virtual void ColAxis3Test() { + RunTest("colAxis3"); + } + + [NUnit.Framework.Test] + public virtual void ColAxis4Test() { + RunTest("colAxis4"); + } + + [NUnit.Framework.Test] + public virtual void ColAxis5Test() { + RunTest("colAxis5"); + } + + [NUnit.Framework.Test] + public virtual void ColAxis6Test() { + RunTest("colAxis6"); + } + + [NUnit.Framework.Test] + public virtual void ColAxis7Test() { + RunTest("colAxis7"); + } + + [NUnit.Framework.Test] + public virtual void ColAxis8Test() { + RunTest("colAxis8"); + } + + [NUnit.Framework.Test] + public virtual void ColAxis9Test() { + RunTest("colAxis9"); + } + + [NUnit.Framework.Test] + public virtual void ColAxis10Test() { + RunTest("colAxis10"); + } + + [NUnit.Framework.Test] + public virtual void ColAxis11Test() { + RunTest("colAxis11"); + } + + [NUnit.Framework.Test] + public virtual void RowAxis1Test() { + RunTest("rowAxis1"); + } + + [NUnit.Framework.Test] + public virtual void RowAxis2Test() { + RunTest("rowAxis2"); + } + + [NUnit.Framework.Test] + public virtual void RowAxis3Test() { + RunTest("rowAxis3"); + } + + [NUnit.Framework.Test] + public virtual void RowAxis4Test() { + RunTest("rowAxis4"); + } + + [NUnit.Framework.Test] + public virtual void RowAxis5Test() { + RunTest("rowAxis5"); + } + + [NUnit.Framework.Test] + public virtual void RowAxis6Test() { + RunTest("rowAxis6"); + } + + [NUnit.Framework.Test] + public virtual void RowAxis7Test() { + RunTest("rowAxis7"); + } + + [NUnit.Framework.Test] + [LogMessage(LayoutExceptionMessageConstant.GRID_AUTO_REPEAT_CANNOT_BE_COMBINED_WITH_INDEFINITE_SIZES, Count + = 2)] + public virtual void MinmaxAutoRepeat1Test() { + RunTest("minmaxAutoRepeat1"); + } + + [NUnit.Framework.Test] + [LogMessage(LayoutExceptionMessageConstant.GRID_AUTO_REPEAT_CANNOT_BE_COMBINED_WITH_INDEFINITE_SIZES, Count + = 2)] + public virtual void MinmaxAutoRepeat2Test() { + RunTest("minmaxAutoRepeat2"); + } + + [NUnit.Framework.Test] + public virtual void MinmaxFitContent1Test() { + RunTest("minmaxFitContent1"); + } + + [NUnit.Framework.Test] + public virtual void MinmaxFitContent2Test() { + RunTest("minmaxFitContent2"); + } + + [NUnit.Framework.Test] + public virtual void MinmaxFitContentAutoRepeat1Test() { + RunTest("minmaxFitContentAutoRepeat1"); + } + + [NUnit.Framework.Test] + [LogMessage(LayoutExceptionMessageConstant.GRID_AUTO_REPEAT_CANNOT_BE_COMBINED_WITH_INDEFINITE_SIZES)] + public virtual void MinmaxFitContentAutoRepeat2Test() { + RunTest("minmaxFitContentAutoRepeat2"); + } + + [NUnit.Framework.Test] + public virtual void MinmaxWithBothAxisSpan1Test() { + RunTest("minmaxWithBothAxisSpan1"); + } + + [NUnit.Framework.Test] + public virtual void MinmaxWithBothAxisSpan2Test() { + RunTest("minmaxWithBothAxisSpan2"); + } + + [NUnit.Framework.Test] + public virtual void MinmaxWithBothAxisSpan3Test() { + RunTest("minmaxWithBothAxisSpan3"); + } + + [NUnit.Framework.Test] + public virtual void MinmaxWithContentAndFrTest() { + RunTest("minmaxWithContentAndFr"); + } + + [NUnit.Framework.Test] + public virtual void MinmaxWithSpan1Test() { + RunTest("minmaxWithSpan1"); + } + + [NUnit.Framework.Test] + public virtual void MinmaxWithSpan2Test() { + RunTest("minmaxWithSpan2"); + } + + [NUnit.Framework.Test] + public virtual void MinmaxWithSpan3Test() { + RunTest("minmaxWithSpan3"); + } + + [NUnit.Framework.Test] + public virtual void MinmaxWithSpan4Test() { + RunTest("minmaxWithSpan4"); + } + + private void RunTest(String testName) { + ConvertToPdfAndCompare(testName, SOURCE_FOLDER, DESTINATION_FOLDER, false, new ConverterProperties().SetBaseUri + (SOURCE_FOLDER)); + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridTemplateColumnTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridTemplateColumnTest.cs index 95a693001..3781a8e23 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridTemplateColumnTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridTemplateColumnTest.cs @@ -32,7 +32,6 @@ public class GridTemplateColumnTest : ExtendedHtmlConversionITextTest { public static readonly String DESTINATION_FOLDER = NUnit.Framework.TestContext.CurrentContext.TestDirectory + "/test/itext/html2pdf/css/grid/GridTemplateColumnTest/"; - //TODO DEVSIX-3340 change cmp files when GRID LAYOUT is supported [NUnit.Framework.OneTimeSetUp] public static void BeforeClass() { CreateOrClearDestinationFolder(DESTINATION_FOLDER); @@ -43,6 +42,11 @@ public virtual void TemplateColumnBordersTest() { RunTest("template-cols-borders"); } + [NUnit.Framework.Test] + public virtual void AutoRowFixedTest() { + RunTest("auto-cols-fixed"); + } + [NUnit.Framework.Test] public virtual void TemplateColumnStartEndTest() { RunTest("template-cols-column-start-end"); @@ -128,6 +132,16 @@ public virtual void TemplateColumnBasicTest() { RunTest("template-cols-without-other-props"); } + [NUnit.Framework.Test] + public virtual void TemplateColumnBasicTest2() { + RunTest("template-cols-without-other-props-2"); + } + + [NUnit.Framework.Test] + public virtual void TemplateColumnWithFlexAndGapsTest() { + RunTest("template-cols-with-flex-and-gaps"); + } + private void RunTest(String testName) { ConvertToPdfAndCompare(testName, SOURCE_FOLDER, DESTINATION_FOLDER, false, new ConverterProperties().SetBaseUri (SOURCE_FOLDER)); diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridTemplateCombinedTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridTemplateCombinedTest.cs index e87b7b155..268a15aaf 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridTemplateCombinedTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridTemplateCombinedTest.cs @@ -32,7 +32,6 @@ public class GridTemplateCombinedTest : ExtendedHtmlConversionITextTest { public static readonly String DESTINATION_FOLDER = NUnit.Framework.TestContext.CurrentContext.TestDirectory + "/test/itext/html2pdf/css/grid/GridTemplateCombinedTest/"; - //TODO DEVSIX-3340 change cmp files when GRID LAYOUT is supported [NUnit.Framework.OneTimeSetUp] public static void BeforeClass() { CreateOrClearDestinationFolder(DESTINATION_FOLDER); diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest.cs new file mode 100644 index 000000000..e33dc0546 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest.cs @@ -0,0 +1,103 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf; +using iText.Layout.Logs; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.Grid { + [NUnit.Framework.Category("IntegrationTest")] + public class GridTemplateElementPropertyContainerTest : ExtendedHtmlConversionITextTest { + public static readonly String SOURCE_FOLDER = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext + .CurrentContext.TestDirectory) + "/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/"; + + public static readonly String DESTINATION_FOLDER = NUnit.Framework.TestContext.CurrentContext.TestDirectory + + "/test/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/"; + + [NUnit.Framework.OneTimeSetUp] + public static void BeforeClass() { + CreateOrClearDestinationFolder(DESTINATION_FOLDER); + } + + [NUnit.Framework.Test] + public virtual void BackgroundItemsOnTopOfBackgroundGridTest() { + RunTest("backgroundItemsOnTopOfBackgroundGrid"); + } + + [NUnit.Framework.Test] + public virtual void PaddingAllSidesTest() { + RunTest("paddingAll"); + } + + [NUnit.Framework.Test] + public virtual void PaddingAllSidesEmptyDivTest() { + RunTest("padding_all_with_empty_div"); + } + + [NUnit.Framework.Test] + [LogMessage(LayoutLogMessageConstant.ELEMENT_DOES_NOT_FIT_AREA, Count = 1)] + public virtual void PaddingAllToBigForWidthTest() { + RunTest("paddingAllToBigForWidth"); + } + + [NUnit.Framework.Test] + public virtual void PaddingOverflowX() { + RunTest("padding_overflow_x"); + } + + [NUnit.Framework.Test] + public virtual void BasicBorderTest() { + RunTest("basic_border"); + } + + [NUnit.Framework.Test] + public virtual void BorderBigTest() { + RunTest("border_big"); + } + + [NUnit.Framework.Test] + public virtual void BoderWithOverflowXTest() { + RunTest("border_big_with_overflow_x"); + } + + [NUnit.Framework.Test] + public virtual void MarginAllTest() { + RunTest("margin_all"); + } + + [NUnit.Framework.Test] + public virtual void MarginAllEmptyTest() { + RunTest("margin_all_empty"); + } + + [NUnit.Framework.Test] + public virtual void MarginAllWithEmptyDIV() { + RunTest("margin_all_with_empty_div"); + } + + private void RunTest(String testName) { + ConvertToPdfAndCompare(testName, SOURCE_FOLDER, DESTINATION_FOLDER, false, new ConverterProperties().SetBaseUri + (SOURCE_FOLDER)); + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridTemplateNestedTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridTemplateNestedTest.cs new file mode 100644 index 000000000..46f4ae119 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridTemplateNestedTest.cs @@ -0,0 +1,135 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf; + +namespace iText.Html2pdf.Css.Grid { + [NUnit.Framework.Category("IntegrationTest")] + public class GridTemplateNestedTest : ExtendedHtmlConversionITextTest { + public static readonly String SOURCE_FOLDER = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext + .CurrentContext.TestDirectory) + "/resources/itext/html2pdf/css/grid" + "/GridTemplateNestedTest/"; + + public static readonly String DESTINATION_FOLDER = NUnit.Framework.TestContext.CurrentContext.TestDirectory + + "/test/itext/html2pdf/css/grid" + "/GridTemplateNestedTest/"; + + [NUnit.Framework.OneTimeSetUp] + public static void BeforeClass() { + CreateOrClearDestinationFolder(DESTINATION_FOLDER); + } + + [NUnit.Framework.Test] + public virtual void TemplateNestedAreasTest() { + RunTest("grid-nested-areas"); + } + + [NUnit.Framework.Test] + public virtual void TemplateNestedAreasWithBorderTest() { + RunTest("grid-nested-areas-with-border"); + } + + [NUnit.Framework.Test] + public virtual void TemplateNestedArticlesTest() { + RunTest("grid-nested-articles"); + } + + [NUnit.Framework.Test] + public virtual void TemplateNestedFormsTest() { + RunTest("grid-nested-forms"); + } + + [NUnit.Framework.Test] + public virtual void TemplateNestedGridTest() { + RunTest("grid-nested-grid"); + } + + [NUnit.Framework.Test] + public virtual void TemplateNestedListsTest() { + RunTest("grid-nested-lists"); + } + + [NUnit.Framework.Test] + public virtual void TemplateNestedListsOddEvenTest() { + RunTest("grid-nested-lists-odd-even"); + } + + [NUnit.Framework.Test] + public virtual void TemplateNestedMixedContentTest() { + RunTest("grid-nested-mixed-content"); + } + + [NUnit.Framework.Test] + public virtual void TemplateNestedParagraphsTest() { + RunTest("grid-nested-paragraphs"); + } + + [NUnit.Framework.Test] + public virtual void TemplateNestedImagesTest() { + RunTest("grid-nested-images"); + } + + [NUnit.Framework.Test] + public virtual void TemplateNestedTableTest() { + RunTest("grid-nested-table"); + } + + [NUnit.Framework.Test] + public virtual void TemplateNestedTableNestedGridTest() { + RunTest("grid-nested-table-nested-grid"); + } + + [NUnit.Framework.Test] + public virtual void TemplateNestedTableMixedContentTest() { + RunTest("grid-nested-table-with-mixed-content"); + } + + [NUnit.Framework.Test] + public virtual void TemplateNested2LevelsWithAreasTest() { + RunTest("grid-nested-2-levels-areas"); + } + + [NUnit.Framework.Test] + public virtual void TemplateNested3LevelsFormsTest() { + RunTest("grid-nested-3-forms"); + } + + [NUnit.Framework.Test] + public virtual void TemplateNested3LevelsTest() { + RunTest("grid-nested-3-levels"); + } + + [NUnit.Framework.Test] + public virtual void TemplateNested3LevelsMultipleTest() { + RunTest("grid-nested-3-levels-multiple"); + } + + [NUnit.Framework.Test] + public virtual void TemplateNested3LevelsTablesTest() { + RunTest("grid-nested-3-levels-tables"); + } + + private void RunTest(String testName) { + ConvertToPdfAndCompare(testName, SOURCE_FOLDER, DESTINATION_FOLDER, false, new ConverterProperties().SetBaseUri + (SOURCE_FOLDER)); + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridTemplateRowTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridTemplateRowTest.cs index 8b6dd9bfe..3ecee60b9 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridTemplateRowTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridTemplateRowTest.cs @@ -32,7 +32,6 @@ public class GridTemplateRowTest : ExtendedHtmlConversionITextTest { public static readonly String DESTINATION_FOLDER = NUnit.Framework.TestContext.CurrentContext.TestDirectory + "/test/itext/html2pdf/css/grid/GridTemplateRowTest/"; - //TODO DEVSIX-3340 change cmp files when GRID LAYOUT is supported [NUnit.Framework.OneTimeSetUp] public static void BeforeClass() { CreateOrClearDestinationFolder(DESTINATION_FOLDER); @@ -43,6 +42,11 @@ public virtual void TemplateRowAutoTest() { RunTest("template-rows-auto"); } + [NUnit.Framework.Test] + public virtual void AutoRowFixedTest() { + RunTest("auto-rows-fixed"); + } + [NUnit.Framework.Test] public virtual void TemplateRowBordersTest() { RunTest("template-rows-borders"); @@ -68,6 +72,11 @@ public virtual void TemplateRowFitContentAutoTest() { RunTest("template-rows-fit-content-auto"); } + [NUnit.Framework.Test] + public virtual void RowFitContentPercentTest() { + RunTest("row-fit-content-percent"); + } + [NUnit.Framework.Test] public virtual void TemplateRowFrTest() { RunTest("template-rows-fr"); diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridTemplatesTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridTemplatesTest.cs new file mode 100644 index 000000000..98d3a813f --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/grid/GridTemplatesTest.cs @@ -0,0 +1,710 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf; +using iText.Html2pdf.Logs; +using iText.Layout.Exceptions; +using iText.Layout.Logs; +using iText.Test; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.Grid { + [NUnit.Framework.Category("IntegrationTest")] + public class GridTemplatesTest : ExtendedHtmlConversionITextTest { + public static readonly String SOURCE_FOLDER = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext + .CurrentContext.TestDirectory) + "/resources/itext/html2pdf/css/grid/GridTemplatesTest/"; + + public static readonly String DESTINATION_FOLDER = NUnit.Framework.TestContext.CurrentContext.TestDirectory + + "/test/itext/html2pdf/css/grid/GridTemplatesTest/"; + + [NUnit.Framework.OneTimeSetUp] + public static void BeforeClass() { + CreateOrClearDestinationFolder(DESTINATION_FOLDER); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnOneDivTest() { + RunTest("basicColumnOneDivTest"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnFewDivsTest() { + RunTest("basicColumnFewDivsTest"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnFewDivsWithFrTest() { + RunTest("basicColumnFewDivsWithFrTest"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnFewDivs2Test() { + RunTest("basicColumnFewDivs2Test"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnMultiPageTest() { + RunTest("basicColumnMultiPageTest"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnStartEndTest() { + RunTest("basicColumnStartEndTest"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnStartEnd2Test() { + RunTest("basicColumnStartEnd2Test"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnStartEnd3Test() { + // We need to add a "dry run" for cell balancing without layouting to determine final grid size + RunTest("basicColumnStartEnd3Test"); + } + + //--------------- without grid-templates-columns and grid-templates-rows --------------- + [NUnit.Framework.Test] + public virtual void BasicOnlyGridDisplayTest() { + RunTest("basicOnlyGridDisplayTest"); + } + + //--------------- grid-templates-rows --------------- + [NUnit.Framework.Test] + public virtual void BasicRowOneDivTest() { + RunTest("basicRowOneDivTest"); + } + + [NUnit.Framework.Test] + public virtual void BasicRowFewDivsTest() { + RunTest("basicRowFewDivsTest"); + } + + [NUnit.Framework.Test] + public virtual void BasicRowStartEndTest() { + RunTest("basicRowStartEndTest"); + } + + //--------------- grid-templates-columns + grid-templates-rows --------------- + [NUnit.Framework.Test] + public virtual void BasicColumnRowFewDivs1Test() { + RunTest("basicColumnRowFewDivs1Test"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnRowFewDivs2Test() { + RunTest("basicColumnRowFewDivs2Test"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnRowFewDivs3Test() { + RunTest("basicColumnRowFewDivs3Test"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnRowFewDivs4Test() { + RunTest("basicColumnRowFewDivs4Test"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnRowStartEndTest() { + RunTest("basicColumnRowStartEndTest"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnRowStartEnd1Test() { + RunTest("basicColumnRowStartEnd1Test"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnRowStartEnd2Test() { + RunTest("basicColumnRowStartEnd2Test"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnRowStartEnd3Test() { + RunTest("basicColumnRowStartEnd3Test"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnRowStartEnd4Test() { + RunTest("basicColumnRowStartEnd4Test"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnRowStartEnd5Test() { + RunTest("basicColumnRowStartEnd5Test"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnRowStartEnd6Test() { + RunTest("basicColumnRowStartEnd6Test"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnRowStartEnd7Test() { + RunTest("basicColumnRowStartEnd7Test"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnRowStartEnd8Test() { + RunTest("basicColumnRowStartEnd8Test"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnRowStartEnd9Test() { + RunTest("basicColumnRowStartEnd9Test"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnRowStartEnd10Test() { + RunTest("basicColumnRowStartEnd10Test"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnRowStartEnd11Test() { + RunTest("basicColumnRowStartEnd11Test"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnRowStartEnd12Test() { + RunTest("basicColumnRowStartEnd12Test"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnRowStartEnd13Test() { + RunTest("basicColumnRowStartEnd13Test"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnRowStartEnd14Test() { + RunTest("basicColumnRowStartEnd14Test"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnRowStartEnd15Test() { + RunTest("basicColumnRowStartEnd15Test"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnRowStartEnd16Test() { + RunTest("basicColumnRowStartEnd16Test"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnRowStartEnd17Test() { + RunTest("basicColumnRowStartEnd17Test"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnRowStartEnd18Test() { + RunTest("basicColumnRowStartEnd18Test"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnRowStartEnd19Test() { + RunTest("basicColumnRowStartEnd19Test"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnRowStartEndWithInlineTextTest() { + RunTest("basicColumnRowStartEndWithInlineTextTest"); + } + + [NUnit.Framework.Test] + public virtual void BasicGridAfterParagraphTest() { + RunTest("basicGridAfterParagraphTest"); + } + + [NUnit.Framework.Test] + public virtual void BasicRowFlowTest() { + RunTest("basicRowFlowTest"); + } + + [NUnit.Framework.Test] + public virtual void BasicRowDenseFlowTest() { + RunTest("basicRowDenseFlowTest"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnFlowTest() { + RunTest("basicColumnFlowTest"); + } + + [NUnit.Framework.Test] + public virtual void BasicColumnDenseFlowTest() { + RunTest("basicColumnDenseFlowTest"); + } + + [NUnit.Framework.Test] + public virtual void FixedTemplatesAndCellDoesNotHaveDirectNeighborTest() { + RunTest("fixedTemplatesAndCellDoesNotHaveDirectNeighborTest"); + } + + [NUnit.Framework.Test] + public virtual void GridInsideGridTest() { + RunTest("gridInsideGridTest"); + } + + [NUnit.Framework.Test] + public virtual void GridInsideGridOnPageBreakTest() { + RunTest("gridInsideGridOnPageBreakTest"); + } + + [NUnit.Framework.Test] + public virtual void ElementDoesntFitContentTest() { + RunTest("elementDoesntFitContentTest"); + } + + [NUnit.Framework.Test] + public virtual void ElementDoesntFitTest() { + RunTest("elementDoesntFitTest"); + } + + [NUnit.Framework.Test] + public virtual void ElementDoesntFitHorizontallyTest() { + RunTest("elementDoesntFitHorizontallyTest"); + } + + [NUnit.Framework.Test] + public virtual void ElementDoesntFitOverflowingToNextPageTest() { + RunTest("elementDoesntFitOverflowingToNextPageTest"); + } + + [NUnit.Framework.Test] + public virtual void ElementDoesntFitContentOverflowingToNextPageTest() { + RunTest("elementDoesntFitContentOverflowingToNextPageTest"); + } + + [NUnit.Framework.Test] + public virtual void TextsWithOverflowTest() { + RunTest("textsWithOverflowTest"); + } + + [NUnit.Framework.Test] + [LogMessage(LayoutLogMessageConstant.ELEMENT_DOES_NOT_FIT_AREA, LogLevel = LogLevelConstants.WARN)] + public virtual void ImageElementDoesntFitTest() { + RunTest("imageElementDoesntFitTest"); + } + + [NUnit.Framework.Test] + public virtual void ManyImageElementsTest() { + RunTest("manyImageElementsTest"); + } + + [NUnit.Framework.Test] + public virtual void ImageElementsOn2ndPageTest() { + RunTest("imageElementsOn2ndPageTest"); + } + + [NUnit.Framework.Test] + public virtual void GridWithBrTest() { + RunTest("gridWithBrTest"); + } + + [NUnit.Framework.Test] + public virtual void GridWithPageBreakTest() { + RunTest("gridWithPageBreakTest"); + } + + [NUnit.Framework.Test] + public virtual void GridWithTableTest() { + RunTest("gridWithTableTest"); + } + + [NUnit.Framework.Test] + public virtual void ColumnFlowOnSplitTest() { + RunTest("columnFlowOnSplitTest"); + } + + [NUnit.Framework.Test] + public virtual void BasicGridRemValuesTest() { + RunTest("grid-layout-rem"); + } + + [NUnit.Framework.Test] + public virtual void BasicGridEmValuesTest() { + RunTest("grid-layout-em"); + } + + [NUnit.Framework.Test] + public virtual void PercentageTemplateHeightTest() { + RunTest("percentageTemplateHeightTest"); + } + + [NUnit.Framework.Test] + public virtual void PercentageTemplateHeightWithFixedHeightTest() { + RunTest("percentageTemplateHeightWithFixedHeightTest"); + } + + [NUnit.Framework.Test] + public virtual void PercentageFitContentWithFrTest() { + RunTest("percentageFitContentWithFrTest"); + } + + [NUnit.Framework.Test] + public virtual void AutoFillRepeatWithGapsTest() { + RunTest("autoFillRepeatWithGapsTest"); + } + + [NUnit.Framework.Test] + public virtual void AutoFitWithSingleCellTest() { + RunTest("autoFitWithSingleCellTest"); + } + + [NUnit.Framework.Test] + public virtual void ColumnFlowAutoFillTest() { + RunTest("columnFlowAutoFillTest"); + } + + [NUnit.Framework.Test] + public virtual void FitContentAndFrTest() { + RunTest("fitContentAndFrTest"); + } + + [NUnit.Framework.Test] + public virtual void FixedFitContentTest() { + RunTest("fixedFitContentTest"); + } + + [NUnit.Framework.Test] + public virtual void FixedRepeatWithGapsTest() { + RunTest("fixedRepeatWithGapsTest"); + } + + [NUnit.Framework.Test] + public virtual void InlineAutoFillTest() { + RunTest("inlineAutoFillTest"); + } + + [LogMessage(LayoutExceptionMessageConstant.GRID_AUTO_REPEAT_CANNOT_BE_COMBINED_WITH_INDEFINITE_SIZES)] + [NUnit.Framework.Test] + public virtual void InvalidAutoRepeatTest() { + RunTest("invalidAutoRepeatTest"); + } + + [NUnit.Framework.Test] + public virtual void InvalidParameterRepeatTest() { + RunTest("invalidParameterRepeatTest"); + } + + [NUnit.Framework.Test] + public virtual void MinMaxAutoFillTest() { + RunTest("minMaxAutoFillTest"); + } + + [NUnit.Framework.Test] + public virtual void MinMaxAutoFillWithHeightTest() { + RunTest("minMaxAutoFillWithHeightTest"); + } + + [NUnit.Framework.Test] + public virtual void MinMaxAutoFillWithMaxHeightTest() { + RunTest("minMaxAutoFillWithMaxHeightTest"); + } + + [NUnit.Framework.Test] + public virtual void MixedRepeatsTest() { + RunTest("mixedRepeatsTest"); + } + + [NUnit.Framework.Test] + public virtual void ResolvableAutoFillSimpleTest() { + RunTest("resolvableAutoFillSimpleTest"); + } + + [NUnit.Framework.Test] + public virtual void ResolvableAutoFitWithMinMaxTest() { + RunTest("resolvableAutoFitWithMinMaxTest"); + } + + [NUnit.Framework.Test] + public virtual void SeveralValuesAutoFillTest() { + RunTest("severalValuesAutoFillTest"); + } + + [NUnit.Framework.Test] + public virtual void AutoFitOnIntrinsicAreaTest() { + RunTest("autoFitOnIntrinsicAreaTest"); + } + + [NUnit.Framework.Test] + public virtual void AutoFillWithDefiniteMinMaxTest() { + RunTest("autoFillWithDefiniteMinMaxTest"); + } + + [NUnit.Framework.Test] + public virtual void AutoFillWithIndefiniteMinMaxTest() { + RunTest("autoFillWithIndefiniteMinMaxTest"); + } + + [NUnit.Framework.Test] + [LogMessage(LayoutExceptionMessageConstant.FLEXIBLE_ARENT_ALLOWED_AS_MINIMUM_IN_MINMAX)] + public virtual void MinmaxWithMinFrTest() { + RunTest("minmaxWithMinFrTest"); + } + + [NUnit.Framework.Test] + public virtual void MinmaxWithMaxFrTest() { + RunTest("minmaxWithMaxFrTest"); + } + + [NUnit.Framework.Test] + public virtual void MinMaxWithIndefiniteMinTest() { + RunTest("minMaxWithIndefiniteMinTest"); + } + + [NUnit.Framework.Test] + public virtual void PointZeroFlexTest() { + RunTest("pointZeroFlexTest"); + } + + [NUnit.Framework.Test] + public virtual void PointZeroFlexTest2() { + RunTest("pointZeroFlexTest2"); + } + + [NUnit.Framework.Test] + public virtual void PointZeroFlexTest3() { + RunTest("pointZeroFlexTest3"); + } + + [NUnit.Framework.Test] + public virtual void PointZeroFlexTest4() { + RunTest("pointZeroFlexTest4"); + } + + [NUnit.Framework.Test] + public virtual void PointZeroFlexTest5() { + RunTest("pointZeroFlexTest5"); + } + + [NUnit.Framework.Test] + public virtual void PointZeroFlexTest6() { + RunTest("pointZeroFlexTest6"); + } + + [NUnit.Framework.Test] + public virtual void SpanOnlyFrTest() { + RunTest("spanOnlyFrTest"); + } + + [NUnit.Framework.Test] + public virtual void AutoFitOnIntrinsicAreaWithLargeBorderTest() { + RunTest("autoFitOnIntrinsicAreaWithLargeBorderTest"); + } + + [NUnit.Framework.Test] + public virtual void AutoFitWithLargeBorderTest() { + RunTest("autoFitWithLargeBorderTest"); + } + + [NUnit.Framework.Test] + public virtual void AutoFitOnIntrinsicAreaWithLargeMarginPaddingTest() { + RunTest("autoFitOnIntrinsicAreaWithLargeMarginPaddingTest"); + } + + [NUnit.Framework.Test] + public virtual void AutoRepeatOnIntrinsicAreaTest() { + RunTest("autoRepeatOnIntrinsicAreaTest"); + } + + [LogMessage(LayoutExceptionMessageConstant.GRID_AUTO_REPEAT_CANNOT_BE_COMBINED_WITH_INDEFINITE_SIZES)] + [NUnit.Framework.Test] + public virtual void AutoRepeatWithIntrinsicArgumentTest() { + RunTest("autoRepeatWithIntrinsicArgumentTest"); + } + + [LogMessage(LayoutExceptionMessageConstant.GRID_AUTO_REPEAT_CAN_BE_USED_ONLY_ONCE)] + [NUnit.Framework.Test] + public virtual void TwoAutoRepeatsTest() { + RunTest("twoAutoRepeatsTest"); + } + + [NUnit.Framework.Test] + public virtual void AutoFillRepeatWithFlexMinMaxTest() { + RunTest("autoFillRepeatWithFlexMinMaxTest"); + } + + [NUnit.Framework.Test] + public virtual void AutoFitRepeatWithFlexMinMaxTest() { + RunTest("autoFitRepeatWithFlexMinMaxTest"); + } + + [LogMessage(Html2PdfLogMessageConstant.GRID_TEMPLATE_WAS_NOT_RECOGNISED, LogLevel = LogLevelConstants.WARN + )] + [NUnit.Framework.Test] + public virtual void RepeatInsideMinMaxTest() { + RunTest("repeatInsideMinMaxTest"); + } + + [LogMessage(LayoutExceptionMessageConstant.GRID_AUTO_REPEAT_CANNOT_BE_COMBINED_WITH_INDEFINITE_SIZES)] + [NUnit.Framework.Test] + public virtual void AutoRepeatWithFitContentTest() { + RunTest("autoRepeatWithFitContentTest"); + } + + [NUnit.Framework.Test] + public virtual void FixedRepeatWithFitContentTest() { + RunTest("fixedRepeatWithFitContentTest"); + } + + [NUnit.Framework.Test] + public virtual void FixedRepeatWithMinMaxContentTest() { + RunTest("fixedRepeatWithMinMaxContentTest"); + } + + [LogMessage(LayoutExceptionMessageConstant.GRID_AUTO_REPEAT_CANNOT_BE_COMBINED_WITH_INDEFINITE_SIZES)] + [NUnit.Framework.Test] + public virtual void AutoRepeatWithLeadingMaxContentTest() { + RunTest("autoRepeatWithLeadingMaxContentTest"); + } + + [NUnit.Framework.Test] + public virtual void AutoFitWithGapsTest() { + RunTest("autoFitWithGapsTest"); + } + + [NUnit.Framework.Test] + public virtual void RowColumnShorthandSimpleTest() { + RunTest("rowColumnShorthandSimpleTest"); + } + + [NUnit.Framework.Test] + public virtual void GridShorthandColumnAutoFlowTest() { + RunTest("gridShorthandColumnAutoFlowTest"); + } + + [NUnit.Framework.Test] + public virtual void GridShorthandRowAutoFlowTest() { + RunTest("gridShorthandRowAutoFlowTest"); + } + + [NUnit.Framework.Test] + public virtual void ShrankTemplateAfterAutoFitTest() { + RunTest("shrankTemplateAfterAutoFitTest"); + } + + [NUnit.Framework.Test] + public virtual void MinHeightTest() { + RunTest("minHeightTest"); + } + + [NUnit.Framework.Test] + public virtual void MinHeightFlexRowsTest() { + RunTest("minHeightFlexRowsTest"); + } + + [NUnit.Framework.Test] + public virtual void MaxHeightTest() { + // TODO DEVSIX-8426 Fix working with min\max-height\width on grid container + RunTest("maxHeightTest"); + } + + [NUnit.Framework.Test] + public virtual void MaxHeightFlexRowsTest() { + // TODO DEVSIX-8426 Fix working with min\max-height\width on grid container + RunTest("maxHeightFlexRowsTest"); + } + + [NUnit.Framework.Test] + public virtual void MaxHeightFlexRowsTest2() { + RunTest("maxHeightFlexRowsTest2"); + } + + [LogMessage(Html2PdfLogMessageConstant.INVALID_CSS_PROPERTY_DECLARATION, LogLevel = LogLevelConstants.WARN + )] + [NUnit.Framework.Test] + public virtual void DivNestingTest() { + RunTest("divNestingTest"); + } + + [LogMessage(Html2PdfLogMessageConstant.SUBGRID_VALUE_IS_NOT_SUPPORTED, LogLevel = LogLevelConstants.WARN)] + [LogMessage(Html2PdfLogMessageConstant.GRID_TEMPLATE_WAS_NOT_RECOGNISED, LogLevel = LogLevelConstants.WARN + )] + [NUnit.Framework.Test] + public virtual void SubgridTest() { + RunTest("subgridTest"); + } + + [LogMessage(Html2PdfLogMessageConstant.GRID_TEMPLATE_WAS_NOT_RECOGNISED, LogLevel = LogLevelConstants.WARN + )] + [NUnit.Framework.Test] + public virtual void InvalidTemplateColumns() { + RunTest("invalidTemplateColumns"); + } + + [LogMessage(Html2PdfLogMessageConstant.GRID_TEMPLATE_WAS_NOT_RECOGNISED, LogLevel = LogLevelConstants.WARN + )] + [NUnit.Framework.Test] + public virtual void InvalidTemplateRows() { + RunTest("invalidTemplateRows"); + } + + [NUnit.Framework.Test] + public virtual void GridSplitPaddingMarginBorderTest() { + RunTest("gridSplitPaddingMarginBorderTest"); + } + + [NUnit.Framework.Test] + public virtual void GridSplitPaddingMarginBorderTest2() { + RunTest("gridSplitPaddingMarginBorderTest2"); + } + + [NUnit.Framework.Test] + public virtual void GridSplitPaddingMarginBorderTest3() { + RunTest("gridSplitPaddingMarginBorderTest3"); + } + + [NUnit.Framework.Test] + public virtual void GridSplitPaddingMarginBorderTest4() { + RunTest("gridSplitPaddingMarginBorderTest4"); + } + + [NUnit.Framework.Test] + [LogMessage(LayoutLogMessageConstant.ELEMENT_DOES_NOT_FIT_AREA, LogLevel = LogLevelConstants.WARN)] + public virtual void GridSplitPaddingMarginBorderTest5() { + RunTest("gridSplitPaddingMarginBorderTest5"); + } + + [NUnit.Framework.Test] + public virtual void GridSplitPaddingMarginBorderTest6() { + RunTest("gridSplitPaddingMarginBorderTest6"); + } + + [NUnit.Framework.Test] + public virtual void GridSplitPaddingMarginBorderTest7() { + RunTest("gridSplitPaddingMarginBorderTest7"); + } + + [NUnit.Framework.Test] + public virtual void GridSplitPaddingMarginBorderTest8() { + RunTest("gridSplitPaddingMarginBorderTest8"); + } + + private void RunTest(String testName) { + ConvertToPdfAndCompare(testName, SOURCE_FOLDER, DESTINATION_FOLDER, false, new ConverterProperties().SetBaseUri + (SOURCE_FOLDER)); + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/media/page/PageMarginBoxIntegrationTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/media/page/PageMarginBoxIntegrationTest.cs index f9672ceae..f88591068 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/media/page/PageMarginBoxIntegrationTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/media/page/PageMarginBoxIntegrationTest.cs @@ -326,12 +326,8 @@ public virtual void PageMarginFont() { [NUnit.Framework.Test] [LogMessage(iText.IO.Logs.IoLogMessageConstant.CLIP_ELEMENT)] public virtual void TableInsideOfPageMarginNotFittingIntoDedicatedSpace() { - NUnit.Framework.Assert.That(() => { - ConvertToPdfAndCompare("tableInsideOfPageMarginNotFittingIntoDedicatedSpace", sourceFolder, destinationFolder - ); - } - , NUnit.Framework.Throws.InstanceOf()) -; + NUnit.Framework.Assert.Catch(typeof(NullReferenceException), () => ConvertToPdfAndCompare("tableInsideOfPageMarginNotFittingIntoDedicatedSpace" + , sourceFolder, destinationFolder)); } [NUnit.Framework.Test] diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/multicol/ColumnWidthTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/multicol/ColumnWidthTest.cs index 089437e29..afd4199ee 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/multicol/ColumnWidthTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/multicol/ColumnWidthTest.cs @@ -277,6 +277,31 @@ public virtual void ColumnWidthPercentageTest() { RunTest("columnWidthPercentageTest"); } + [NUnit.Framework.Test] + public virtual void BigPaddingsTest() { + RunTest("bigPaddingsTest"); + } + + [NUnit.Framework.Test] + public virtual void BigBordersTest() { + RunTest("bigBordersTest"); + } + + [NUnit.Framework.Test] + public virtual void BigMarginsTest() { + RunTest("bigMarginsTest"); + } + + [NUnit.Framework.Test] + public virtual void BigMargingsPaddingsBordersTest() { + RunTest("bigMargingsPaddingsBordersTest"); + } + + [NUnit.Framework.Test] + public virtual void BigBordersWithoutWidtConstraintTest() { + RunTest("bigBordersWithoutWidtConstraintTest"); + } + private void RunTest(String testName) { ConvertToPdfAndCompare(testName, SOURCE_FOLDER, DESTINATION_FOLDER, false, new ConverterProperties().SetBaseUri (SOURCE_FOLDER)); diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/resolve/func/counter/CssCounterManagerTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/resolve/func/counter/CssCounterManagerTest.cs index 79b6e22e9..68dc11140 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/resolve/func/counter/CssCounterManagerTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/resolve/func/counter/CssCounterManagerTest.cs @@ -87,7 +87,7 @@ public virtual void ResolveTargetCounterTest() { )); NUnit.Framework.Assert.IsNull(manager.ResolveTargetCounter("id", "counter", CounterDigitsGlyphStyle.DEFAULT )); - IElementNode node = new _CssPseudoElementNode_96(null, "name"); + IElementNode node = new _CssPseudoElementNode_95(null, "name"); manager.AddTargetCounterIfRequired(node); NUnit.Framework.Assert.AreEqual("5", manager.ResolveTargetCounter("id", "counter", CounterDigitsGlyphStyle .DEFAULT)); @@ -99,8 +99,8 @@ public virtual void ResolveTargetCounterTest() { .DEFAULT)); } - private sealed class _CssPseudoElementNode_96 : CssPseudoElementNode { - public _CssPseudoElementNode_96(INode baseArg1, String baseArg2) + private sealed class _CssPseudoElementNode_95 : CssPseudoElementNode { + public _CssPseudoElementNode_95(INode baseArg1, String baseArg2) : base(baseArg1, baseArg2) { } @@ -121,7 +121,7 @@ public virtual void ResolveTargetCountersTest() { DEFAULT)); NUnit.Framework.Assert.IsNull(manager.ResolveTargetCounters("id", "counter", ".", CounterDigitsGlyphStyle. DEFAULT)); - IElementNode node = new _CssPseudoElementNode_127(null, "name"); + IElementNode node = new _CssPseudoElementNode_126(null, "name"); manager.AddTargetCountersIfRequired(node); NUnit.Framework.Assert.AreEqual("5", manager.ResolveTargetCounters("id", "counter", ".", CounterDigitsGlyphStyle .DEFAULT)); @@ -140,8 +140,8 @@ public virtual void ResolveTargetCountersTest() { .DEFAULT)); } - private sealed class _CssPseudoElementNode_127 : CssPseudoElementNode { - public _CssPseudoElementNode_127(INode baseArg1, String baseArg2) + private sealed class _CssPseudoElementNode_126 : CssPseudoElementNode { + public _CssPseudoElementNode_126(INode baseArg1, String baseArg2) : base(baseArg1, baseArg2) { } @@ -158,8 +158,8 @@ public virtual void AddTargetCounterIfRequiredTest() { CssCounterManager manager = new CssCounterManager(); NUnit.Framework.Assert.IsNull(manager.ResolveTargetCounter("id1", "counter", CounterDigitsGlyphStyle.DEFAULT )); - IElementNode node1 = new _CssPseudoElementNode_161(null, "name"); - IElementNode node2 = new _CssPseudoElementNode_170(null, "name"); + IElementNode node1 = new _CssPseudoElementNode_160(null, "name"); + IElementNode node2 = new _CssPseudoElementNode_169(null, "name"); IElementNode node3 = new CssPseudoElementNode(null, "name"); manager.AddTargetCounterIfRequired(node1); manager.AddTargetCounterIfRequired(node2); @@ -175,8 +175,8 @@ public virtual void AddTargetCounterIfRequiredTest() { .DEFAULT)); } - private sealed class _CssPseudoElementNode_161 : CssPseudoElementNode { - public _CssPseudoElementNode_161(INode baseArg1, String baseArg2) + private sealed class _CssPseudoElementNode_160 : CssPseudoElementNode { + public _CssPseudoElementNode_160(INode baseArg1, String baseArg2) : base(baseArg1, baseArg2) { } @@ -188,8 +188,8 @@ public override String GetAttribute(String key) { } } - private sealed class _CssPseudoElementNode_170 : CssPseudoElementNode { - public _CssPseudoElementNode_170(INode baseArg1, String baseArg2) + private sealed class _CssPseudoElementNode_169 : CssPseudoElementNode { + public _CssPseudoElementNode_169(INode baseArg1, String baseArg2) : base(baseArg1, baseArg2) { } @@ -270,7 +270,7 @@ public virtual void IncrementCounterTest() { [NUnit.Framework.Test] public virtual void ResolveEveryCounterWithNotDefaultSymbolsTest() { CssCounterManager manager = new CssCounterManager(); - IElementNode node = new _CssPseudoElementNode_272(null, "name"); + IElementNode node = new _CssPseudoElementNode_271(null, "name"); manager.ResetCounter("counter", 3); manager.PushEveryCounterToCounters(node); NUnit.Framework.Assert.AreEqual("III", manager.ResolveCounter("counter", HtmlUtils.ConvertStringCounterGlyphStyleToEnum @@ -290,8 +290,8 @@ public virtual void ResolveEveryCounterWithNotDefaultSymbolsTest() { (CssConstants.UPPER_ROMAN))); } - private sealed class _CssPseudoElementNode_272 : CssPseudoElementNode { - public _CssPseudoElementNode_272(INode baseArg1, String baseArg2) + private sealed class _CssPseudoElementNode_271 : CssPseudoElementNode { + public _CssPseudoElementNode_271(INode baseArg1, String baseArg2) : base(baseArg1, baseArg2) { } diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_backgrounds/BackgroundColorBodyPropagation005Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_backgrounds/BackgroundColorBodyPropagation005Test.cs index c44fc85c0..3f61d2401 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_backgrounds/BackgroundColorBodyPropagation005Test.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_backgrounds/BackgroundColorBodyPropagation005Test.cs @@ -32,11 +32,7 @@ protected internal override String GetHtmlFileName() { [NUnit.Framework.Test] public override void Test() { - NUnit.Framework.Assert.That(() => { - base.Test(); - } - , NUnit.Framework.Throws.InstanceOf()) -; + NUnit.Framework.Assert.Catch(typeof(Exception), () => base.Test()); } } } diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_backgrounds/BackgroundColorRootPropagation001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_backgrounds/BackgroundColorRootPropagation001Test.cs index 6ab0ed91d..e89dd23ee 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_backgrounds/BackgroundColorRootPropagation001Test.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_backgrounds/BackgroundColorRootPropagation001Test.cs @@ -32,11 +32,7 @@ protected internal override String GetHtmlFileName() { [NUnit.Framework.Test] public override void Test() { - NUnit.Framework.Assert.That(() => { - base.Test(); - } - , NUnit.Framework.Throws.InstanceOf()) -; + NUnit.Framework.Assert.Catch(typeof(Exception), () => base.Test()); } } } diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_flexbox/FlexboxColumnRowGap001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_flexbox/FlexboxColumnRowGap001Test.cs index b56defb3c..fbf491c86 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_flexbox/FlexboxColumnRowGap001Test.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_flexbox/FlexboxColumnRowGap001Test.cs @@ -26,7 +26,6 @@ You should have received a copy of the GNU Affero General Public License using iText.Test.Attributes; namespace iText.Html2pdf.Css.W3c.Css_flexbox { - //TODO DEVSIX-7554 change after column-gap is supported //TODO DEVSIX-7616 change after row-gap is supported //TODO DEVSIX-5164 change after align-content: space-around is supported //TODO DEVSIX-5163 change after more complex justify-content values are supported diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_flexbox/FlexboxColumnRowGap002Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_flexbox/FlexboxColumnRowGap002Test.cs index 3f6c4a232..17bcfd217 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_flexbox/FlexboxColumnRowGap002Test.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_flexbox/FlexboxColumnRowGap002Test.cs @@ -26,7 +26,6 @@ You should have received a copy of the GNU Affero General Public License using iText.Test.Attributes; namespace iText.Html2pdf.Css.W3c.Css_flexbox { - //TODO DEVSIX-7554 change after column-gap is supported //TODO DEVSIX-7616 change after row-gap is supported //TODO DEVSIX-5164 change after align-content: flex-start is supported [LogMessage(Html2PdfLogMessageConstant.FLEX_PROPERTY_IS_NOT_SUPPORTED_YET, Count = 6)] diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_flexbox/FlexboxColumnRowGap003Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_flexbox/FlexboxColumnRowGap003Test.cs index a513bb54f..fa1f3dce9 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_flexbox/FlexboxColumnRowGap003Test.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_flexbox/FlexboxColumnRowGap003Test.cs @@ -26,7 +26,6 @@ You should have received a copy of the GNU Affero General Public License using iText.Test.Attributes; namespace iText.Html2pdf.Css.W3c.Css_flexbox { - //TODO DEVSIX-7554 change after column-gap is supported //TODO DEVSIX-7616 change after row-gap is supported //TODO DEVSIX-5164 change after align-content: space-around is supported //TODO DEVSIX-5163 change after more complex justify-content values are supported diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_flexbox/FlexboxColumnRowGap004Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_flexbox/FlexboxColumnRowGap004Test.cs index b77f9b722..75bc1f2bd 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_flexbox/FlexboxColumnRowGap004Test.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_flexbox/FlexboxColumnRowGap004Test.cs @@ -26,7 +26,6 @@ You should have received a copy of the GNU Affero General Public License using iText.Test.Attributes; namespace iText.Html2pdf.Css.W3c.Css_flexbox { - //TODO DEVSIX-7554 change after column-gap is supported //TODO DEVSIX-7616 change after row-gap is supported //TODO DEVSIX-5164 change after align-content: start is supported [LogMessage(Html2PdfLogMessageConstant.FLEX_PROPERTY_IS_NOT_SUPPORTED_YET, Count = 12)] diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/EmptyGridWithinFlexboxTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/EmptyGridWithinFlexboxTest.cs new file mode 100644 index 000000000..849042382 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/EmptyGridWithinFlexboxTest.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid { + public class EmptyGridWithinFlexboxTest : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "empty-grid-within-flexbox.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/GridImportantTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/GridImportantTest.cs new file mode 100644 index 000000000..7204f22ce --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/GridImportantTest.cs @@ -0,0 +1,35 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Html2pdf.Logs; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid { + [LogMessage(Html2PdfLogMessageConstant.NO_WORKER_FOUND_FOR_TAG, Count = 3)] + public class GridImportantTest : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-important.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/GridItemNonAutoHeightStretch001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/GridItemNonAutoHeightStretch001Test.cs new file mode 100644 index 000000000..a8ece9104 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/GridItemNonAutoHeightStretch001Test.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid { + public class GridItemNonAutoHeightStretch001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-item-non-auto-height-stretch-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/GridItemPercentageQuirk001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/GridItemPercentageQuirk001Test.cs new file mode 100644 index 000000000..61416f754 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/GridItemPercentageQuirk001Test.cs @@ -0,0 +1,35 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Html2pdf.Logs; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid { + [LogMessage(Html2PdfLogMessageConstant.NO_WORKER_FOUND_FOR_TAG)] + public class GridItemPercentageQuirk001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-item-percentage-quirk-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/GridTracksFractionalFrTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/GridTracksFractionalFrTest.cs new file mode 100644 index 000000000..1c5f75831 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/GridTracksFractionalFrTest.cs @@ -0,0 +1,35 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Html2pdf.Logs; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid { + [LogMessage(Html2PdfLogMessageConstant.NO_WORKER_FOUND_FOR_TAG, Count = 3)] + public class GridTracksFractionalFrTest : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-tracks-fractional-fr.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/GridTracksStretchedWithDifferentFlexFactorsSumTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/GridTracksStretchedWithDifferentFlexFactorsSumTest.cs new file mode 100644 index 000000000..9acec018c --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/GridTracksStretchedWithDifferentFlexFactorsSumTest.cs @@ -0,0 +1,35 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Html2pdf.Logs; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid { + [LogMessage(Html2PdfLogMessageConstant.NO_WORKER_FOUND_FOR_TAG, Count = 3)] + public class GridTracksStretchedWithDifferentFlexFactorsSumTest : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "tracks-stretched-diff-flex-factors-sum.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/GridWithinFlexboxDefiniteChangeTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/GridWithinFlexboxDefiniteChangeTest.cs new file mode 100644 index 000000000..babdde109 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/GridWithinFlexboxDefiniteChangeTest.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid { + public class GridWithinFlexboxDefiniteChangeTest : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-within-flexbox-definite-change.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/MinSizeAutoOverflowClipTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/MinSizeAutoOverflowClipTest.cs new file mode 100644 index 000000000..8edb3e282 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/MinSizeAutoOverflowClipTest.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid { + public class MinSizeAutoOverflowClipTest : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "min-size-auto-overflow-clip.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/StretchGridItemCheckboxInputTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/StretchGridItemCheckboxInputTest.cs new file mode 100644 index 000000000..98fbeaf7d --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/StretchGridItemCheckboxInputTest.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid { + public class StretchGridItemCheckboxInputTest : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "stretch-grid-item-checkbox-input.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/StretchGridItemRadioInputTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/StretchGridItemRadioInputTest.cs new file mode 100644 index 000000000..085c73d02 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/StretchGridItemRadioInputTest.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid { + public class StretchGridItemRadioInputTest : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "stretch-grid-item-radio-input.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/AbsolutePositioningDefiniteSizes001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/AbsolutePositioningDefiniteSizes001Test.cs new file mode 100644 index 000000000..28581328f --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/AbsolutePositioningDefiniteSizes001Test.cs @@ -0,0 +1,35 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Html2pdf.Logs; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Abspos { + [LogMessage(Html2PdfLogMessageConstant.NO_WORKER_FOUND_FOR_TAG, Count = 4)] + public class AbsolutePositioningDefiniteSizes001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "absolute-positioning-definite-sizes-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/AbsolutePositioningGridContainerParent001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/AbsolutePositioningGridContainerParent001Test.cs new file mode 100644 index 000000000..d12d68a71 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/AbsolutePositioningGridContainerParent001Test.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Abspos { + public class AbsolutePositioningGridContainerParent001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "abs-pos-grid-container-parent-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/DescendantStaticPosition001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/DescendantStaticPosition001Test.cs new file mode 100644 index 000000000..74e49fb76 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/DescendantStaticPosition001Test.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Abspos { + public class DescendantStaticPosition001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "descendant-static-position-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/DescendantStaticPosition002Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/DescendantStaticPosition002Test.cs new file mode 100644 index 000000000..e8fb8029f --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/DescendantStaticPosition002Test.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Abspos { + public class DescendantStaticPosition002Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "descendant-static-position-002.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposAlignSelf001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposAlignSelf001Test.cs new file mode 100644 index 000000000..d076a49b1 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposAlignSelf001Test.cs @@ -0,0 +1,33 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Abspos { + //TODO DEVSIX-5166 change after align-self is supported is supported + public class GridAbsposStaticposAlignSelf001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-abspos-staticpos-align-self-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposAlignSelfImg001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposAlignSelfImg001Test.cs new file mode 100644 index 000000000..efde90161 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposAlignSelfImg001Test.cs @@ -0,0 +1,35 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Abspos { + //TODO DEVSIX-5166 change after align-self is supported + [LogMessage(iText.IO.Logs.IoLogMessageConstant.OCCUPIED_AREA_HAS_NOT_BEEN_INITIALIZED, Count = 26)] + public class GridAbsposStaticposAlignSelfImg001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-abspos-staticpos-align-self-img-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposAlignSelfSafe001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposAlignSelfSafe001Test.cs new file mode 100644 index 000000000..3e8963679 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposAlignSelfSafe001Test.cs @@ -0,0 +1,33 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Abspos { + //TODO DEVSIX-5166 change after align-self is supported + public class GridAbsposStaticposAlignSelfSafe001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-abspos-staticpos-align-self-safe-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposAlignSelfVertWM001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposAlignSelfVertWM001Test.cs new file mode 100644 index 000000000..394cc8261 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposAlignSelfVertWM001Test.cs @@ -0,0 +1,33 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Abspos { + //TODO DEVSIX-5166 change after align-self is supported + public class GridAbsposStaticposAlignSelfVertWM001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-abspos-staticpos-align-self-vertWM-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposAlignSelfVertWM004Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposAlignSelfVertWM004Test.cs new file mode 100644 index 000000000..6fc1d556e --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposAlignSelfVertWM004Test.cs @@ -0,0 +1,33 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Abspos { + //TODO DEVSIX-5166 change after align-self is supported + public class GridAbsposStaticposAlignSelfVertWM004Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-abspos-staticpos-align-self-vertWM-004.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposJustifySelf001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposJustifySelf001Test.cs new file mode 100644 index 000000000..4076c737a --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposJustifySelf001Test.cs @@ -0,0 +1,33 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Abspos { + //TODO DEVSIX-5163: Support more justify-content values + public class GridAbsposStaticposJustifySelf001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-abspos-staticpos-justify-self-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposJustifySelfImg001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposJustifySelfImg001Test.cs new file mode 100644 index 000000000..bc183b06a --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposJustifySelfImg001Test.cs @@ -0,0 +1,35 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Abspos { + //TODO DEVSIX-5163: Support more justify-content values + [LogMessage(iText.IO.Logs.IoLogMessageConstant.OCCUPIED_AREA_HAS_NOT_BEEN_INITIALIZED, Count = 26)] + public class GridAbsposStaticposJustifySelfImg001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-abspos-staticpos-justify-self-img-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposJustifySelfImg002Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposJustifySelfImg002Test.cs new file mode 100644 index 000000000..1744ac045 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposJustifySelfImg002Test.cs @@ -0,0 +1,35 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Abspos { + //TODO DEVSIX-5163: Support more justify-content values + [LogMessage(iText.IO.Logs.IoLogMessageConstant.OCCUPIED_AREA_HAS_NOT_BEEN_INITIALIZED, Count = 26)] + public class GridAbsposStaticposJustifySelfImg002Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-abspos-staticpos-justify-self-img-002.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposJustifySelfRtl001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposJustifySelfRtl001Test.cs new file mode 100644 index 000000000..b46da13f2 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposJustifySelfRtl001Test.cs @@ -0,0 +1,33 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Abspos { + //TODO DEVSIX-5163: Support more justify-content values + public class GridAbsposStaticposJustifySelfRtl001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-abspos-staticpos-justify-self-rtl-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposJustifySelfRtl004Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposJustifySelfRtl004Test.cs new file mode 100644 index 000000000..ee583b337 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposJustifySelfRtl004Test.cs @@ -0,0 +1,33 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Abspos { + //TODO DEVSIX-5163: Support more justify-content values + public class GridAbsposStaticposJustifySelfRtl004Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-abspos-staticpos-justify-self-rtl-004.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposJustifySelfVertWM001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposJustifySelfVertWM001Test.cs new file mode 100644 index 000000000..41035ba3b --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridAbsposStaticposJustifySelfVertWM001Test.cs @@ -0,0 +1,33 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Abspos { + //TODO DEVSIX-5163: Support more justify-content values + public class GridAbsposStaticposJustifySelfVertWM001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-abspos-staticpos-justify-self-vertWM-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridPaintPositionedChildren001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridPaintPositionedChildren001Test.cs new file mode 100644 index 000000000..e037f69df --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridPaintPositionedChildren001Test.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Abspos { + public class GridPaintPositionedChildren001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-paint-positioned-children-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridPositionedItemDynamicChange001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridPositionedItemDynamicChange001Test.cs new file mode 100644 index 000000000..15663dedf --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridPositionedItemDynamicChange001Test.cs @@ -0,0 +1,35 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Html2pdf.Logs; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Abspos { + [LogMessage(Html2PdfLogMessageConstant.NO_WORKER_FOUND_FOR_TAG)] + public class GridPositionedItemDynamicChange001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-positioned-item-dynamic-change-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridPositionedItemsBackground001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridPositionedItemsBackground001Test.cs new file mode 100644 index 000000000..edcb8eef6 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/GridPositionedItemsBackground001Test.cs @@ -0,0 +1,34 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Abspos { + [LogMessage(iText.IO.Logs.IoLogMessageConstant.OCCUPIED_AREA_HAS_NOT_BEEN_INITIALIZED, Count = 4)] + public class GridPositionedItemsBackground001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-positioned-items-background-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/OrthogonalPositionedGridItems001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/OrthogonalPositionedGridItems001Test.cs new file mode 100644 index 000000000..53348409b --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/OrthogonalPositionedGridItems001Test.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Abspos { + public class OrthogonalPositionedGridItems001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "orthogonal-positioned-grid-items-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/OrthogonalPositionedGridItems017Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/OrthogonalPositionedGridItems017Test.cs new file mode 100644 index 000000000..9a098ca21 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/OrthogonalPositionedGridItems017Test.cs @@ -0,0 +1,34 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Abspos { + [LogMessage(iText.IO.Logs.IoLogMessageConstant.OCCUPIED_AREA_HAS_NOT_BEEN_INITIALIZED, Count = 4)] + public class OrthogonalPositionedGridItems017Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "orthogonal-positioned-grid-items-017.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/PositionedGridItems001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/PositionedGridItems001Test.cs new file mode 100644 index 000000000..23368139b --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/PositionedGridItems001Test.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Abspos { + public class PositionedGridItems001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "positioned-grid-items-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/PositionedGridItems004Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/PositionedGridItems004Test.cs new file mode 100644 index 000000000..06f25e1a2 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/PositionedGridItems004Test.cs @@ -0,0 +1,34 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Abspos { + [LogMessage(iText.IO.Logs.IoLogMessageConstant.OCCUPIED_AREA_HAS_NOT_BEEN_INITIALIZED, Count = 4)] + public class PositionedGridItems004Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "positioned-grid-items-004.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/PositionedGridItems025Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/PositionedGridItems025Test.cs new file mode 100644 index 000000000..0337f2f19 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/PositionedGridItems025Test.cs @@ -0,0 +1,34 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Abspos { + [LogMessage(iText.IO.Logs.IoLogMessageConstant.OCCUPIED_AREA_HAS_NOT_BEEN_INITIALIZED, Count = 2)] + public class PositionedGridItems025Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "positioned-grid-items-025.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/PositionedGridItemsNegativeIndices001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/PositionedGridItemsNegativeIndices001Test.cs new file mode 100644 index 000000000..7ef7db61e --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/abspos/PositionedGridItemsNegativeIndices001Test.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Abspos { + public class PositionedGridItemsNegativeIndices001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "positioned-grid-items-negative-indices-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridAlignBaseline001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridAlignBaseline001Test.cs new file mode 100644 index 000000000..652ef75aa --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridAlignBaseline001Test.cs @@ -0,0 +1,35 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Html2pdf.Logs; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Alignment { + [LogMessage(Html2PdfLogMessageConstant.NO_WORKER_FOUND_FOR_TAG, Count = 3)] + public class GridAlignBaseline001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-align-baseline-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridAlignBaselineGrid001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridAlignBaselineGrid001Test.cs new file mode 100644 index 000000000..2e50830df --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridAlignBaselineGrid001Test.cs @@ -0,0 +1,35 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Html2pdf.Logs; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Alignment { + [LogMessage(Html2PdfLogMessageConstant.NO_WORKER_FOUND_FOR_TAG, Count = 3)] + public class GridAlignBaselineGrid001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-align-baseline-grid-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridAlignBaselineMulticol001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridAlignBaselineMulticol001Test.cs new file mode 100644 index 000000000..0fbdb68d0 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridAlignBaselineMulticol001Test.cs @@ -0,0 +1,35 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Html2pdf.Logs; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Alignment { + [LogMessage(Html2PdfLogMessageConstant.NO_WORKER_FOUND_FOR_TAG, Count = 3)] + public class GridAlignBaselineMulticol001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-align-baseline-multicol-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridAlignBaselineOverflow001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridAlignBaselineOverflow001Test.cs new file mode 100644 index 000000000..65eb3dee9 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridAlignBaselineOverflow001Test.cs @@ -0,0 +1,35 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Html2pdf.Logs; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Alignment { + [LogMessage(Html2PdfLogMessageConstant.NO_WORKER_FOUND_FOR_TAG, Count = 3)] + public class GridAlignBaselineOverflow001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-align-baseline-overflow-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridAlignBaselineVerticalTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridAlignBaselineVerticalTest.cs new file mode 100644 index 000000000..2e1712188 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridAlignBaselineVerticalTest.cs @@ -0,0 +1,35 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Html2pdf.Logs; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Alignment { + [LogMessage(Html2PdfLogMessageConstant.NO_WORKER_FOUND_FOR_TAG, Count = 5)] + public class GridAlignBaselineVerticalTest : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-align-baseline-vertical.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridAlignContentDistributionTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridAlignContentDistributionTest.cs new file mode 100644 index 000000000..fdda7b21b --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridAlignContentDistributionTest.cs @@ -0,0 +1,35 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Html2pdf.Logs; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Alignment { + [LogMessage(Html2PdfLogMessageConstant.NO_WORKER_FOUND_FOR_TAG, Count = 4)] + public class GridAlignContentDistributionTest : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-align-content-distribution.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridAlignContentTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridAlignContentTest.cs new file mode 100644 index 000000000..0e9e43a00 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridAlignContentTest.cs @@ -0,0 +1,35 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Html2pdf.Logs; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Alignment { + [LogMessage(Html2PdfLogMessageConstant.NO_WORKER_FOUND_FOR_TAG, Count = 4)] + public class GridAlignContentTest : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-align-content.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridAlignContentVerticalLrTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridAlignContentVerticalLrTest.cs new file mode 100644 index 000000000..0b2d09099 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridAlignContentVerticalLrTest.cs @@ -0,0 +1,35 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Html2pdf.Logs; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Alignment { + [LogMessage(Html2PdfLogMessageConstant.NO_WORKER_FOUND_FOR_TAG, Count = 4)] + public class GridAlignContentVerticalLrTest : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-align-content-vertical-lr.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridAlignContentVerticalRlTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridAlignContentVerticalRlTest.cs new file mode 100644 index 000000000..4880be5e6 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridAlignContentVerticalRlTest.cs @@ -0,0 +1,35 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Html2pdf.Logs; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Alignment { + [LogMessage(Html2PdfLogMessageConstant.NO_WORKER_FOUND_FOR_TAG, Count = 4)] + public class GridAlignContentVerticalRlTest : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-align-content-vertical-rl.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridContentDistribution001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridContentDistribution001Test.cs new file mode 100644 index 000000000..6289209f9 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridContentDistribution001Test.cs @@ -0,0 +1,33 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Alignment { + //TODO DEVSIX-5163 Support more complex justify-content values + public class GridContentDistribution001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-content-distribution-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridContentDistribution015Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridContentDistribution015Test.cs new file mode 100644 index 000000000..ad72dff50 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridContentDistribution015Test.cs @@ -0,0 +1,33 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Alignment { + //TODO DEVSIX-5163 Support more complex justify-content values + public class GridContentDistribution015Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-content-distribution-015.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridGutters001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridGutters001Test.cs new file mode 100644 index 000000000..c15fdb148 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridGutters001Test.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Alignment { + public class GridGutters001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-gutters-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridGutters005Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridGutters005Test.cs new file mode 100644 index 000000000..69a9e3ac7 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridGutters005Test.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Alignment { + public class GridGutters005Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-gutters-005.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridItemAutoMargins001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridItemAutoMargins001Test.cs new file mode 100644 index 000000000..e942738d3 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/alignment/GridItemAutoMargins001Test.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Alignment { + public class GridItemAutoMargins001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-item-auto-margins-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridAutoRepeatMaxSize002Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridAutoRepeatMaxSize002Test.cs new file mode 100644 index 000000000..dac6f45d9 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridAutoRepeatMaxSize002Test.cs @@ -0,0 +1,35 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Html2pdf.Logs; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Grid_definition { + [LogMessage(Html2PdfLogMessageConstant.NO_WORKER_FOUND_FOR_TAG, Count = 3)] + public class GridAutoRepeatMaxSize002Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-auto-repeat-max-size-002.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridAutoRepeatMinMaxSize001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridAutoRepeatMinMaxSize001Test.cs new file mode 100644 index 000000000..2e98da2b2 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridAutoRepeatMinMaxSize001Test.cs @@ -0,0 +1,35 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Html2pdf.Logs; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Grid_definition { + [LogMessage(Html2PdfLogMessageConstant.NO_WORKER_FOUND_FOR_TAG, Count = 3)] + public class GridAutoRepeatMinMaxSize001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-auto-repeat-min-max-size-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridAutoRepeatMinSize001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridAutoRepeatMinSize001Test.cs new file mode 100644 index 000000000..2fe93aba2 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridAutoRepeatMinSize001Test.cs @@ -0,0 +1,35 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Html2pdf.Logs; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Grid_definition { + [LogMessage(Html2PdfLogMessageConstant.NO_WORKER_FOUND_FOR_TAG, Count = 3)] + public class GridAutoRepeatMinSize001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-auto-repeat-min-size-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridAutoRepeatMinmaxTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridAutoRepeatMinmaxTest.cs new file mode 100644 index 000000000..478077d26 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridAutoRepeatMinmaxTest.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Grid_definition { + public class GridAutoRepeatMinmaxTest : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-auto-repeat-minmax.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridAutoRepeatMultipleValues001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridAutoRepeatMultipleValues001Test.cs new file mode 100644 index 000000000..b6076c04f --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridAutoRepeatMultipleValues001Test.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Grid_definition { + public class GridAutoRepeatMultipleValues001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-auto-repeat-multiple-values-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridAutoRepeatPositionedContainer001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridAutoRepeatPositionedContainer001Test.cs new file mode 100644 index 000000000..5f8e50219 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridAutoRepeatPositionedContainer001Test.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Grid_definition { + public class GridAutoRepeatPositionedContainer001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "auto-repeat-pos-container-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridLayoutBasicTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridLayoutBasicTest.cs new file mode 100644 index 000000000..8a68ff1eb --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridLayoutBasicTest.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Grid_definition { + public class GridLayoutBasicTest : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-layout-basic.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridLayoutRepeatNotationTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridLayoutRepeatNotationTest.cs new file mode 100644 index 000000000..250a929ee --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridLayoutRepeatNotationTest.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Grid_definition { + public class GridLayoutRepeatNotationTest : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-layout-repeat-notation.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridSupportNamedGridLines002Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridSupportNamedGridLines002Test.cs new file mode 100644 index 000000000..aabf46205 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridSupportNamedGridLines002Test.cs @@ -0,0 +1,35 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Html2pdf.Logs; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Grid_definition { + [LogMessage(Html2PdfLogMessageConstant.LINENAMES_ARE_NOT_SUPPORTED_WITHIN_AUTO_REPEAT, Count = 38)] + public class GridSupportNamedGridLines002Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-support-named-grid-lines-002.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridTemplateColumnsFitContent001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridTemplateColumnsFitContent001Test.cs new file mode 100644 index 000000000..398a224e4 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridTemplateColumnsFitContent001Test.cs @@ -0,0 +1,34 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Grid_definition { + [LogMessage(iText.IO.Logs.IoLogMessageConstant.OCCUPIED_AREA_HAS_NOT_BEEN_INITIALIZED, Count = 84)] + public class GridTemplateColumnsFitContent001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-template-columns-fit-content-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridTemplateRowsFitContent001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridTemplateRowsFitContent001Test.cs new file mode 100644 index 000000000..e2870f0ca --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_definition/GridTemplateRowsFitContent001Test.cs @@ -0,0 +1,34 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Grid_definition { + [LogMessage(iText.IO.Logs.IoLogMessageConstant.OCCUPIED_AREA_HAS_NOT_BEEN_INITIALIZED, Count = 84)] + public class GridTemplateRowsFitContent001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-template-rows-fit-content-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_items/GridImgItemPercentMaxHeight001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_items/GridImgItemPercentMaxHeight001Test.cs new file mode 100644 index 000000000..6202523a1 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_items/GridImgItemPercentMaxHeight001Test.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Grid_items { + public class GridImgItemPercentMaxHeight001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-img-item-percent-max-height-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_items/GridItemContainingBlock001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_items/GridItemContainingBlock001Test.cs new file mode 100644 index 000000000..5afb4f43e --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_items/GridItemContainingBlock001Test.cs @@ -0,0 +1,33 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Grid_items { + //TODO DEVSIX-8376 Support % in grid layout? + public class GridItemContainingBlock001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-item-containing-block-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_items/GridItemFlexContainer001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_items/GridItemFlexContainer001Test.cs new file mode 100644 index 000000000..7bb1bc318 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_items/GridItemFlexContainer001Test.cs @@ -0,0 +1,35 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Html2pdf.Logs; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Grid_items { + [LogMessage(Html2PdfLogMessageConstant.NO_WORKER_FOUND_FOR_TAG, Count = 4)] + public class GridItemFlexContainer001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-item-flex-container-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_items/GridItemOverflowAutoMaxHeightPercentageTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_items/GridItemOverflowAutoMaxHeightPercentageTest.cs new file mode 100644 index 000000000..ea7b5c9fc --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_items/GridItemOverflowAutoMaxHeightPercentageTest.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Grid_items { + public class GridItemOverflowAutoMaxHeightPercentageTest : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "overflow-auto-max-height-percentage.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_items/GridMinimumSizeGridItems001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_items/GridMinimumSizeGridItems001Test.cs new file mode 100644 index 000000000..ae854e548 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_items/GridMinimumSizeGridItems001Test.cs @@ -0,0 +1,36 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Html2pdf.Logs; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Grid_items { + //TODO DEVSIX-2449 z-index is not supported + [LogMessage(Html2PdfLogMessageConstant.ELEMENT_DOES_NOT_FIT_CURRENT_AREA)] + public class GridMinimumSizeGridItems001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-minimum-size-grid-items-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_items/GridMinimumSizeGridItems006Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_items/GridMinimumSizeGridItems006Test.cs new file mode 100644 index 000000000..43402d73a --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_items/GridMinimumSizeGridItems006Test.cs @@ -0,0 +1,36 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Html2pdf.Logs; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Grid_items { + //TODO DEVSIX-2449 z-index is not supported + [LogMessage(Html2PdfLogMessageConstant.ELEMENT_DOES_NOT_FIT_CURRENT_AREA)] + public class GridMinimumSizeGridItems006Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-minimum-size-grid-items-006.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_items/GridOrderPropertyAutoPlacement001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_items/GridOrderPropertyAutoPlacement001Test.cs new file mode 100644 index 000000000..1250e8804 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_items/GridOrderPropertyAutoPlacement001Test.cs @@ -0,0 +1,35 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Grid_items { + //TODO DEVSIX-2449 z-index is not supported + //TODO DEVSIX-5163 Support more complex justify-content values + //TODO DEVSIX-5164 change after align-content is supported + public class GridOrderPropertyAutoPlacement001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-order-property-auto-placement-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_items/TableWithInfiniteMaxIntrinsicWidthTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_items/TableWithInfiniteMaxIntrinsicWidthTest.cs new file mode 100644 index 000000000..0f3d62ecf --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_items/TableWithInfiniteMaxIntrinsicWidthTest.cs @@ -0,0 +1,35 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Grid_items { + [LogMessage(iText.IO.Logs.IoLogMessageConstant.TABLE_WIDTH_IS_MORE_THAN_EXPECTED_DUE_TO_MIN_WIDTH, Count = + 9)] + public class TableWithInfiniteMaxIntrinsicWidthTest : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "table-with-infinite-max-intrinsic-width.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_model/ColumnPropertyShouldNotApplyOnGridContainer001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_model/ColumnPropertyShouldNotApplyOnGridContainer001Test.cs new file mode 100644 index 000000000..768231140 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_model/ColumnPropertyShouldNotApplyOnGridContainer001Test.cs @@ -0,0 +1,33 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Grid_model { + //TODO DEVSIX-2449 z-index is not supported + public class ColumnPropertyShouldNotApplyOnGridContainer001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "display-grid.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_model/GridContainerIgnoresFirstLetter002Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_model/GridContainerIgnoresFirstLetter002Test.cs new file mode 100644 index 000000000..4eb484376 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_model/GridContainerIgnoresFirstLetter002Test.cs @@ -0,0 +1,33 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Grid_model { + //TODO DEVSIX-2449 z-index is not supported + public class GridContainerIgnoresFirstLetter002Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-container-ignores-first-letter-002.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_model/GridFloat001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_model/GridFloat001Test.cs new file mode 100644 index 000000000..9dc31adf1 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_model/GridFloat001Test.cs @@ -0,0 +1,33 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Grid_model { + //TODO DEVSIX-2449 z-index is not supported + public class GridFloat001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-float-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_model/GridFloat002Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_model/GridFloat002Test.cs new file mode 100644 index 000000000..7cab71241 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_model/GridFloat002Test.cs @@ -0,0 +1,36 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; +using iText.Html2pdf.Logs; +using iText.Test.Attributes; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Grid_model { + //TODO DEVSIX-2449 z-index is not supported + [LogMessage(Html2PdfLogMessageConstant.NO_WORKER_FOUND_FOR_TAG, Count = 3)] + public class GridFloat002Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-float-002.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_model/GridFloatsNoIntrude001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_model/GridFloatsNoIntrude001Test.cs new file mode 100644 index 000000000..926f7e654 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_model/GridFloatsNoIntrude001Test.cs @@ -0,0 +1,33 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Grid_model { + //TODO DEVSIX-2449 z-index is not supported + public class GridFloatsNoIntrude001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-floats-no-intrude-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_model/GridMarginsNoCollapse001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_model/GridMarginsNoCollapse001Test.cs new file mode 100644 index 000000000..4a19865b7 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_model/GridMarginsNoCollapse001Test.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Grid_model { + public class GridMarginsNoCollapse001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-margins-no-collapse-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_model/GridOverflowPadding001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_model/GridOverflowPadding001Test.cs new file mode 100644 index 000000000..4b8f4a67d --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/grid_model/GridOverflowPadding001Test.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Grid_model { + public class GridOverflowPadding001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-overflow-padding-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/implicit_grids/GridSupportGridAutoColumnsRows001Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/implicit_grids/GridSupportGridAutoColumnsRows001Test.cs new file mode 100644 index 000000000..f80b62d98 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/implicit_grids/GridSupportGridAutoColumnsRows001Test.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Implicit_grids { + public class GridSupportGridAutoColumnsRows001Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-support-grid-auto-columns-rows-001.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/implicit_grids/GridSupportGridAutoColumnsRows002Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/implicit_grids/GridSupportGridAutoColumnsRows002Test.cs new file mode 100644 index 000000000..cc411a63d --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/implicit_grids/GridSupportGridAutoColumnsRows002Test.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Implicit_grids { + public class GridSupportGridAutoColumnsRows002Test : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-support-grid-auto-columns-rows-002.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/placement/GridLayoutGridSpanTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/placement/GridLayoutGridSpanTest.cs new file mode 100644 index 000000000..e1741a011 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/placement/GridLayoutGridSpanTest.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Placement { + public class GridLayoutGridSpanTest : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-layout-grid-span.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/placement/GridLayoutLinesShorthandsTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/placement/GridLayoutLinesShorthandsTest.cs new file mode 100644 index 000000000..e1d1d29c8 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/placement/GridLayoutLinesShorthandsTest.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Placement { + public class GridLayoutLinesShorthandsTest : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-layout-lines-shorthands.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/placement/GridLayoutLinesTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/placement/GridLayoutLinesTest.cs new file mode 100644 index 000000000..4b3843850 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/placement/GridLayoutLinesTest.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Placement { + public class GridLayoutLinesTest : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-layout-lines.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/placement/GridLayoutPlacementShorthandsTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/placement/GridLayoutPlacementShorthandsTest.cs new file mode 100644 index 000000000..a792fc96e --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_grid/placement/GridLayoutPlacementShorthandsTest.cs @@ -0,0 +1,32 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using iText.Html2pdf.Css.W3c; + +namespace iText.Html2pdf.Css.W3c.Css_grid.Placement { + public class GridLayoutPlacementShorthandsTest : W3CCssTest { + protected internal override String GetHtmlFileName() { + return "grid-layout-placement-shorthands.html"; + } + } +} diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_multicol/AsColumnFlexItemTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_multicol/AsColumnFlexItemTest.cs index ae51467c8..630a88d8a 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_multicol/AsColumnFlexItemTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_multicol/AsColumnFlexItemTest.cs @@ -22,10 +22,8 @@ You should have received a copy of the GNU Affero General Public License */ using System; using iText.Html2pdf.Css.W3c; -using iText.Test.Attributes; namespace iText.Html2pdf.Css.W3c.Css_multicol { - [LogMessage(iText.IO.Logs.IoLogMessageConstant.RECTANGLE_HAS_NEGATIVE_SIZE)] public class AsColumnFlexItemTest : W3CCssTest { protected internal override String GetHtmlFileName() { return "as-column-flex-item.html"; diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_multicol/MulticolSpanAll008Test.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_multicol/MulticolSpanAll008Test.cs index c8103e369..66c34ca52 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_multicol/MulticolSpanAll008Test.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/css/w3c/css_multicol/MulticolSpanAll008Test.cs @@ -25,7 +25,7 @@ You should have received a copy of the GNU Affero General Public License using iText.Test.Attributes; namespace iText.Html2pdf.Css.W3c.Css_multicol { - [LogMessage(iText.IO.Logs.IoLogMessageConstant.TYPOGRAPHY_NOT_FOUND, Count = 5)] + [LogMessage(iText.IO.Logs.IoLogMessageConstant.TYPOGRAPHY_NOT_FOUND, Count = 9)] public class MulticolSpanAll008Test : W3CCssTest { protected internal override String GetHtmlFileName() { return "multicol-span-all-008.html"; diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/element/TableTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/element/TableTest.cs index 9e12d4b1c..554e5a8b8 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/element/TableTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/element/TableTest.cs @@ -506,12 +506,9 @@ public virtual void TableRowAndCellBackgroundColorConflictTest() { [NUnit.Framework.Test] public virtual void CollapsedBorderWithWrongRowspanTableTest() { - NUnit.Framework.Assert.That(() => { - // TODO DEVSIX-5036 - RunTest("collapsedBorderWithWrongRowspanTable", false, new PageSize(PageSize.A5).Rotate()); - } - , NUnit.Framework.Throws.InstanceOf()) -; + // TODO DEVSIX-5036 + NUnit.Framework.Assert.Catch(typeof(Exception), () => RunTest("collapsedBorderWithWrongRowspanTable", false + , new PageSize(PageSize.A5).Rotate())); } [NUnit.Framework.Test] @@ -549,11 +546,9 @@ public virtual void TagsFlushingErrorWhenConvertedFromHtmlTest() { foreach (IElement element in elements) { document.Add((IBlockElement)element); } - NUnit.Framework.Assert.That(() => { - document.Close(); - } - , NUnit.Framework.Throws.InstanceOf().With.Message.EqualTo("Tag structure flushing failed: it might be corrupted.")) -; + Exception exception = NUnit.Framework.Assert.Catch(typeof(PdfException), () => document.Close()); + NUnit.Framework.Assert.AreEqual("Tag structure flushing failed: it might be corrupted.", exception.Message + ); } [NUnit.Framework.Test] diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/element/TaggedPdfFormTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/element/TaggedPdfFormTest.cs index f9d4c37b2..586bb5f99 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/element/TaggedPdfFormTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/element/TaggedPdfFormTest.cs @@ -100,11 +100,10 @@ public virtual void FieldSetFormTagged() { [NUnit.Framework.Test] [NUnit.Framework.Ignore("DEVSIX-4601 exception is thrown on \"convert tagged PDF with acroform\" stage")] public virtual void InputFormPrematureFlush() { - NUnit.Framework.Assert.That(() => { - ConvertToPdfAcroformFlattenAndCompare("inputFormPrematureFlush", sourceFolder, destinationFolder, true); - } - , NUnit.Framework.Throws.InstanceOf().With.Message.EqualTo(KernelExceptionMessageConstant.TAG_STRUCTURE_FLUSHING_FAILED_IT_MIGHT_BE_CORRUPTED)) -; + Exception exception = NUnit.Framework.Assert.Catch(typeof(PdfException), () => ConvertToPdfAcroformFlattenAndCompare + ("inputFormPrematureFlush", sourceFolder, destinationFolder, true)); + NUnit.Framework.Assert.AreEqual(KernelExceptionMessageConstant.TAG_STRUCTURE_FLUSHING_FAILED_IT_MIGHT_BE_CORRUPTED + , exception); } } } diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/events/PdfHtmlAcroformDocumentEventTest.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/events/PdfHtmlAcroformDocumentEventTest.cs index c7fd3104a..de02c13e0 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/events/PdfHtmlAcroformDocumentEventTest.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/events/PdfHtmlAcroformDocumentEventTest.cs @@ -72,14 +72,14 @@ private PdfDocument AddEventHandlersToPdfDocument(String pdfOutput, ConverterPro , converterProperties); PdfWriter writer = new PdfWriter(pdfStream); PdfDocument pdfDocument = new PdfDocument(writer); - iText.Kernel.Events.IEventHandler handler = new _IEventHandler_95(elements, footer); + iText.Kernel.Events.IEventHandler handler = new _IEventHandler_94(elements, footer); pdfDocument.AddEventHandler(PdfDocumentEvent.START_PAGE, handler); pdfDocument.AddEventHandler(PdfDocumentEvent.END_PAGE, handler); return pdfDocument; } - private sealed class _IEventHandler_95 : iText.Kernel.Events.IEventHandler { - public _IEventHandler_95(IList elements, IList footer) { + private sealed class _IEventHandler_94 : iText.Kernel.Events.IEventHandler { + public _IEventHandler_94(IList elements, IList footer) { this.elements = elements; this.footer = footer; } diff --git a/itext.tests/itext.html2pdf.tests/itext/html2pdf/utils/ImageSizeMeasuringListener.cs b/itext.tests/itext.html2pdf.tests/itext/html2pdf/utils/ImageSizeMeasuringListener.cs index 90b6b52e6..7ea68f641 100644 --- a/itext.tests/itext.html2pdf.tests/itext/html2pdf/utils/ImageSizeMeasuringListener.cs +++ b/itext.tests/itext.html2pdf.tests/itext/html2pdf/utils/ImageSizeMeasuringListener.cs @@ -31,11 +31,15 @@ You should have received a copy of the GNU Affero General Public License namespace iText.Html2pdf.Utils { public class ImageSizeMeasuringListener : IEventListener { +//\cond DO_NOT_DOCUMENT internal Rectangle cropbox; +//\endcond public Rectangle bbox; +//\cond DO_NOT_DOCUMENT internal int page; +//\endcond public ImageSizeMeasuringListener(int page) { if (cropbox == null) { diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontFaceTest/bolderLighterFontWeightTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontFaceTest/bolderLighterFontWeightTest.html new file mode 100644 index 000000000..de266c08a --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontFaceTest/bolderLighterFontWeightTest.html @@ -0,0 +1,12 @@ + + + + + + +

To test fon-weight resolution in @font-face, the divs below have all been assigned the same font-family, but with a different weight. In the font-face declarations, the weights will point to different font files

+
1. Droid Serif Regular
+
2. Droid Serif Bold
+ + + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontFaceTest/cmp_bolderLighterFontWeightTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontFaceTest/cmp_bolderLighterFontWeightTest.pdf new file mode 100644 index 000000000..aeb46fba9 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontFaceTest/cmp_bolderLighterFontWeightTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontFamilyFallbackTest/glyphsNotFound.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontFamilyFallbackTest/glyphsNotFound.html new file mode 100644 index 000000000..76769bfc2 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontFamilyFallbackTest/glyphsNotFound.html @@ -0,0 +1,16 @@ + + + Font Family Test + + + +
これはダミーテキストですこれはダミーテキストです Some english text
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontFamilyFallbackTest/mixedJapaneseEnglish.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontFamilyFallbackTest/mixedJapaneseEnglish.html new file mode 100644 index 000000000..8cc1b813f --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontFamilyFallbackTest/mixedJapaneseEnglish.html @@ -0,0 +1,16 @@ + + + Font Family Test + + + +
これはダミーテキストですこれはダミーテキストですSome English text insertedこれはダミーテキストですこれはダミーテキストです
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontFamilyFallbackTest/noBoldGlyphs.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontFamilyFallbackTest/noBoldGlyphs.html new file mode 100644 index 000000000..bc149ea19 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontFamilyFallbackTest/noBoldGlyphs.html @@ -0,0 +1,6 @@ + + +
Bold:

これはダミーテキストですEnglish Text in Boldこれはダミーテキストです

+
Regular:
これはダミーテキストですEnglish text in Regular これはダミーテキストです
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontFamilyTest/cmp_selectFontInGroup.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontFamilyTest/cmp_selectFontInGroup.pdf new file mode 100644 index 000000000..61dabfc38 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontFamilyTest/cmp_selectFontInGroup.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontFamilyTest/selectFontInGroup.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontFamilyTest/selectFontInGroup.html new file mode 100644 index 000000000..c9969e801 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontFamilyTest/selectFontInGroup.html @@ -0,0 +1,20 @@ + + + Font Family Test + + + +

Font Family Test

+

Some text with Serif font from font collection.

+

test

+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/cmp_cursiveFontTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/cmp_cursiveFontTest.pdf new file mode 100644 index 000000000..58ad81453 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/cmp_cursiveFontTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/cmp_fantasyFontTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/cmp_fantasyFontTest.pdf new file mode 100644 index 000000000..194fa211a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/cmp_fantasyFontTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/cmp_fontWithSansSerifTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/cmp_fontWithSansSerifTest.pdf new file mode 100644 index 000000000..b8ac8fab1 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/cmp_fontWithSansSerifTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/cmp_fontWithSerifTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/cmp_fontWithSerifTest.pdf new file mode 100644 index 000000000..78d80cd49 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/cmp_fontWithSerifTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/cmp_monospaceFontTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/cmp_monospaceFontTest.pdf new file mode 100644 index 000000000..954ca8f24 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/cmp_monospaceFontTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/cursiveFontTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/cursiveFontTest.html new file mode 100644 index 000000000..0b7715867 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/cursiveFontTest.html @@ -0,0 +1,19 @@ + + + Font Family Test + + + +

Font Family Test

+

Some text with cursive font.

+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/fantasyFontTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/fantasyFontTest.html new file mode 100644 index 000000000..9f09573ec --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/fantasyFontTest.html @@ -0,0 +1,19 @@ + + + Font Family Test + + + +

Font Family Test

+

Some text with fantasy font.

+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/fontWithSansSerifTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/fontWithSansSerifTest.html new file mode 100644 index 000000000..907fa0a96 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/fontWithSansSerifTest.html @@ -0,0 +1,19 @@ + + + Font Family Test + + + +

Font Family Test

+

Some text with Sans-Serif font.

+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/fontWithSerifTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/fontWithSerifTest.html new file mode 100644 index 000000000..6ac5bc498 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/fontWithSerifTest.html @@ -0,0 +1,19 @@ + + + Font Family Test + + + +

Font Family Test

+

Some text with Serif font.

+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/monospaceFontTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/monospaceFontTest.html new file mode 100644 index 000000000..f80e7834a --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/FontStyleParameterizedTest/monospaceFontTest.html @@ -0,0 +1,19 @@ + + + Font Family Test + + + +

Font Family Test

+

Some text with monospace font.

+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/basicGridArea1.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/basicGridArea1.html new file mode 100644 index 000000000..b1656ceac --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/basicGridArea1.html @@ -0,0 +1,40 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/basicGridArea2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/basicGridArea2.html new file mode 100644 index 000000000..5b1b75224 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/basicGridArea2.html @@ -0,0 +1,36 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/borderBoxTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/borderBoxTest.html new file mode 100644 index 000000000..8ad70700c --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/borderBoxTest.html @@ -0,0 +1,43 @@ + + + + + + + +

Some text

+
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr.
+
+

Some bottom text

+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/borderBoxTest2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/borderBoxTest2.html new file mode 100644 index 000000000..65f13a35c --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/borderBoxTest2.html @@ -0,0 +1,46 @@ + + + + + + + +

Some text

+
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr.
+
+

Some bottom text

+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_basicGridArea1.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_basicGridArea1.pdf new file mode 100644 index 000000000..57c410650 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_basicGridArea1.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_basicGridArea2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_basicGridArea2.pdf new file mode 100644 index 000000000..7c899153f Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_basicGridArea2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_borderBoxTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_borderBoxTest.pdf new file mode 100644 index 000000000..017c899fa Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_borderBoxTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_borderBoxTest2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_borderBoxTest2.pdf new file mode 100644 index 000000000..fd81f1f98 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_borderBoxTest2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_differentRowSpanOnSplitTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_differentRowSpanOnSplitTest.pdf new file mode 100644 index 000000000..469c3dc1f Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_differentRowSpanOnSplitTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_differentRowSpanOnSplitTest2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_differentRowSpanOnSplitTest2.pdf new file mode 100644 index 000000000..a004fda64 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_differentRowSpanOnSplitTest2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_differentRowSpanTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_differentRowSpanTest.pdf new file mode 100644 index 000000000..dab607732 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_differentRowSpanTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_differentRowSpanWithGaps100OnSplitTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_differentRowSpanWithGaps100OnSplitTest.pdf new file mode 100644 index 000000000..cf3e52b0c Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_differentRowSpanWithGaps100OnSplitTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_differentRowSpanWithGaps50OnSplitTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_differentRowSpanWithGaps50OnSplitTest.pdf new file mode 100644 index 000000000..e2207fe72 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_differentRowSpanWithGaps50OnSplitTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_grid-area-switched-places.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_grid-area-switched-places.pdf new file mode 100644 index 000000000..ce61e5872 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_grid-area-switched-places.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_gridShorthandAdvanced.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_gridShorthandAdvanced.pdf new file mode 100644 index 000000000..986964f31 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_gridShorthandAdvanced.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_invalidTemplateAreas.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_invalidTemplateAreas.pdf new file mode 100644 index 000000000..4daa105c3 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_invalidTemplateAreas.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_splitOn2ndRowGapTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_splitOn2ndRowGapTest.pdf new file mode 100644 index 000000000..38b97d7aa Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_splitOn2ndRowGapTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_templateAreasBasic.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_templateAreasBasic.pdf new file mode 100644 index 000000000..45d92fd89 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_templateAreasBasic.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_templateAreasInvalidName.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_templateAreasInvalidName.pdf new file mode 100644 index 000000000..39fa462dc Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_templateAreasInvalidName.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_templateAreasShorthandAdvanced.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_templateAreasShorthandAdvanced.pdf new file mode 100644 index 000000000..0293a315d Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_templateAreasShorthandAdvanced.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_templateAreasShorthandBasic.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_templateAreasShorthandBasic.pdf new file mode 100644 index 000000000..ebdca1b5b Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_templateAreasShorthandBasic.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_templateAreasStart.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_templateAreasStart.pdf new file mode 100644 index 000000000..e20c93da1 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_templateAreasStart.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_templateAreasStartAuto.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_templateAreasStartAuto.pdf new file mode 100644 index 000000000..5f0a4338d Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_templateAreasStartAuto.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_templateAreasStartEnd.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_templateAreasStartEnd.pdf new file mode 100644 index 000000000..e8ac57b7d Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_templateAreasStartEnd.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_templateAreasWithDots.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_templateAreasWithDots.pdf new file mode 100644 index 000000000..c29b139c8 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_templateAreasWithDots.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_templateShorthandWithoutLineNames.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_templateShorthandWithoutLineNames.pdf new file mode 100644 index 000000000..f5ab5da18 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/cmp_templateShorthandWithoutLineNames.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/differentRowSpanOnSplitTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/differentRowSpanOnSplitTest.html new file mode 100644 index 000000000..95aede07b --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/differentRowSpanOnSplitTest.html @@ -0,0 +1,94 @@ + + + + + + + +

Some text

+
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/differentRowSpanOnSplitTest2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/differentRowSpanOnSplitTest2.html new file mode 100644 index 000000000..f7f39c2e0 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/differentRowSpanOnSplitTest2.html @@ -0,0 +1,95 @@ + + + + + + + +

Some text

+
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet. + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/differentRowSpanTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/differentRowSpanTest.html new file mode 100644 index 000000000..39e021d89 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/differentRowSpanTest.html @@ -0,0 +1,49 @@ + + + + + + + +

Some text

+
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua.
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/differentRowSpanWithGaps100OnSplitTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/differentRowSpanWithGaps100OnSplitTest.html new file mode 100644 index 000000000..fde9f3fbf --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/differentRowSpanWithGaps100OnSplitTest.html @@ -0,0 +1,96 @@ + + + + + + + +

Some text

+
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet. + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/differentRowSpanWithGaps50OnSplitTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/differentRowSpanWithGaps50OnSplitTest.html new file mode 100644 index 000000000..3189260f4 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/differentRowSpanWithGaps50OnSplitTest.html @@ -0,0 +1,96 @@ + + + + + + + +

Some text

+
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet. + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/grid-area-switched-places.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/grid-area-switched-places.html new file mode 100644 index 000000000..a5f509fae --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/grid-area-switched-places.html @@ -0,0 +1,53 @@ + + + + + + +
+
+

1st elem

+
+
+

2nd elem

+
+
+

3rd elem

+
+
+

4th elem

+
+
+

5th elem

+
+
+

6th elem

+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/gridShorthandAdvanced.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/gridShorthandAdvanced.html new file mode 100644 index 000000000..234674f4b --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/gridShorthandAdvanced.html @@ -0,0 +1,42 @@ + + +CSS grid-template shorthand test + + +
+
Header
+ +
Main area
+
Footer
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/invalidTemplateAreas.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/invalidTemplateAreas.html new file mode 100644 index 000000000..04878056d --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/invalidTemplateAreas.html @@ -0,0 +1,46 @@ + + +CSS Grid Layout Test: Positioned grid items + + + + + +
+
Header
+ +
Main area
+
Footer
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/splitOn2ndRowGapTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/splitOn2ndRowGapTest.html new file mode 100644 index 000000000..e8ebd1b44 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/splitOn2ndRowGapTest.html @@ -0,0 +1,66 @@ + + + + + + + +

Some text

+
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet..
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/templateAreasBasic.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/templateAreasBasic.html new file mode 100644 index 000000000..ad574e808 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/templateAreasBasic.html @@ -0,0 +1,46 @@ + + +CSS Grid Layout Test: Positioned grid items + + + + + +
+
Header
+ +
Main area
+
Footer
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/templateAreasInvalidName.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/templateAreasInvalidName.html new file mode 100644 index 000000000..99e20fba6 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/templateAreasInvalidName.html @@ -0,0 +1,46 @@ + + +CSS Grid Layout Test: Positioned grid items + + + + + +
+
Header
+ +
Main area
+
Footer
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/templateAreasShorthandAdvanced.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/templateAreasShorthandAdvanced.html new file mode 100644 index 000000000..cfeb0ca9b --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/templateAreasShorthandAdvanced.html @@ -0,0 +1,42 @@ + + +CSS grid-template shorthand test + + +
+
Header
+ +
Main area
+
Footer
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/templateAreasShorthandBasic.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/templateAreasShorthandBasic.html new file mode 100644 index 000000000..956e3f0d1 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/templateAreasShorthandBasic.html @@ -0,0 +1,42 @@ + + +CSS grid-template shorthand test + + +
+
Header
+ +
Main area
+
Footer
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/templateAreasStart.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/templateAreasStart.html new file mode 100644 index 000000000..e265a09a1 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/templateAreasStart.html @@ -0,0 +1,46 @@ + + +CSS Grid Layout Test: Positioned grid items + + + + + +
+
Main area
+ +
Footer
+
Header
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/templateAreasStartAuto.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/templateAreasStartAuto.html new file mode 100644 index 000000000..8d511d1bd --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/templateAreasStartAuto.html @@ -0,0 +1,46 @@ + + +CSS Grid Layout Test: Positioned grid items + + + + + +
+
Main area
+ +
Footer
+
Header
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/templateAreasStartEnd.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/templateAreasStartEnd.html new file mode 100644 index 000000000..ddbc9e709 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/templateAreasStartEnd.html @@ -0,0 +1,46 @@ + + +CSS Grid Layout Test: Positioned grid items + + + + + +
+
Main area
+ +
Footer
+
Header
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/templateAreasWithDots.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/templateAreasWithDots.html new file mode 100644 index 000000000..b5a8af5b9 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/templateAreasWithDots.html @@ -0,0 +1,46 @@ + + +CSS Grid Layout Test: Positioned grid items + + + + + +
+
Header
+ +
Main area
+
Footer
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/templateShorthandWithoutLineNames.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/templateShorthandWithoutLineNames.html new file mode 100644 index 000000000..a31d48a92 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/templateShorthandWithoutLineNames.html @@ -0,0 +1,47 @@ + + + + + CSS grid-template shorthand test + + + +
+
Header
+ +
Main area
+
Footer
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/test1.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/test1.html new file mode 100644 index 000000000..1524750cd --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridAreaTest/test1.html @@ -0,0 +1,42 @@ + + +CSS grid-template shorthand test + + +
+
Header
+ +
Main area
+
Footer
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_diff_units.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_diff_units.pdf new file mode 100644 index 000000000..8a5b1b03d Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_diff_units.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_different_rows_cols_gap.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_different_rows_cols_gap.pdf new file mode 100644 index 000000000..66aa86425 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_different_rows_cols_gap.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_float_gap_value.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_float_gap_value.pdf new file mode 100644 index 000000000..5a8a2aad5 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_float_gap_value.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_gridColumnGapTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_gridColumnGapTest.pdf new file mode 100644 index 000000000..2013f1278 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_gridColumnGapTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_gridGapTest1.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_gridGapTest1.pdf new file mode 100644 index 000000000..c152e5932 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_gridGapTest1.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_gridGapTest2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_gridGapTest2.pdf new file mode 100644 index 000000000..1dadf1148 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_gridGapTest2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_gridRowGapTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_gridRowGapTest.pdf new file mode 100644 index 000000000..71fb53d9a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_gridRowGapTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_large_col_gap_value.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_large_col_gap_value.pdf new file mode 100644 index 000000000..f1553f061 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_large_col_gap_value.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_large_gap_value.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_large_gap_value.pdf new file mode 100644 index 000000000..6a55d2269 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_large_gap_value.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_large_row_gap_value.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_large_row_gap_value.pdf new file mode 100644 index 000000000..f3e53c0e4 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_large_row_gap_value.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_margin.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_margin.pdf new file mode 100644 index 000000000..6c2a95b08 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_margin.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_negative_col_gap_value.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_negative_col_gap_value.pdf new file mode 100644 index 000000000..142cc81dc Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_negative_col_gap_value.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_negative_gap_value.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_negative_gap_value.pdf new file mode 100644 index 000000000..6ae75280a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_negative_gap_value.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_negative_row_gap_value.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_negative_row_gap_value.pdf new file mode 100644 index 000000000..4cf983650 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_negative_row_gap_value.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_padding.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_padding.pdf new file mode 100644 index 000000000..0d90579ef Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_padding.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_small_values_gap.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_small_values_gap.pdf new file mode 100644 index 000000000..b0d2c9419 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_small_values_gap.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_cols_col_gap.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_cols_col_gap.pdf new file mode 100644 index 000000000..5bbacc63f Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_cols_col_gap.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_cols_gap.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_cols_gap.pdf new file mode 100644 index 000000000..979504d48 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_cols_gap.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_auto_cols_gap.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_auto_cols_gap.pdf new file mode 100644 index 000000000..b18b84a0e Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_auto_cols_gap.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_auto_rows_gap.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_auto_rows_gap.pdf new file mode 100644 index 000000000..0246c881a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_auto_rows_gap.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_big_cell_gap_1.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_big_cell_gap_1.pdf new file mode 100644 index 000000000..07449dfa0 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_big_cell_gap_1.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_big_cell_gap_2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_big_cell_gap_2.pdf new file mode 100644 index 000000000..e8d5176a1 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_big_cell_gap_2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_few_big_cell_gap_1.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_few_big_cell_gap_1.pdf new file mode 100644 index 000000000..167ead617 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_few_big_cell_gap_1.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_few_big_cell_gap_2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_few_big_cell_gap_2.pdf new file mode 100644 index 000000000..ca86e1e1d Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_few_big_cell_gap_2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_gap.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_gap.pdf new file mode 100644 index 000000000..4b754e91c Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_gap.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_horz_cell_gap_1.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_horz_cell_gap_1.pdf new file mode 100644 index 000000000..8d1ca9cef Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_horz_cell_gap_1.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_horz_cell_gap_2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_horz_cell_gap_2.pdf new file mode 100644 index 000000000..741bca615 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_horz_cell_gap_2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_vert_cell_gap_1.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_vert_cell_gap_1.pdf new file mode 100644 index 000000000..b4796c292 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_vert_cell_gap_1.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_vert_cell_gap_2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_vert_cell_gap_2.pdf new file mode 100644 index 000000000..a42cc337a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_cols_vert_cell_gap_2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_gap.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_gap.pdf new file mode 100644 index 000000000..82cd8642a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_gap.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_row_gap.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_row_gap.pdf new file mode 100644 index 000000000..43be485fb Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/cmp_template_rows_row_gap.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/diff_units.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/diff_units.html new file mode 100644 index 000000000..cb714e0f1 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/diff_units.html @@ -0,0 +1,87 @@ + + + + + + + +

5 px

+
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+

1 cm

+
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+

1 em, font-size 10pt

+
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+

15 pt

+
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+

2 rem

+
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+

4 ch

+
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+

10 vh

+
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/different_rows_cols_gap.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/different_rows_cols_gap.html new file mode 100644 index 000000000..bdb5bbfe0 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/different_rows_cols_gap.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/float_gap_value.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/float_gap_value.html new file mode 100644 index 000000000..3285036ee --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/float_gap_value.html @@ -0,0 +1,28 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/gridColumnGapTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/gridColumnGapTest.html new file mode 100644 index 000000000..ec75cc67c --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/gridColumnGapTest.html @@ -0,0 +1,29 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/gridGapTest1.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/gridGapTest1.html new file mode 100644 index 000000000..8c3918c0c --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/gridGapTest1.html @@ -0,0 +1,29 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/gridGapTest2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/gridGapTest2.html new file mode 100644 index 000000000..8f66a4835 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/gridGapTest2.html @@ -0,0 +1,29 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/gridRowGapTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/gridRowGapTest.html new file mode 100644 index 000000000..c8ce8f721 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/gridRowGapTest.html @@ -0,0 +1,29 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/large_col_gap_value.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/large_col_gap_value.html new file mode 100644 index 000000000..482c7ab5f --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/large_col_gap_value.html @@ -0,0 +1,27 @@ + + + + + + + +

9999 px

+
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/large_gap_value.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/large_gap_value.html new file mode 100644 index 000000000..ac8ca8f6a --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/large_gap_value.html @@ -0,0 +1,27 @@ + + + + + + + +

9999 px

+
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/large_row_gap_value.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/large_row_gap_value.html new file mode 100644 index 000000000..1bf018580 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/large_row_gap_value.html @@ -0,0 +1,27 @@ + + + + + + + +

9999 px

+
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/margin.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/margin.html new file mode 100644 index 000000000..f21bc940a --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/margin.html @@ -0,0 +1,38 @@ + + + + + + + +

margin: 20px; gap: 5px;

+
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+

margin-top: 30px; margin-left: 10px; gap: 10px;

+
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/negative_col_gap_value.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/negative_col_gap_value.html new file mode 100644 index 000000000..018ef8d31 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/negative_col_gap_value.html @@ -0,0 +1,27 @@ + + + + + + + +

-100px;

+
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/negative_gap_value.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/negative_gap_value.html new file mode 100644 index 000000000..23cd4823d --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/negative_gap_value.html @@ -0,0 +1,27 @@ + + + + + + + +

-100px;

+
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/negative_row_gap_value.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/negative_row_gap_value.html new file mode 100644 index 000000000..549ea96af --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/negative_row_gap_value.html @@ -0,0 +1,27 @@ + + + + + + + +

-100px;

+
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/padding.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/padding.html new file mode 100644 index 000000000..f168ef18e --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/padding.html @@ -0,0 +1,38 @@ + + + + + + + +

padding: 20px; gap: 5px;

+
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+

padding-top: 30px; padding-left: 10px; gap: 10px;

+
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/small_values_gap.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/small_values_gap.html new file mode 100644 index 000000000..fd64001e7 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/small_values_gap.html @@ -0,0 +1,47 @@ + + + + + + + +

0 px

+
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+

1 pt

+
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+

2 px

+
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_cols_col_gap.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_cols_col_gap.html new file mode 100644 index 000000000..77abb71cf --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_cols_col_gap.html @@ -0,0 +1,28 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_cols_gap.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_cols_gap.html new file mode 100644 index 000000000..35190d545 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_cols_gap.html @@ -0,0 +1,28 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_auto_cols_gap.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_auto_cols_gap.html new file mode 100644 index 000000000..6e2d9d8c1 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_auto_cols_gap.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_auto_rows_gap.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_auto_rows_gap.html new file mode 100644 index 000000000..75634c7ab --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_auto_rows_gap.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_big_cell_gap_1.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_big_cell_gap_1.html new file mode 100644 index 000000000..86aab3e51 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_big_cell_gap_1.html @@ -0,0 +1,36 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_big_cell_gap_2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_big_cell_gap_2.html new file mode 100644 index 000000000..5278aaf45 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_big_cell_gap_2.html @@ -0,0 +1,36 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_few_big_cell_gap_1.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_few_big_cell_gap_1.html new file mode 100644 index 000000000..b14531e7b --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_few_big_cell_gap_1.html @@ -0,0 +1,45 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_few_big_cell_gap_2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_few_big_cell_gap_2.html new file mode 100644 index 000000000..248e74ef5 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_few_big_cell_gap_2.html @@ -0,0 +1,50 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_gap.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_gap.html new file mode 100644 index 000000000..090ae2b32 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_gap.html @@ -0,0 +1,29 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_horz_cell_gap_1.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_horz_cell_gap_1.html new file mode 100644 index 000000000..cc6d780f7 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_horz_cell_gap_1.html @@ -0,0 +1,34 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_horz_cell_gap_2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_horz_cell_gap_2.html new file mode 100644 index 000000000..0e26e694c --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_horz_cell_gap_2.html @@ -0,0 +1,34 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_vert_cell_gap_1.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_vert_cell_gap_1.html new file mode 100644 index 000000000..2764f15fd --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_vert_cell_gap_1.html @@ -0,0 +1,34 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_vert_cell_gap_2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_vert_cell_gap_2.html new file mode 100644 index 000000000..8a5965351 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_cols_vert_cell_gap_2.html @@ -0,0 +1,34 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_gap.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_gap.html new file mode 100644 index 000000000..c9c194236 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_gap.html @@ -0,0 +1,28 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_row_gap.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_row_gap.html new file mode 100644 index 000000000..63973d27c --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridGapTest/template_rows_row_gap.html @@ -0,0 +1,28 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_colStartEnd1.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_colStartEnd1.pdf new file mode 100644 index 000000000..032a97061 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_colStartEnd1.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_colStartEnd2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_colStartEnd2.pdf new file mode 100644 index 000000000..d2db94286 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_colStartEnd2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_colStartEnd3.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_colStartEnd3.pdf new file mode 100644 index 000000000..893f9621b Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_colStartEnd3.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_colStartEnd4.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_colStartEnd4.pdf new file mode 100644 index 000000000..1c2a1699c Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_colStartEnd4.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_colStartEnd5.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_colStartEnd5.pdf new file mode 100644 index 000000000..306a94047 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_colStartEnd5.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_columnSpanExpandsStartToNegativeTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_columnSpanExpandsStartToNegativeTest.pdf new file mode 100644 index 000000000..085234138 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_columnSpanExpandsStartToNegativeTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_fewCellsPlacement1.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_fewCellsPlacement1.pdf new file mode 100644 index 000000000..3b7250a05 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_fewCellsPlacement1.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_fewCellsPlacement2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_fewCellsPlacement2.pdf new file mode 100644 index 000000000..c05b86fae Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_fewCellsPlacement2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_fewCellsPlacement3.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_fewCellsPlacement3.pdf new file mode 100644 index 000000000..9ed7426d5 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_fewCellsPlacement3.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_fewCellsPlacement4.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_fewCellsPlacement4.pdf new file mode 100644 index 000000000..579e3cf30 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_fewCellsPlacement4.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_fewCellsPlacement5.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_fewCellsPlacement5.pdf new file mode 100644 index 000000000..08db8cf9e Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_fewCellsPlacement5.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_fewCellsPlacement6.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_fewCellsPlacement6.pdf new file mode 100644 index 000000000..da35da8ef Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_fewCellsPlacement6.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_fewCellsPlacement7.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_fewCellsPlacement7.pdf new file mode 100644 index 000000000..e8edc9f40 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_fewCellsPlacement7.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_negativeAndPositiveIndexShorthandTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_negativeAndPositiveIndexShorthandTest.pdf new file mode 100644 index 000000000..31a43224b Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_negativeAndPositiveIndexShorthandTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_negativeIndexOutOfTemplateTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_negativeIndexOutOfTemplateTest.pdf new file mode 100644 index 000000000..5644d5df9 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_negativeIndexOutOfTemplateTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_negativeIndexShorthandTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_negativeIndexShorthandTest.pdf new file mode 100644 index 000000000..777e80ac2 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_negativeIndexShorthandTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_negativeIndexWithImplicitLinesTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_negativeIndexWithImplicitLinesTest.pdf new file mode 100644 index 000000000..5545c1c4c Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_negativeIndexWithImplicitLinesTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_negativeIndexWithoutTemplateTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_negativeIndexWithoutTemplateTest.pdf new file mode 100644 index 000000000..d325031ba Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_negativeIndexWithoutTemplateTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_noTemplate1.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_noTemplate1.pdf new file mode 100644 index 000000000..b0da036b5 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_noTemplate1.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_noTemplate2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_noTemplate2.pdf new file mode 100644 index 000000000..590d693e4 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_noTemplate2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_rowStartEnd1.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_rowStartEnd1.pdf new file mode 100644 index 000000000..df1cdef85 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_rowStartEnd1.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_rowStartEnd2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_rowStartEnd2.pdf new file mode 100644 index 000000000..81e8cc2ef Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_rowStartEnd2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_rowStartEnd3.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_rowStartEnd3.pdf new file mode 100644 index 000000000..3d055041b Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_rowStartEnd3.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_rowStartEnd4.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_rowStartEnd4.pdf new file mode 100644 index 000000000..1f8e542bb Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_rowStartEnd4.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_spanToNegativeIndexWithoutTemplateTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_spanToNegativeIndexWithoutTemplateTest.pdf new file mode 100644 index 000000000..6c4667c70 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_spanToNegativeIndexWithoutTemplateTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_spanToNegativeStartTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_spanToNegativeStartTest.pdf new file mode 100644 index 000000000..2c97dfd3d Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_spanToNegativeStartTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_spanToNegativeStartWithExplicitTemplatesTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_spanToNegativeStartWithExplicitTemplatesTest.pdf new file mode 100644 index 000000000..2f97ac12d Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_spanToNegativeStartWithExplicitTemplatesTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_spanToNegativeStartWithSingleTemplateTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_spanToNegativeStartWithSingleTemplateTest.pdf new file mode 100644 index 000000000..68bef4efd Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_spanToNegativeStartWithSingleTemplateTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_spanToNegativeStartWithoutTemplatesTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_spanToNegativeStartWithoutTemplatesTest.pdf new file mode 100644 index 000000000..c9858171e Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_spanToNegativeStartWithoutTemplatesTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_spanToNegativeStartWithoutTemplatesTest2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_spanToNegativeStartWithoutTemplatesTest2.pdf new file mode 100644 index 000000000..be65b5f9f Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_spanToNegativeStartWithoutTemplatesTest2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_twoColumnSpans1.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_twoColumnSpans1.pdf new file mode 100644 index 000000000..19e56155c Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_twoColumnSpans1.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_twoColumnSpans2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_twoColumnSpans2.pdf new file mode 100644 index 000000000..0b0bc88b7 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_twoColumnSpans2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_twoColumnSpans3.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_twoColumnSpans3.pdf new file mode 100644 index 000000000..bceca41a6 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_twoColumnSpans3.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_twoRowSpans1.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_twoRowSpans1.pdf new file mode 100644 index 000000000..9606d943b Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_twoRowSpans1.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_twoRowSpans2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_twoRowSpans2.pdf new file mode 100644 index 000000000..fe812469d Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_twoRowSpans2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_twoRowSpans3.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_twoRowSpans3.pdf new file mode 100644 index 000000000..fea0b48c3 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/cmp_twoRowSpans3.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/colStartEnd1.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/colStartEnd1.html new file mode 100644 index 000000000..6b6a5cfd2 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/colStartEnd1.html @@ -0,0 +1,37 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Siz
+
Seven
+
Eight
+
Nine
+
Ten
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/colStartEnd2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/colStartEnd2.html new file mode 100644 index 000000000..ed2228d15 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/colStartEnd2.html @@ -0,0 +1,37 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Siz
+
Seven
+
Eight
+
Nine
+
Ten
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/colStartEnd3.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/colStartEnd3.html new file mode 100644 index 000000000..be4718f67 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/colStartEnd3.html @@ -0,0 +1,37 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Siz
+
Seven
+
Eight
+
Nine
+
Ten
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/colStartEnd4.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/colStartEnd4.html new file mode 100644 index 000000000..620f5ba9f --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/colStartEnd4.html @@ -0,0 +1,37 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Siz
+
Seven
+
Eight
+
Nine
+
Ten
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/colStartEnd5.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/colStartEnd5.html new file mode 100644 index 000000000..1c25d3c39 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/colStartEnd5.html @@ -0,0 +1,37 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Siz
+
Seven
+
Eight
+
Nine
+
Ten
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/columnSpanExpandsStartToNegativeTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/columnSpanExpandsStartToNegativeTest.html new file mode 100644 index 000000000..47aabb945 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/columnSpanExpandsStartToNegativeTest.html @@ -0,0 +1,37 @@ + + + + + basic test #1 + + + +
+
One
+
Two
+
Three
+
Four
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/fewCellsPlacement1.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/fewCellsPlacement1.html new file mode 100644 index 000000000..5fa928703 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/fewCellsPlacement1.html @@ -0,0 +1,42 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Siz
+
Seven
+
Eight
+
Nine
+
Ten
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/fewCellsPlacement2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/fewCellsPlacement2.html new file mode 100644 index 000000000..3478d857e --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/fewCellsPlacement2.html @@ -0,0 +1,42 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Siz
+
Seven
+
Eight
+
Nine
+
Ten
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/fewCellsPlacement3.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/fewCellsPlacement3.html new file mode 100644 index 000000000..9bd13c0ee --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/fewCellsPlacement3.html @@ -0,0 +1,43 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Siz
+
Seven
+
Eight
+
Nine
+
Ten
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/fewCellsPlacement4.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/fewCellsPlacement4.html new file mode 100644 index 000000000..6d24b64cb --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/fewCellsPlacement4.html @@ -0,0 +1,44 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Siz
+
Seven
+
Eight
+
Nine
+
Ten
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/fewCellsPlacement5.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/fewCellsPlacement5.html new file mode 100644 index 000000000..02eac54b8 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/fewCellsPlacement5.html @@ -0,0 +1,44 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Siz
+
Seven
+
Eight
+
Nine
+
Ten
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/fewCellsPlacement6.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/fewCellsPlacement6.html new file mode 100644 index 000000000..4a5134997 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/fewCellsPlacement6.html @@ -0,0 +1,49 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Siz
+
Seven
+
Eight
+
Nine
+
Ten
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/fewCellsPlacement7.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/fewCellsPlacement7.html new file mode 100644 index 000000000..e40774790 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/fewCellsPlacement7.html @@ -0,0 +1,41 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Siz
+
Seven
+
Eight
+
Nine
+
Ten
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/negativeAndPositiveIndexShorthandTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/negativeAndPositiveIndexShorthandTest.html new file mode 100644 index 000000000..2a28609d6 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/negativeAndPositiveIndexShorthandTest.html @@ -0,0 +1,44 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
Ten
+
Eleven
+
Twelve
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/negativeIndexOutOfTemplateTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/negativeIndexOutOfTemplateTest.html new file mode 100644 index 000000000..e41c15fd0 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/negativeIndexOutOfTemplateTest.html @@ -0,0 +1,61 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
Ten
+
Eleven
+
Twelve
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/negativeIndexShorthandTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/negativeIndexShorthandTest.html new file mode 100644 index 000000000..a3e2986c1 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/negativeIndexShorthandTest.html @@ -0,0 +1,43 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
Ten
+
Eleven
+
Twelve
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/negativeIndexWithImplicitLinesTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/negativeIndexWithImplicitLinesTest.html new file mode 100644 index 000000000..d78db7dd1 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/negativeIndexWithImplicitLinesTest.html @@ -0,0 +1,61 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
Ten
+
Eleven
+
Twelve
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/negativeIndexWithoutTemplateTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/negativeIndexWithoutTemplateTest.html new file mode 100644 index 000000000..9c6ac32b9 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/negativeIndexWithoutTemplateTest.html @@ -0,0 +1,65 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
Ten
+
Eleven
+
Twelve
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/noTemplate1.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/noTemplate1.html new file mode 100644 index 000000000..86bf7df69 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/noTemplate1.html @@ -0,0 +1,36 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Siz
+
Seven
+
Eight
+
Nine
+
Ten
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/noTemplate2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/noTemplate2.html new file mode 100644 index 000000000..286561397 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/noTemplate2.html @@ -0,0 +1,37 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Siz
+
Seven
+
Eight
+
Nine
+
Ten
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/rowStartEnd1.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/rowStartEnd1.html new file mode 100644 index 000000000..c3d6b8bf3 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/rowStartEnd1.html @@ -0,0 +1,38 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Siz
+
Seven
+
Eight
+
Nine
+
Ten
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/rowStartEnd2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/rowStartEnd2.html new file mode 100644 index 000000000..132b3dda6 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/rowStartEnd2.html @@ -0,0 +1,38 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Siz
+
Seven
+
Eight
+
Nine
+
Ten
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/rowStartEnd3.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/rowStartEnd3.html new file mode 100644 index 000000000..5c9272f87 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/rowStartEnd3.html @@ -0,0 +1,38 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Siz
+
Seven
+
Eight
+
Nine
+
Ten
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/rowStartEnd4.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/rowStartEnd4.html new file mode 100644 index 000000000..047ae516f --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/rowStartEnd4.html @@ -0,0 +1,38 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Siz
+
Seven
+
Eight
+
Nine
+
Ten
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/spanToNegativeIndexWithoutTemplateTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/spanToNegativeIndexWithoutTemplateTest.html new file mode 100644 index 000000000..d3129c8d5 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/spanToNegativeIndexWithoutTemplateTest.html @@ -0,0 +1,61 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
Ten
+
Eleven
+
Twelve
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/spanToNegativeStartTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/spanToNegativeStartTest.html new file mode 100644 index 000000000..c11d49b6a --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/spanToNegativeStartTest.html @@ -0,0 +1,37 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Siz
+
Seven
+
Eight
+
Nine
+
Ten
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/spanToNegativeStartWithExplicitTemplatesTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/spanToNegativeStartWithExplicitTemplatesTest.html new file mode 100644 index 000000000..bdd0974b9 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/spanToNegativeStartWithExplicitTemplatesTest.html @@ -0,0 +1,38 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Siz
+
Seven
+
Eight
+
Nine
+
Ten
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/spanToNegativeStartWithSingleTemplateTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/spanToNegativeStartWithSingleTemplateTest.html new file mode 100644 index 000000000..516e306d8 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/spanToNegativeStartWithSingleTemplateTest.html @@ -0,0 +1,37 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Siz
+
Seven
+
Eight
+
Nine
+
Ten
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/spanToNegativeStartWithoutTemplatesTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/spanToNegativeStartWithoutTemplatesTest.html new file mode 100644 index 000000000..cd81f95b7 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/spanToNegativeStartWithoutTemplatesTest.html @@ -0,0 +1,36 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Siz
+
Seven
+
Eight
+
Nine
+
Ten
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/spanToNegativeStartWithoutTemplatesTest2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/spanToNegativeStartWithoutTemplatesTest2.html new file mode 100644 index 000000000..2001b862d --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/spanToNegativeStartWithoutTemplatesTest2.html @@ -0,0 +1,36 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Siz
+
Seven
+
Eight
+
Nine
+
Ten
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/twoColumnSpans1.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/twoColumnSpans1.html new file mode 100644 index 000000000..07027d725 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/twoColumnSpans1.html @@ -0,0 +1,32 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/twoColumnSpans2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/twoColumnSpans2.html new file mode 100644 index 000000000..1e2a7157a --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/twoColumnSpans2.html @@ -0,0 +1,32 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/twoColumnSpans3.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/twoColumnSpans3.html new file mode 100644 index 000000000..d4e87ee65 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/twoColumnSpans3.html @@ -0,0 +1,32 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/twoRowSpans1.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/twoRowSpans1.html new file mode 100644 index 000000000..8cbfc0f97 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/twoRowSpans1.html @@ -0,0 +1,32 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/twoRowSpans2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/twoRowSpans2.html new file mode 100644 index 000000000..77fecf49c --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/twoRowSpans2.html @@ -0,0 +1,36 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Siz
+
Seven
+
Eight
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/twoRowSpans3.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/twoRowSpans3.html new file mode 100644 index 000000000..9eb753a07 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridItemPlacementTest/twoRowSpans3.html @@ -0,0 +1,36 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Siz
+
Seven
+
Eight
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_customIndentSpan.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_customIndentSpan.pdf new file mode 100644 index 000000000..4a045ef07 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_customIndentSpan.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_customIndentTrickySpan.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_customIndentTrickySpan.pdf new file mode 100644 index 000000000..23a94806e Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_customIndentTrickySpan.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_duplicateLineNames.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_duplicateLineNames.pdf new file mode 100644 index 000000000..4642a90ea Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_duplicateLineNames.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_linenameAutoRepeat.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_linenameAutoRepeat.pdf new file mode 100644 index 000000000..36bb082cc Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_linenameAutoRepeat.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_linenameGridArea.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_linenameGridArea.pdf new file mode 100644 index 000000000..9d1b09f3a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_linenameGridArea.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_linenameNth.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_linenameNth.pdf new file mode 100644 index 000000000..a64bcd8f6 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_linenameNth.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_linenameRepeat.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_linenameRepeat.pdf new file mode 100644 index 000000000..a7f698dff Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_linenameRepeat.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_linenameSpan.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_linenameSpan.pdf new file mode 100644 index 000000000..365ed7b40 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_linenameSpan.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_linenamesCombined.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_linenamesCombined.pdf new file mode 100644 index 000000000..fed7657b1 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_linenamesCombined.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_templateAreasNames.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_templateAreasNames.pdf new file mode 100644 index 000000000..527f9de32 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/cmp_templateAreasNames.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/customIndentSpan.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/customIndentSpan.html new file mode 100644 index 000000000..18187b761 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/customIndentSpan.html @@ -0,0 +1,56 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/customIndentTrickySpan.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/customIndentTrickySpan.html new file mode 100644 index 000000000..62c2017aa --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/customIndentTrickySpan.html @@ -0,0 +1,41 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/duplicateLineNames.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/duplicateLineNames.html new file mode 100644 index 000000000..51ad3dac3 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/duplicateLineNames.html @@ -0,0 +1,40 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/linenameAutoRepeat.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/linenameAutoRepeat.html new file mode 100644 index 000000000..8c7419297 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/linenameAutoRepeat.html @@ -0,0 +1,41 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/linenameGridArea.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/linenameGridArea.html new file mode 100644 index 000000000..2808e4a29 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/linenameGridArea.html @@ -0,0 +1,48 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/linenameNth.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/linenameNth.html new file mode 100644 index 000000000..ff085e257 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/linenameNth.html @@ -0,0 +1,52 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/linenameRepeat.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/linenameRepeat.html new file mode 100644 index 000000000..dcdb682f3 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/linenameRepeat.html @@ -0,0 +1,51 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/linenameSpan.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/linenameSpan.html new file mode 100644 index 000000000..57ddbeaaf --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/linenameSpan.html @@ -0,0 +1,46 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/linenamesCombined.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/linenamesCombined.html new file mode 100644 index 000000000..77656e659 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/linenamesCombined.html @@ -0,0 +1,51 @@ + + +CSS Grid Layout Test: Positioned grid items + + +
+
Header
+ +
Main area
+
Footer
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/templateAreasNames.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/templateAreasNames.html new file mode 100644 index 000000000..c2c645b0a --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridLinenameTest/templateAreasNames.html @@ -0,0 +1,53 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis1.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis1.html new file mode 100644 index 000000000..903786e9b --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis1.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis10.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis10.html new file mode 100644 index 000000000..261749856 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis10.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis11.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis11.html new file mode 100644 index 000000000..bd3cfd5c9 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis11.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis12.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis12.html new file mode 100644 index 000000000..f00dbaca5 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis12.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis13.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis13.html new file mode 100644 index 000000000..53a3ed282 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis13.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis14.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis14.html new file mode 100644 index 000000000..d2325f0b3 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis14.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis15.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis15.html new file mode 100644 index 000000000..b5e11ca04 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis15.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One One One One One One One
+
Two
+
Three
+
Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis16.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis16.html new file mode 100644 index 000000000..8e8fc3fd5 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis16.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One One One One One One One
+
Two
+
Three
+
Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis17.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis17.html new file mode 100644 index 000000000..7f1cbbe6a --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis17.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One One One One One One One
+
Two
+
Three
+
Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis18.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis18.html new file mode 100644 index 000000000..b7455bea8 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis18.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One One One One One One One
+
Two
+
Three
+
Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis19.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis19.html new file mode 100644 index 000000000..79f6e4c3a --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis19.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis2.html new file mode 100644 index 000000000..4617e8d7c --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis2.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis20.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis20.html new file mode 100644 index 000000000..28430d10f --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis20.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis21.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis21.html new file mode 100644 index 000000000..d432545bb --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis21.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis3.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis3.html new file mode 100644 index 000000000..e3d1d4875 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis3.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis4.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis4.html new file mode 100644 index 000000000..f00dbaca5 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis4.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis5.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis5.html new file mode 100644 index 000000000..944bd3696 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis5.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis6.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis6.html new file mode 100644 index 000000000..a6e392c72 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis6.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis7.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis7.html new file mode 100644 index 000000000..4340ccd43 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis7.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis8.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis8.html new file mode 100644 index 000000000..608f813d4 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis8.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One One One One One One One One One One
+
Two
+
Three
+
Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis9.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis9.html new file mode 100644 index 000000000..9480807b4 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxis9.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxisOnlyFr1.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxisOnlyFr1.html new file mode 100644 index 000000000..59510385b --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxisOnlyFr1.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxisOnlyFr2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxisOnlyFr2.html new file mode 100644 index 000000000..4fd9291b4 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxisOnlyFr2.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxisOnlyFr3.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxisOnlyFr3.html new file mode 100644 index 000000000..da5d6d192 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxisOnlyFr3.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxisOnlyFr4.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxisOnlyFr4.html new file mode 100644 index 000000000..c74d36ff3 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxisOnlyFr4.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxisOnlyFr5.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxisOnlyFr5.html new file mode 100644 index 000000000..de6c76251 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxisOnlyFr5.html @@ -0,0 +1,35 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxisOnlyFr6.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxisOnlyFr6.html new file mode 100644 index 000000000..ccd05c004 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/bothAxisOnlyFr6.html @@ -0,0 +1,35 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis1.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis1.pdf new file mode 100644 index 000000000..bed403672 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis1.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis10.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis10.pdf new file mode 100644 index 000000000..53c03777b Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis10.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis11.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis11.pdf new file mode 100644 index 000000000..2cce383c0 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis11.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis12.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis12.pdf new file mode 100644 index 000000000..d1ede4321 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis12.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis13.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis13.pdf new file mode 100644 index 000000000..6775de7bc Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis13.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis14.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis14.pdf new file mode 100644 index 000000000..cb0604f0c Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis14.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis15.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis15.pdf new file mode 100644 index 000000000..6f7fd238a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis15.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis16.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis16.pdf new file mode 100644 index 000000000..44c7d8dff Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis16.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis17.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis17.pdf new file mode 100644 index 000000000..72dd3c2c5 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis17.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis18.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis18.pdf new file mode 100644 index 000000000..e99bf0dd1 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis18.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis19.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis19.pdf new file mode 100644 index 000000000..ccde8a206 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis19.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis2.pdf new file mode 100644 index 000000000..fb6067cb1 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis20.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis20.pdf new file mode 100644 index 000000000..893e27a37 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis20.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis21.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis21.pdf new file mode 100644 index 000000000..cd629bcfa Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis21.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis3.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis3.pdf new file mode 100644 index 000000000..4e610d2ee Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis3.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis4.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis4.pdf new file mode 100644 index 000000000..756d0847a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis4.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis5.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis5.pdf new file mode 100644 index 000000000..209866a23 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis5.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis6.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis6.pdf new file mode 100644 index 000000000..e5eea1d60 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis6.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis7.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis7.pdf new file mode 100644 index 000000000..68572ef2c Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis7.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis8.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis8.pdf new file mode 100644 index 000000000..4ff9654a2 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis8.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis9.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis9.pdf new file mode 100644 index 000000000..7fc7da544 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxis9.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxisOnlyFr1.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxisOnlyFr1.pdf new file mode 100644 index 000000000..d2963436c Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxisOnlyFr1.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxisOnlyFr2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxisOnlyFr2.pdf new file mode 100644 index 000000000..764a0b9a6 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxisOnlyFr2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxisOnlyFr3.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxisOnlyFr3.pdf new file mode 100644 index 000000000..3a6489857 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxisOnlyFr3.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxisOnlyFr4.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxisOnlyFr4.pdf new file mode 100644 index 000000000..d2a12ab51 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxisOnlyFr4.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxisOnlyFr5.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxisOnlyFr5.pdf new file mode 100644 index 000000000..91d94d599 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxisOnlyFr5.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxisOnlyFr6.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxisOnlyFr6.pdf new file mode 100644 index 000000000..b04540645 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_bothAxisOnlyFr6.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis1.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis1.pdf new file mode 100644 index 000000000..650478567 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis1.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis10.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis10.pdf new file mode 100644 index 000000000..bfad39217 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis10.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis11.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis11.pdf new file mode 100644 index 000000000..a0b01fb9f Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis11.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis2.pdf new file mode 100644 index 000000000..83b13d08c Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis3.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis3.pdf new file mode 100644 index 000000000..e5fb97623 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis3.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis4.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis4.pdf new file mode 100644 index 000000000..129332286 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis4.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis5.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis5.pdf new file mode 100644 index 000000000..70c75a377 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis5.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis6.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis6.pdf new file mode 100644 index 000000000..92b6a5b3e Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis6.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis7.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis7.pdf new file mode 100644 index 000000000..7c97ef2b5 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis7.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis8.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis8.pdf new file mode 100644 index 000000000..bb45933e8 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis8.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis9.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis9.pdf new file mode 100644 index 000000000..a0f77b920 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_colAxis9.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxAutoRepeat1.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxAutoRepeat1.pdf new file mode 100644 index 000000000..b51dfabe8 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxAutoRepeat1.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxAutoRepeat2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxAutoRepeat2.pdf new file mode 100644 index 000000000..3fbf2c339 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxAutoRepeat2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxFitContent1.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxFitContent1.pdf new file mode 100644 index 000000000..c857b62c4 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxFitContent1.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxFitContent2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxFitContent2.pdf new file mode 100644 index 000000000..c61907123 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxFitContent2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxFitContentAutoRepeat1.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxFitContentAutoRepeat1.pdf new file mode 100644 index 000000000..ef29df786 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxFitContentAutoRepeat1.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxFitContentAutoRepeat2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxFitContentAutoRepeat2.pdf new file mode 100644 index 000000000..c522909b1 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxFitContentAutoRepeat2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxWithBothAxisSpan1.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxWithBothAxisSpan1.pdf new file mode 100644 index 000000000..0c391be53 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxWithBothAxisSpan1.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxWithBothAxisSpan2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxWithBothAxisSpan2.pdf new file mode 100644 index 000000000..68a2a1260 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxWithBothAxisSpan2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxWithBothAxisSpan3.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxWithBothAxisSpan3.pdf new file mode 100644 index 000000000..73a251fa8 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxWithBothAxisSpan3.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxWithContentAndFr.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxWithContentAndFr.pdf new file mode 100644 index 000000000..679f058f3 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxWithContentAndFr.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxWithSpan1.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxWithSpan1.pdf new file mode 100644 index 000000000..a2202caea Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxWithSpan1.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxWithSpan2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxWithSpan2.pdf new file mode 100644 index 000000000..d138bfd98 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxWithSpan2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxWithSpan3.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxWithSpan3.pdf new file mode 100644 index 000000000..cf2c77604 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxWithSpan3.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxWithSpan4.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxWithSpan4.pdf new file mode 100644 index 000000000..6e1c97985 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_minmaxWithSpan4.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_rowAxis1.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_rowAxis1.pdf new file mode 100644 index 000000000..55613a613 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_rowAxis1.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_rowAxis2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_rowAxis2.pdf new file mode 100644 index 000000000..c17637d81 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_rowAxis2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_rowAxis3.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_rowAxis3.pdf new file mode 100644 index 000000000..1b0b3187f Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_rowAxis3.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_rowAxis4.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_rowAxis4.pdf new file mode 100644 index 000000000..43be0acdf Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_rowAxis4.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_rowAxis5.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_rowAxis5.pdf new file mode 100644 index 000000000..0ba643238 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_rowAxis5.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_rowAxis6.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_rowAxis6.pdf new file mode 100644 index 000000000..e3d2fd3dd Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_rowAxis6.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_rowAxis7.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_rowAxis7.pdf new file mode 100644 index 000000000..f94a57c52 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/cmp_rowAxis7.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis1.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis1.html new file mode 100644 index 000000000..070502d18 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis1.html @@ -0,0 +1,29 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis10.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis10.html new file mode 100644 index 000000000..96dd78964 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis10.html @@ -0,0 +1,34 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six
+
Seven
+
Eight
+
Nine Nine Nine Nine Nine Nine Nine Nine Nine Nine Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis11.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis11.html new file mode 100644 index 000000000..eb213debc --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis11.html @@ -0,0 +1,34 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six
+
Seven
+
Eight
+
Nine Nine Nine Nine Nine Nine Nine Nine Nine Nine Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis2.html new file mode 100644 index 000000000..840439990 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis2.html @@ -0,0 +1,29 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis3.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis3.html new file mode 100644 index 000000000..e5ea16732 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis3.html @@ -0,0 +1,29 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine Nine Nine NineNineNineNine Nine Nine Nine Nine Nine Nine Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis4.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis4.html new file mode 100644 index 000000000..0b69e4975 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis4.html @@ -0,0 +1,29 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine Nine Nine NineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNine Nine Nine Nine Nine Nine Nine Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis5.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis5.html new file mode 100644 index 000000000..af5f12592 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis5.html @@ -0,0 +1,29 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine Nine Nine NineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNine Nine Nine Nine Nine Nine Nine Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis6.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis6.html new file mode 100644 index 000000000..815e4ff73 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis6.html @@ -0,0 +1,29 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine Nine Nine NineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNineNine Nine Nine Nine Nine Nine Nine Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis7.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis7.html new file mode 100644 index 000000000..55e7b3f00 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis7.html @@ -0,0 +1,29 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six
+
Seven
+
Eight
+
Nine Nine Nine Nine Nine Nine Nine Nine Nine Nine Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis8.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis8.html new file mode 100644 index 000000000..b1ff3512c --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis8.html @@ -0,0 +1,34 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six
+
Seven
+
Eight
+
Nine Nine Nine Nine Nine Nine Nine Nine Nine Nine Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis9.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis9.html new file mode 100644 index 000000000..f8cbdb72d --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/colAxis9.html @@ -0,0 +1,34 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six Six
+
Seven
+
Eight
+
Nine Nine Nine Nine Nine Nine Nine Nine Nine Nine Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxAutoRepeat1.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxAutoRepeat1.html new file mode 100644 index 000000000..9eb3ef001 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxAutoRepeat1.html @@ -0,0 +1,37 @@ + + + + + + + +
+
One
+
Two Two Two
+
Three
+
Four Four Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxAutoRepeat2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxAutoRepeat2.html new file mode 100644 index 000000000..9eb3ef001 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxAutoRepeat2.html @@ -0,0 +1,37 @@ + + + + + + + +
+
One
+
Two Two Two
+
Three
+
Four Four Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxFitContent1.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxFitContent1.html new file mode 100644 index 000000000..364971cea --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxFitContent1.html @@ -0,0 +1,37 @@ + + + + + + + +
+
One
+
Two Two Two
+
Three
+
Four Four Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxFitContent2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxFitContent2.html new file mode 100644 index 000000000..5051465ca --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxFitContent2.html @@ -0,0 +1,37 @@ + + + + + + + +
+
One
+
Two Two Two
+
Three
+
Four Four Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxFitContentAutoRepeat1.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxFitContentAutoRepeat1.html new file mode 100644 index 000000000..7bc0e6f27 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxFitContentAutoRepeat1.html @@ -0,0 +1,37 @@ + + + + + + + +
+
One
+
Two Two Two
+
Three
+
Four Four Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxFitContentAutoRepeat2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxFitContentAutoRepeat2.html new file mode 100644 index 000000000..c6e784d66 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxFitContentAutoRepeat2.html @@ -0,0 +1,37 @@ + + + + + + + +
+
One
+
Two Two Two
+
Three
+
Four Four Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxWithBothAxisSpan1.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxWithBothAxisSpan1.html new file mode 100644 index 000000000..c92aa3aad --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxWithBothAxisSpan1.html @@ -0,0 +1,37 @@ + + + + + + + +
+
One
+
Two Two Two
+
Three
+
Four Four Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxWithBothAxisSpan2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxWithBothAxisSpan2.html new file mode 100644 index 000000000..733f0db44 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxWithBothAxisSpan2.html @@ -0,0 +1,37 @@ + + + + + + + +
+
One
+
Two Two Two
+
Three
+
Four Four Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxWithBothAxisSpan3.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxWithBothAxisSpan3.html new file mode 100644 index 000000000..5321eb326 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxWithBothAxisSpan3.html @@ -0,0 +1,37 @@ + + + + + + + +
+
One
+
Two Two Two
+
Three
+
Four Four Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxWithContentAndFr.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxWithContentAndFr.html new file mode 100644 index 000000000..8258b902c --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxWithContentAndFr.html @@ -0,0 +1,30 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxWithSpan1.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxWithSpan1.html new file mode 100644 index 000000000..c814b7376 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxWithSpan1.html @@ -0,0 +1,35 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxWithSpan2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxWithSpan2.html new file mode 100644 index 000000000..882800135 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxWithSpan2.html @@ -0,0 +1,35 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxWithSpan3.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxWithSpan3.html new file mode 100644 index 000000000..7ce12b2b6 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxWithSpan3.html @@ -0,0 +1,35 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxWithSpan4.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxWithSpan4.html new file mode 100644 index 000000000..8704d0bda --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/minmaxWithSpan4.html @@ -0,0 +1,35 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/rowAxis1.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/rowAxis1.html new file mode 100644 index 000000000..caed41e4a --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/rowAxis1.html @@ -0,0 +1,29 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/rowAxis2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/rowAxis2.html new file mode 100644 index 000000000..a1ea3da40 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/rowAxis2.html @@ -0,0 +1,29 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/rowAxis3.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/rowAxis3.html new file mode 100644 index 000000000..cbfb07ded --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/rowAxis3.html @@ -0,0 +1,29 @@ + + + + + + + +
+
One One One One One One One One One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/rowAxis4.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/rowAxis4.html new file mode 100644 index 000000000..af69c74a2 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/rowAxis4.html @@ -0,0 +1,29 @@ + + + + + + + +
+
One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/rowAxis5.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/rowAxis5.html new file mode 100644 index 000000000..996e12bb5 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/rowAxis5.html @@ -0,0 +1,29 @@ + + + + + + + +
+
One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/rowAxis6.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/rowAxis6.html new file mode 100644 index 000000000..1b7c6ce55 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/rowAxis6.html @@ -0,0 +1,29 @@ + + + + + + + +
+
One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/rowAxis7.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/rowAxis7.html new file mode 100644 index 000000000..6b7c4f345 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridRelativeValuesTest/rowAxis7.html @@ -0,0 +1,34 @@ + + + + + + + +
+
One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/auto-cols-fixed.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/auto-cols-fixed.html new file mode 100644 index 000000000..041a1e364 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/auto-cols-fixed.html @@ -0,0 +1,32 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_auto-cols-fixed.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_auto-cols-fixed.pdf new file mode 100644 index 000000000..d1bdf5de4 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_auto-cols-fixed.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-borders.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-borders.pdf index 16361ef04..3ccd5f7e1 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-borders.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-borders.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-column-gap.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-column-gap.pdf index dd2599181..e21ed3e12 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-column-gap.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-column-gap.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-column-start-end.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-column-start-end.pdf index 03d600432..306a0199d 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-column-start-end.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-column-start-end.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-different-width-units.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-different-width-units.pdf index 049085859..d590d4094 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-different-width-units.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-different-width-units.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-enormous-size.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-enormous-size.pdf index 7209befdf..9e4758f11 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-enormous-size.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-enormous-size.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-fit-content-auto.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-fit-content-auto.pdf index c1befa55c..4e959baf4 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-fit-content-auto.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-fit-content-auto.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-fit-content.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-fit-content.pdf index 2d1fd6e21..80f8ac62f 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-fit-content.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-fit-content.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-fr.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-fr.pdf index eb10820e3..aa834ce18 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-fr.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-fr.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-grid-gap.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-grid-gap.pdf index f78d00bf4..87b82a248 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-grid-gap.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-grid-gap.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-height-width.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-height-width.pdf index 37bcff66a..20bcdd09e 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-height-width.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-height-width.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-margin.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-margin.pdf index 0dec1d52c..08ccd6db5 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-margin.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-margin.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-minmax.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-minmax.pdf index 310d81e36..a54c9fa1a 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-minmax.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-minmax.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-mixed.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-mixed.pdf index f80305169..a0ad80c38 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-mixed.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-mixed.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-nested.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-nested.pdf index a2e265608..cd7dff502 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-nested.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-nested.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-padding.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-padding.pdf index 733fb278d..842436236 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-padding.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-padding.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-repeat-minmax.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-repeat-minmax.pdf index c023cd7cf..9e4a7f3af 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-repeat-minmax.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-repeat-minmax.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-repeat.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-repeat.pdf index f227631a7..124f0f429 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-repeat.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-repeat.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-with-flex-and-gaps.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-with-flex-and-gaps.pdf new file mode 100644 index 000000000..5c5fa012d Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-with-flex-and-gaps.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-without-other-props-2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-without-other-props-2.pdf new file mode 100644 index 000000000..b5cb62907 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-without-other-props-2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-without-other-props.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-without-other-props.pdf index 8af7f9964..06e920bb3 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-without-other-props.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/cmp_template-cols-without-other-props.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/template-cols-grid-gap.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/template-cols-grid-gap.html index d4ed91138..58dc0c7ed 100644 --- a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/template-cols-grid-gap.html +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/template-cols-grid-gap.html @@ -5,7 +5,7 @@ .wrapper { display: grid; grid-template-columns: 50px 50px 50px 50px 50px; - grid-gap: 5px; + gap: 5px; } .wrapper > div { diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/template-cols-minmax.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/template-cols-minmax.html index a9fd734e7..e5dbefd82 100644 --- a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/template-cols-minmax.html +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/template-cols-minmax.html @@ -4,7 +4,7 @@ + + +
+ +
+
+ Bugfixes, finalize grid track sizing algorithm, add minmax support +
+
+ Support linenames +
+
+ Adding proper margins/paddings/borders support +
+
+ Adding grid shorthands support +
+
+ Adding proper margin collapsing support +
+
+
+ + + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/template-cols-without-other-props-2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/template-cols-without-other-props-2.html new file mode 100644 index 000000000..0c18d0d5a --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateColumnTest/template-cols-without-other-props-2.html @@ -0,0 +1,33 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-borders.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-borders.pdf index c2a9d987b..ac78f7551 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-borders.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-borders.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-grid-row-col-gap.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-grid-row-col-gap.pdf index d07b1cd95..bd677facf 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-grid-row-col-gap.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-grid-row-col-gap.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-grid-start-end.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-grid-start-end.pdf index 0bf16b228..ef2191897 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-grid-start-end.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-grid-start-end.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-margins-paddings.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-margins-paddings.pdf index b91ae9d0d..1e34aee73 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-margins-paddings.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-margins-paddings.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-minmax.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-minmax.pdf index 7753bf254..d12d03139 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-minmax.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-minmax.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-mixed.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-mixed.pdf index 87d06b32a..7bdb19410 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-mixed.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-mixed.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-multipage.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-multipage.pdf index 3f96a8d8a..08412d6c1 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-multipage.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-multipage.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-nested.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-nested.pdf index af214b411..d61b66ae0 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-nested.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-nested.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-repeat-minmax.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-repeat-minmax.pdf index ef4cb274b..88754ac01 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-repeat-minmax.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-repeat-minmax.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-rows-auto.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-rows-auto.pdf index 6853cba6f..718458bd8 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-rows-auto.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-rows-auto.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-rows-fit-content-auto.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-rows-fit-content-auto.pdf index 5ea0af90e..1821a9392 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-rows-fit-content-auto.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-rows-fit-content-auto.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-without-other-props.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-without-other-props.pdf index d93467992..6c7e2b7ed 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-without-other-props.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/cmp_template-combined-without-other-props.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/template-combined-grid-row-col-gap.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/template-combined-grid-row-col-gap.html index fbab9b217..f01307ddb 100644 --- a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/template-combined-grid-row-col-gap.html +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/template-combined-grid-row-col-gap.html @@ -8,9 +8,9 @@ grid-template-rows: 250px 50px 50px; } - .wrapper { - grid-gap: 5px; - } + .wrapper { + gap: 5px; + } .wrapper > div, .wrapper2 > div { border: 2px solid darkblue; @@ -18,9 +18,9 @@ } .wrapper2 { - column-gap: 10px; - row-gap: 3px; - } + column-gap: 10px; + row-gap: 3px; + } diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/template-combined-grid-start-end.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/template-combined-grid-start-end.html index e30e01fcc..24e8bd7af 100644 --- a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/template-combined-grid-start-end.html +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/template-combined-grid-start-end.html @@ -6,7 +6,7 @@ display: grid; grid-template-columns: 100px 150px; grid-template-rows: 50px 50px 50px; - grid-gap: 5px; + gap: 5px; } .wrapper > div { diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/template-combined-minmax.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/template-combined-minmax.html index 0d4f542fd..785c60f21 100644 --- a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/template-combined-minmax.html +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateCombinedTest/template-combined-minmax.html @@ -4,8 +4,8 @@ + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/basic_absolute_position.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/basic_absolute_position.html new file mode 100644 index 000000000..84853ecc1 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/basic_absolute_position.html @@ -0,0 +1,37 @@ + + + + + + + +
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+ +
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/basic_border.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/basic_border.html new file mode 100644 index 000000000..33802ceb7 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/basic_border.html @@ -0,0 +1,35 @@ + + + + + + + +
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+ +
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/border_big.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/border_big.html new file mode 100644 index 000000000..b053a324b --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/border_big.html @@ -0,0 +1,126 @@ + + + + + + + +
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/border_big_with_overflow_x.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/border_big_with_overflow_x.html new file mode 100644 index 000000000..e32a75422 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/border_big_with_overflow_x.html @@ -0,0 +1,126 @@ + + + + + + + +
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_backgroundItemsOnTopOfBackgroundGrid.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_backgroundItemsOnTopOfBackgroundGrid.pdf new file mode 100644 index 000000000..6c905c2c1 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_backgroundItemsOnTopOfBackgroundGrid.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_basic_border.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_basic_border.pdf new file mode 100644 index 000000000..5d4f00689 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_basic_border.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_border_big.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_border_big.pdf new file mode 100644 index 000000000..3c926a49a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_border_big.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_border_big_with_overflow_x.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_border_big_with_overflow_x.pdf new file mode 100644 index 000000000..b492770e1 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_border_big_with_overflow_x.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_margin_all.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_margin_all.pdf new file mode 100644 index 000000000..987449d4e Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_margin_all.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_margin_all_empty.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_margin_all_empty.pdf new file mode 100644 index 000000000..004132618 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_margin_all_empty.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_margin_all_with_empty_div.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_margin_all_with_empty_div.pdf new file mode 100644 index 000000000..ec8427685 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_margin_all_with_empty_div.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_paddingAll.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_paddingAll.pdf new file mode 100644 index 000000000..7e4e8a049 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_paddingAll.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_paddingAllToBigForWidth.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_paddingAllToBigForWidth.pdf new file mode 100644 index 000000000..0ec07d29f Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_paddingAllToBigForWidth.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_padding_all_with_empty_div.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_padding_all_with_empty_div.pdf new file mode 100644 index 000000000..5548252eb Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_padding_all_with_empty_div.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_padding_overflow_x.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_padding_overflow_x.pdf new file mode 100644 index 000000000..e02f0bf02 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/cmp_padding_overflow_x.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/margin_all.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/margin_all.html new file mode 100644 index 000000000..be8848ad3 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/margin_all.html @@ -0,0 +1,27 @@ + + + + + + + +

+ top +

+
+

cell 1

+

cell 2

+

cell 3

+
+

+ top +

+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/margin_all_empty.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/margin_all_empty.html new file mode 100644 index 000000000..5a69525e1 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/margin_all_empty.html @@ -0,0 +1,26 @@ + + + + + + + +

+ top +

+
+ +
+

+ top +

+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/margin_all_with_empty_div.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/margin_all_with_empty_div.html new file mode 100644 index 000000000..4248f61b8 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/margin_all_with_empty_div.html @@ -0,0 +1,28 @@ + + + + + + + +

+ top +

+
+
+
+
+
+

+ top +

+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/multiPagePadding.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/multiPagePadding.html new file mode 100644 index 000000000..502aad0f1 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/multiPagePadding.html @@ -0,0 +1,172 @@ + + + + + + + +
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+ +
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/paddingAll.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/paddingAll.html new file mode 100644 index 000000000..c62fcb3f7 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/paddingAll.html @@ -0,0 +1,35 @@ + + + + + + + +
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+ +
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/paddingAllToBigForWidth.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/paddingAllToBigForWidth.html new file mode 100644 index 000000000..f1421ad58 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/paddingAllToBigForWidth.html @@ -0,0 +1,35 @@ + + + + + + + +
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+ +
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/padding_all_with_empty_div.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/padding_all_with_empty_div.html new file mode 100644 index 000000000..629e6b177 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/padding_all_with_empty_div.html @@ -0,0 +1,30 @@ + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/padding_overflow_x.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/padding_overflow_x.html new file mode 100644 index 000000000..247281747 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateElementPropertyContainerTest/padding_overflow_x.html @@ -0,0 +1,35 @@ + + + + + + + +
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+
item
+ +
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-2-levels-areas.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-2-levels-areas.pdf new file mode 100644 index 000000000..4fb09cd35 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-2-levels-areas.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-3-forms.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-3-forms.pdf new file mode 100644 index 000000000..979091146 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-3-forms.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-3-levels-multiple.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-3-levels-multiple.pdf new file mode 100644 index 000000000..da72a159e Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-3-levels-multiple.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-3-levels-tables.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-3-levels-tables.pdf new file mode 100644 index 000000000..768736c61 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-3-levels-tables.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-3-levels.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-3-levels.pdf new file mode 100644 index 000000000..2d15faed5 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-3-levels.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-areas-with-border.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-areas-with-border.pdf new file mode 100644 index 000000000..1591e82e0 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-areas-with-border.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-areas.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-areas.pdf new file mode 100644 index 000000000..ee8aea54b Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-areas.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-articles.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-articles.pdf new file mode 100644 index 000000000..7c7d93993 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-articles.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-forms.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-forms.pdf new file mode 100644 index 000000000..f2956ec27 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-forms.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-grid.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-grid.pdf new file mode 100644 index 000000000..4536aeaa8 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-grid.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-images.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-images.pdf new file mode 100644 index 000000000..a864ae77a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-images.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-lists-odd-even.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-lists-odd-even.pdf new file mode 100644 index 000000000..1d1d155e1 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-lists-odd-even.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-lists.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-lists.pdf new file mode 100644 index 000000000..763a844f1 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-lists.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-mixed-content.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-mixed-content.pdf new file mode 100644 index 000000000..f46ba21e4 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-mixed-content.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-paragraphs.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-paragraphs.pdf new file mode 100644 index 000000000..24a70fb9c Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-paragraphs.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-table-nested-grid.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-table-nested-grid.pdf new file mode 100644 index 000000000..c208e2287 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-table-nested-grid.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-table-with-mixed-content.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-table-with-mixed-content.pdf new file mode 100644 index 000000000..53c84ff1a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-table-with-mixed-content.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-table.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-table.pdf new file mode 100644 index 000000000..f1d7cf0f2 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/cmp_grid-nested-table.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-2-levels-areas.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-2-levels-areas.html new file mode 100644 index 000000000..9648c4e17 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-2-levels-areas.html @@ -0,0 +1,98 @@ + + + + + + + +
+
L1: 1
+
L1: 2
+
+ L1: 3 +
+
L2: 1
+
+ L2: 2 +
+

Header text

+ +
Main content
+
Footer text
+
+
+
L2: 3
+
+
+
L1: 4
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-3-forms.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-3-forms.html new file mode 100644 index 000000000..13199f5d3 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-3-forms.html @@ -0,0 +1,108 @@ + + + + + + + +
+
Level 1: 1
+
Level 1: 2
+
+ Level 1:3 +
+
Level 2: 1
+
+ Level 2: 2 +
+
Level 3: 1
+
+
+
+
+
+
Level 3: 2
+
Level 3: 3
+

Favorite season?

+
+ +
+ +
+ +
+ +
+
+
+
Level 3: 4
+
+
+
Level 2: 3
+
+ +
+
+
+
+
Level 1:4
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-3-levels-multiple.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-3-levels-multiple.html new file mode 100644 index 000000000..f64623006 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-3-levels-multiple.html @@ -0,0 +1,105 @@ + + + + + + + +
+
Level 1: 1
+
Level 1: 2
+
+
Level 2: 1
+
+ Level 2: 2 +
+
Level 2: 3
+
+
+
+ Level 1:3 +

Hi! Here is a random link that will lead you nowhere.

+

A title that won't give away anything

+
+
Level 2: 1
+
+ Level 2: 2 +
+
Level 2: 3
+
Level 2: 4
+
+
+
Level 1:4
+
Level 1:5
+
+
Level 3: 1
+
Level 3: 2
+
Level 3: 3
+
Level 3: 4
+
Level 3: 5
+
Level 3: 7
+
Level 3: 8
+
+
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-3-levels-tables.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-3-levels-tables.html new file mode 100644 index 000000000..9cd444157 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-3-levels-tables.html @@ -0,0 +1,111 @@ + + + + + + + +
+
Level 1: 1
+
Level 1: 2
+
+ Level 1:3 +
+
Level 2: 1
+
+ Level 2: 2 + + + + + + + + + + + + + + + + + +
H1H2
+
+
1
+
2
+
3
+
4
+
+
R1C2
R2C1R2C2
+
+
Level 2: 3
+
+
+
Level 1:4
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-3-levels.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-3-levels.html new file mode 100644 index 000000000..391c300a3 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-3-levels.html @@ -0,0 +1,82 @@ + + + + + + + +
+
Level 1: 1
+
Level 1: 2
+
+ Level 1:3 +
+
Level 2: 1
+
+ Level 2: 2 +
+
Level 3: 1
+
Level 3: 2
+
Level 3: 3
+
Level 3: 4
+
Level 3: 5
+
+
+
Level 2: 3
+
+
+
Level 1:4
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-areas-with-border.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-areas-with-border.html new file mode 100644 index 000000000..1641de76e --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-areas-with-border.html @@ -0,0 +1,82 @@ + + + + + + + +
+
L 1: 1
+
L 1: 2 +
+

Header text

+ +
Main content
+
Footer text
+
+
+
+ L 1:3 +
+
L 1:4
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-areas.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-areas.html new file mode 100644 index 000000000..a94d82b56 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-areas.html @@ -0,0 +1,81 @@ + + + + + + + +
+
L 1: 1
+
L 1: 2 +
+

Header text

+ +
Main content
+
Footer text
+
+
+
+ L 1:3 +
+
L 1:4
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-articles.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-articles.html new file mode 100644 index 000000000..7748c783e --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-articles.html @@ -0,0 +1,50 @@ + + + + + + +
+
+
+

Lorem Ipsum p1

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean magna ante, viverra in auctor eget, semper ac nisl.

+
+
+
+
+

Lorem Ipsum p2

+

Praesent ut euismod dui. Morbi vel aliquet dolor, nec vestibulum magna. Sed euismod libero at nulla pulvinar, quis blandit est cursus. Nullam gravida sit amet metus eu varius. Praesent at tortor sed lorem imperdiet cursus. Quisque aliquam pretium lacus quis tincidunt. Aliquam vel libero egestas, mollis ligula ut, sollicitudin mi.

+
+
+
+
+

Lorem Ipsum p3

+

Suspendisse et neque id mi mattis dignissim. Vivamus laoreet est a dolor dignissim blandit. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aliquam eget tellus in enim mattis iaculis.

+
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-forms.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-forms.html new file mode 100644 index 000000000..5f05ef234 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-forms.html @@ -0,0 +1,83 @@ + + + + + + Grid Layout with Nested Form + + + +
+
1
+
2
+
3
+ +
+ + +
+
+ +
+
+
+
+ + + + + + + +
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-grid.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-grid.html new file mode 100644 index 000000000..cd64f267e --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-grid.html @@ -0,0 +1,81 @@ + + + + + + +
+
+
+
1
+
2
+
3
+
4
+
+
+
Lonely 2
+
+
+
1
+
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
+
+
+
+
1
+
2
+
3
+
4
+
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-images.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-images.html new file mode 100644 index 000000000..d6953482c --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-images.html @@ -0,0 +1,51 @@ + + + + + + +
+
+

jpg

+ Star +
+
+

png

+ Pentagon +
+
+

bmp

+ Circle +
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-lists-odd-even.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-lists-odd-even.html new file mode 100644 index 000000000..1cb831250 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-lists-odd-even.html @@ -0,0 +1,90 @@ + + + + + + +
+
+

Ordered List

+
    +
  1. Ordered1
  2. +
  3. Ordered2
  4. +
  5. Ordered3
  6. +
  7. Ordered4
  8. +
  9. Ordered5
  10. +
+
+
+

Unordered List

+
    +
  • Unordered1
  • +
  • Unordered2
  • +
  • Unordered3
  • +
  • Unordered4
  • +
  • Unordered5
  • +
  • Unordered6
  • +
  • Unordered7
  • +
  • Unordered8
  • +
+
+
+

Ordered List

+
    +
  1. Ordered1
  2. +
  3. Ordered2
  4. +
  5. Ordered3
  6. +
  7. Ordered4
  8. +
  9. Ordered5
  10. +
+
+
+

Unordered List

+
    +
  • Unordered1
  • +
  • Unordered2
  • +
  • Unordered3
  • +
  • Unordered4
  • +
  • Unordered5
  • +
  • Unordered6
  • +
  • Unordered7
  • +
  • Unordered8
  • +
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-lists.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-lists.html new file mode 100644 index 000000000..ae4f6597a --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-lists.html @@ -0,0 +1,85 @@ + + + + + + +
+
+

Ordered List

+
    +
  1. Ordered1
  2. +
  3. Ordered2
  4. +
  5. Ordered3
  6. +
  7. Ordered4
  8. +
  9. Ordered5
  10. +
+
+
+

Unordered List

+
    +
  • Unordered1
  • +
  • Unordered2
  • +
  • Unordered3
  • +
  • Unordered4
  • +
  • Unordered5
  • +
  • Unordered6
  • +
  • Unordered7
  • +
  • Unordered8
  • +
+
+
+

Ordered List

+
    +
  1. Ordered1
  2. +
  3. Ordered2
  4. +
  5. Ordered3
  6. +
  7. Ordered4
  8. +
  9. Ordered5
  10. +
+
+
+

Unordered List

+
    +
  • Unordered1
  • +
  • Unordered2
  • +
  • Unordered3
  • +
  • Unordered4
  • +
  • Unordered5
  • +
  • Unordered6
  • +
  • Unordered7
  • +
  • Unordered8
  • +
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-mixed-content.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-mixed-content.html new file mode 100644 index 000000000..6217dee4a --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-mixed-content.html @@ -0,0 +1,111 @@ + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + +
Header 1Header 2Header 3
Input 1Input 2Input 3
Input 4Input 5Input 6
+
+
+
    +
  • Item 1
  • +
  • Item 2
  • +
  • Item 3
  • +
+
+
+
+ +
+ +
+ +
+
+
+
+ Nested Div Text +
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-paragraphs.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-paragraphs.html new file mode 100644 index 000000000..dd81dd0be --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-paragraphs.html @@ -0,0 +1,60 @@ + + + + + + +
+
+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean magna ante, viverra in auctor eget, semper ac nisl. +

+ Praesent ut euismod dui. Morbi vel aliquet dolor, nec vestibulum magna. Sed euismod libero at nulla pulvinar, quis blandit est cursus. Nullam gravida sit amet metus eu varius. Praesent at tortor sed lorem imperdiet cursus. Quisque aliquam pretium lacus quis tincidunt. Aliquam vel libero egestas, mollis ligula ut, sollicitudin mi. +

+ Suspendisse et neque id mi mattis dignissim. Vivamus laoreet est a dolor dignissim blandit. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aliquam eget tellus in enim mattis iaculis. +

+

+

+
+
+

2nd elem

+
+
+

3rd elem

+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-table-nested-grid.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-table-nested-grid.html new file mode 100644 index 000000000..ecf7c0b57 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-table-nested-grid.html @@ -0,0 +1,85 @@ + + + + + + +
+
1
+
+ + + + + + + + + + + + + + + + + +
H1H2
+
+
1
+
2
+
3
+
4
+
+
R1C2
R2C1R2C2
+
+
3
+
4
+
5
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-table-with-mixed-content.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-table-with-mixed-content.html new file mode 100644 index 000000000..d3a15aa8c --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-table-with-mixed-content.html @@ -0,0 +1,122 @@ + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + +
H1H2H3
+
    +
  1. Ordered1
  2. +
  3. Ordered2
  4. +
  5. Ordered3
  6. +
  7. Ordered4
  8. +
  9. Ordered5
  10. +
+
+
+ +
+ +
+ +
+
+
+

Article Title

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean magna ante, viverra in auctor eget, semper ac nisl.

+
+
+ + +
    +
  • List item
  • +
  • List item
  • +
  • List item
  • +
  • List item
  • +
  • List item
  • +
+
+
+ Text nested div +
+
+
+
+ L1:2 +
+
+ L1:3 +
+
+ L1:4 +
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-table.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-table.html new file mode 100644 index 000000000..6410365fe --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/grid-nested-table.html @@ -0,0 +1,80 @@ + + + + + + +
+
+

1

+
+
+ + + + + + + + + + + + + + + + + + + + +
H1H2H3
+

Row 1 Col 1

+
+

Row 1 Col 2

+
+

Row 1 Col 3

+
+

Row 2 Col 1

+
+

Row 2 Col 2

+
+

Row 2 Col 3

+
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/test-bmp.bmp b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/test-bmp.bmp new file mode 100644 index 000000000..6a249aed3 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/test-bmp.bmp differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/test-jpg.jpg b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/test-jpg.jpg new file mode 100644 index 000000000..c777a1e86 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/test-jpg.jpg differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/test-png.png b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/test-png.png new file mode 100644 index 000000000..e8422f8b8 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateNestedTest/test-png.png differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/auto-rows-fixed.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/auto-rows-fixed.html new file mode 100644 index 000000000..5d364ae93 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/auto-rows-fixed.html @@ -0,0 +1,27 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_auto-rows-fixed.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_auto-rows-fixed.pdf new file mode 100644 index 000000000..58d5a20fa Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_auto-rows-fixed.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_row-fit-content-percent.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_row-fit-content-percent.pdf new file mode 100644 index 000000000..d9bc8513b Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_row-fit-content-percent.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-auto.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-auto.pdf index 3428f48f3..cd2d5f284 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-auto.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-auto.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-borders.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-borders.pdf index e91b84714..e4bb561a6 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-borders.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-borders.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-different-width-units.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-different-width-units.pdf index 941e063db..d1c1f9852 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-different-width-units.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-different-width-units.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-fit-content-auto.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-fit-content-auto.pdf index 9c31c5430..3b36b94e3 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-fit-content-auto.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-fit-content-auto.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-fit-content.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-fit-content.pdf index 91116d54f..d1bac77ac 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-fit-content.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-fit-content.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-fr.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-fr.pdf index 34edcad0e..b157e00af 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-fr.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-fr.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-grid-gap.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-grid-gap.pdf index bc589bc01..1e8cc7f3e 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-grid-gap.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-grid-gap.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-height-width.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-height-width.pdf index fb46eef08..dafaa8ec6 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-height-width.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-height-width.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-margin.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-margin.pdf index 54c2f4ef2..a24206eb0 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-margin.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-margin.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-minmax.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-minmax.pdf index 94ef42ed9..389d094b5 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-minmax.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-minmax.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-mixed.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-mixed.pdf index 389b9fb78..4bbee49bf 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-mixed.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-mixed.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-multipage.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-multipage.pdf index 737f86019..ba8218a7f 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-multipage.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-multipage.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-nested.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-nested.pdf index 824b589e3..ebb2d5589 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-nested.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-nested.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-padding.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-padding.pdf index 5fea57ad6..2ffec03c0 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-padding.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-padding.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-repeat-minmax.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-repeat-minmax.pdf index 7ee8de464..3fa156deb 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-repeat-minmax.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-repeat-minmax.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-repeat.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-repeat.pdf index 70cd2816a..00ceaec62 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-repeat.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-repeat.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-row-gap.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-row-gap.pdf index 6bb8575b4..f58a42a41 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-row-gap.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-row-gap.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-start-end.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-start-end.pdf index dd779ec49..568506b69 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-start-end.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-start-end.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-without-other-props.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-without-other-props.pdf index 4277fcce5..ba67f452e 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-without-other-props.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/cmp_template-rows-without-other-props.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/row-fit-content-percent.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/row-fit-content-percent.html new file mode 100644 index 000000000..6f5b0bcac --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/row-fit-content-percent.html @@ -0,0 +1,29 @@ + + + + + + + +
+
One One One One
+
Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/template-rows-grid-gap.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/template-rows-grid-gap.html index 55f95cad4..bb640a81a 100644 --- a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/template-rows-grid-gap.html +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplateRowTest/template-rows-grid-gap.html @@ -5,7 +5,7 @@ .wrapper { display: grid; grid-template-rows: 50px 50px 50px 50px 50px; - grid-gap: 5px; + gap: 5px; } .wrapper > div { diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFillRepeatWithFlexMinMaxTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFillRepeatWithFlexMinMaxTest.html new file mode 100644 index 000000000..a175d2409 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFillRepeatWithFlexMinMaxTest.html @@ -0,0 +1,30 @@ + + + + + + +
+
One One One
+
Two Two Two
+
Three Three Three
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFillRepeatWithGapsTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFillRepeatWithGapsTest.html new file mode 100644 index 000000000..5277e5637 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFillRepeatWithGapsTest.html @@ -0,0 +1,36 @@ + + + + + + +
+
One One One
+
Two Two Two
+
Three Three Three
+
Four Four Four
+
Five Five Five
+
Six Six Six
+
Seven Seven Seven
+
Eight Eight Eight
+
Nine Nine Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFillWithDefiniteMinMaxTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFillWithDefiniteMinMaxTest.html new file mode 100644 index 000000000..361066b1a --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFillWithDefiniteMinMaxTest.html @@ -0,0 +1,37 @@ + + + + + + +
+
One One One
+
Two Two Two
+
Three Three Three
+
Four Four Four
+
Five Five Five
+
Six Six Six
+
Seven Seven Seven
+
Eight Eight Eight
+
Nine Nine Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFillWithIndefiniteMinMaxTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFillWithIndefiniteMinMaxTest.html new file mode 100644 index 000000000..28dcd46e0 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFillWithIndefiniteMinMaxTest.html @@ -0,0 +1,38 @@ + + + + + + +
+
One One One
+
Two Two Two
+
Three Three Three
+
Four Four Four
+
Five Five Five
+
Six Six Six
+
Seven Seven Seven
+
Eight Eight Eight
+
Nine Nine Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFitOnIntrinsicAreaTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFitOnIntrinsicAreaTest.html new file mode 100644 index 000000000..459124f60 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFitOnIntrinsicAreaTest.html @@ -0,0 +1,35 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Fiv
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFitOnIntrinsicAreaWithLargeBorderTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFitOnIntrinsicAreaWithLargeBorderTest.html new file mode 100644 index 000000000..72ef7285e --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFitOnIntrinsicAreaWithLargeBorderTest.html @@ -0,0 +1,61 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Fiv
+
+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod + tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim + veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea + commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed + do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad + minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex + ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed + do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad + minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex + ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed + do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad + minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex + ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. +

+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFitOnIntrinsicAreaWithLargeMarginPaddingTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFitOnIntrinsicAreaWithLargeMarginPaddingTest.html new file mode 100644 index 000000000..a110df7f1 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFitOnIntrinsicAreaWithLargeMarginPaddingTest.html @@ -0,0 +1,36 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Fiv
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFitRepeatWithFlexMinMaxTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFitRepeatWithFlexMinMaxTest.html new file mode 100644 index 000000000..712aec8d4 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFitRepeatWithFlexMinMaxTest.html @@ -0,0 +1,30 @@ + + + + + + +
+
One One One
+
Two Two Two
+
Three Three Three
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFitWithGapsTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFitWithGapsTest.html new file mode 100644 index 000000000..1949f99a9 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFitWithGapsTest.html @@ -0,0 +1,35 @@ + + + + + + +
+
Oneoneone one one one
+
TwoTwoTwo Two Two Two Two
+
Three
+
Four Four Four Four
+
Fiv Fiv Fiv Fiv Fiv Fiv
+
Six
+
Seven Seven Seven Seven Seven Seven
+
Eight
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFitWithLargeBorderTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFitWithLargeBorderTest.html new file mode 100644 index 000000000..238cb9297 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFitWithLargeBorderTest.html @@ -0,0 +1,61 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Fiv
+
+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod + tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim + veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea + commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed + do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad + minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex + ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed + do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad + minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex + ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed + do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad + minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex + ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. +

+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFitWithSingleCellTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFitWithSingleCellTest.html new file mode 100644 index 000000000..b52dd9b2f --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoFitWithSingleCellTest.html @@ -0,0 +1,28 @@ + + + + + + +
+
One
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoRepeatOnIntrinsicAreaTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoRepeatOnIntrinsicAreaTest.html new file mode 100644 index 000000000..4aa3e8b88 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoRepeatOnIntrinsicAreaTest.html @@ -0,0 +1,31 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Fiv
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoRepeatWithFitContentTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoRepeatWithFitContentTest.html new file mode 100644 index 000000000..6186454d8 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoRepeatWithFitContentTest.html @@ -0,0 +1,31 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Fiv
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoRepeatWithIntrinsicArgumentTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoRepeatWithIntrinsicArgumentTest.html new file mode 100644 index 000000000..6fbc6b02e --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoRepeatWithIntrinsicArgumentTest.html @@ -0,0 +1,31 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Fiv
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoRepeatWithLeadingMaxContentTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoRepeatWithLeadingMaxContentTest.html new file mode 100644 index 000000000..7b5602cc9 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/autoRepeatWithLeadingMaxContentTest.html @@ -0,0 +1,34 @@ + + + + + + +
+
Oneoneone one one one
+
TwoTwoTwo Two Two Two Two
+
Three
+
Four Four Four Four
+
Fiv Fiv Fiv Fiv Fiv Fiv
+
Six
+
Seven Seven Seven Seven Seven Seven
+
Eight
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnDenseFlowTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnDenseFlowTest.html new file mode 100644 index 000000000..69881108e --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnDenseFlowTest.html @@ -0,0 +1,47 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnFewDivs2Test.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnFewDivs2Test.html new file mode 100644 index 000000000..0df768476 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnFewDivs2Test.html @@ -0,0 +1,32 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnFewDivsTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnFewDivsTest.html new file mode 100644 index 000000000..2f6960678 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnFewDivsTest.html @@ -0,0 +1,32 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnFewDivsWithDisabledGridLayoutTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnFewDivsWithDisabledGridLayoutTest.html new file mode 100644 index 000000000..2f6960678 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnFewDivsWithDisabledGridLayoutTest.html @@ -0,0 +1,32 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnFewDivsWithFrTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnFewDivsWithFrTest.html new file mode 100644 index 000000000..03db59513 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnFewDivsWithFrTest.html @@ -0,0 +1,32 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnFlowTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnFlowTest.html new file mode 100644 index 000000000..a9a3d975e --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnFlowTest.html @@ -0,0 +1,47 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnMultiPageTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnMultiPageTest.html new file mode 100644 index 000000000..9b01efdb4 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnMultiPageTest.html @@ -0,0 +1,33 @@ + + + + + + + +
+
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnOneDivTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnOneDivTest.html new file mode 100644 index 000000000..33b4eb5fe --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnOneDivTest.html @@ -0,0 +1,34 @@ + + + + + + + +
+
+
One
+
Two
+
Three
+
Four
+
Five
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowFewDivs1Test.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowFewDivs1Test.html new file mode 100644 index 000000000..c0d9e3f5b --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowFewDivs1Test.html @@ -0,0 +1,33 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowFewDivs2Test.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowFewDivs2Test.html new file mode 100644 index 000000000..e1682b1c4 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowFewDivs2Test.html @@ -0,0 +1,33 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowFewDivs3Test.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowFewDivs3Test.html new file mode 100644 index 000000000..fc02b931d --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowFewDivs3Test.html @@ -0,0 +1,33 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowFewDivs4Test.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowFewDivs4Test.html new file mode 100644 index 000000000..b9bf3ab23 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowFewDivs4Test.html @@ -0,0 +1,38 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
Ten
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd10Test.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd10Test.html new file mode 100644 index 000000000..caac9ef8e --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd10Test.html @@ -0,0 +1,39 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd11Test.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd11Test.html new file mode 100644 index 000000000..b55768f38 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd11Test.html @@ -0,0 +1,50 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+ + + + + + +
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd12Test.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd12Test.html new file mode 100644 index 000000000..8212e9c96 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd12Test.html @@ -0,0 +1,51 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd13Test.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd13Test.html new file mode 100644 index 000000000..3face4407 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd13Test.html @@ -0,0 +1,39 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd14Test.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd14Test.html new file mode 100644 index 000000000..6a44200c5 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd14Test.html @@ -0,0 +1,38 @@ + + + + + + + + +
+
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit,
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit,
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit,
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit,
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit,
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd15Test.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd15Test.html new file mode 100644 index 000000000..78da40c98 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd15Test.html @@ -0,0 +1,40 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd16Test.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd16Test.html new file mode 100644 index 000000000..d12f9aae4 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd16Test.html @@ -0,0 +1,39 @@ + + + + + + +
+
One
+
Two
+
Three
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd17Test.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd17Test.html new file mode 100644 index 000000000..ba845d248 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd17Test.html @@ -0,0 +1,65 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+ +
One
+
One
+
One
+
One
+
One
+
One
+
One
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd18Test.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd18Test.html new file mode 100644 index 000000000..40bac8e81 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd18Test.html @@ -0,0 +1,39 @@ + + + + + + +
+
One One One One One One
+
Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd19Test.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd19Test.html new file mode 100644 index 000000000..c0cee8e86 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd19Test.html @@ -0,0 +1,43 @@ + + + + + + +
+
One
+
Two
+
two.5
+
Three
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd1Test.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd1Test.html new file mode 100644 index 000000000..bf61d1131 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd1Test.html @@ -0,0 +1,66 @@ + + + + + basic test #1 + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd2Test.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd2Test.html new file mode 100644 index 000000000..d6b6be546 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd2Test.html @@ -0,0 +1,43 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd3Test.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd3Test.html new file mode 100644 index 000000000..297cf181d --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd3Test.html @@ -0,0 +1,39 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd4Test.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd4Test.html new file mode 100644 index 000000000..4ccc1b354 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd4Test.html @@ -0,0 +1,37 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd5Test.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd5Test.html new file mode 100644 index 000000000..96e1e946a --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd5Test.html @@ -0,0 +1,40 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd6Test.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd6Test.html new file mode 100644 index 000000000..2c4cacbaf --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd6Test.html @@ -0,0 +1,44 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd7Test.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd7Test.html new file mode 100644 index 000000000..31b5b5027 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd7Test.html @@ -0,0 +1,40 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd8Test.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd8Test.html new file mode 100644 index 000000000..b4790cb4e --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd8Test.html @@ -0,0 +1,39 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd9Test.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd9Test.html new file mode 100644 index 000000000..14726183a --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEnd9Test.html @@ -0,0 +1,45 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+ +
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEndTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEndTest.html new file mode 100644 index 000000000..9bd032fb1 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEndTest.html @@ -0,0 +1,40 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEndWithInlineTextTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEndWithInlineTextTest.html new file mode 100644 index 000000000..e5a4ce181 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnRowStartEndWithInlineTextTest.html @@ -0,0 +1,44 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+ Five +
Six
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnStartEnd2Test.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnStartEnd2Test.html new file mode 100644 index 000000000..000f84d12 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnStartEnd2Test.html @@ -0,0 +1,37 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnStartEnd3Test.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnStartEnd3Test.html new file mode 100644 index 000000000..862c10bb1 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnStartEnd3Test.html @@ -0,0 +1,38 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnStartEnd4Test.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnStartEnd4Test.html new file mode 100644 index 000000000..525f1f2f2 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnStartEnd4Test.html @@ -0,0 +1,50 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnStartEndTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnStartEndTest.html new file mode 100644 index 000000000..861b59f7d --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicColumnStartEndTest.html @@ -0,0 +1,41 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicGridAfterParagraphTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicGridAfterParagraphTest.html new file mode 100644 index 000000000..66c2a462b --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicGridAfterParagraphTest.html @@ -0,0 +1,33 @@ + + + + + + + +

Some text

+
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicOnlyGridDisplayTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicOnlyGridDisplayTest.html new file mode 100644 index 000000000..815b80993 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicOnlyGridDisplayTest.html @@ -0,0 +1,31 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicRowDenseFlowTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicRowDenseFlowTest.html new file mode 100644 index 000000000..5a8c79633 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicRowDenseFlowTest.html @@ -0,0 +1,47 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicRowFewDivsTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicRowFewDivsTest.html new file mode 100644 index 000000000..62518cac2 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicRowFewDivsTest.html @@ -0,0 +1,32 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicRowFlowTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicRowFlowTest.html new file mode 100644 index 000000000..5f9bac33c --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicRowFlowTest.html @@ -0,0 +1,47 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicRowOneDivTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicRowOneDivTest.html new file mode 100644 index 000000000..b155ecdb6 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicRowOneDivTest.html @@ -0,0 +1,35 @@ + + + + + + + +
+
+
One
+
Two
+
Three
+
Four
+
Five
+
+
+

Hey there

+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicRowStartEndTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicRowStartEndTest.html new file mode 100644 index 000000000..fac30a9d7 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/basicRowStartEndTest.html @@ -0,0 +1,37 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFillRepeatWithFlexMinMaxTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFillRepeatWithFlexMinMaxTest.pdf new file mode 100644 index 000000000..8bb7c4772 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFillRepeatWithFlexMinMaxTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFillRepeatWithGapsTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFillRepeatWithGapsTest.pdf new file mode 100644 index 000000000..0380c666c Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFillRepeatWithGapsTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFillWithDefiniteMinMax.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFillWithDefiniteMinMax.pdf new file mode 100644 index 000000000..49274cd4f Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFillWithDefiniteMinMax.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFillWithDefiniteMinMaxTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFillWithDefiniteMinMaxTest.pdf new file mode 100644 index 000000000..aba913747 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFillWithDefiniteMinMaxTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFillWithIndefiniteMinMaxTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFillWithIndefiniteMinMaxTest.pdf new file mode 100644 index 000000000..421e85f37 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFillWithIndefiniteMinMaxTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFitOnIntrinsicAreaTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFitOnIntrinsicAreaTest.pdf new file mode 100644 index 000000000..c89b0834e Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFitOnIntrinsicAreaTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFitOnIntrinsicAreaWithLargeBorderTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFitOnIntrinsicAreaWithLargeBorderTest.pdf new file mode 100644 index 000000000..621cb5f49 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFitOnIntrinsicAreaWithLargeBorderTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFitOnIntrinsicAreaWithLargeMarginPaddingTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFitOnIntrinsicAreaWithLargeMarginPaddingTest.pdf new file mode 100644 index 000000000..ea54e450b Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFitOnIntrinsicAreaWithLargeMarginPaddingTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFitRepeatWithFlexMinMaxTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFitRepeatWithFlexMinMaxTest.pdf new file mode 100644 index 000000000..e8b0fc450 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFitRepeatWithFlexMinMaxTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFitWithGapsTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFitWithGapsTest.pdf new file mode 100644 index 000000000..50aa17091 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFitWithGapsTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFitWithLargeBorderTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFitWithLargeBorderTest.pdf new file mode 100644 index 000000000..1b095c13c Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFitWithLargeBorderTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFitWithSingleCellTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFitWithSingleCellTest.pdf new file mode 100644 index 000000000..6f51ef3cd Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoFitWithSingleCellTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoRepeatOnIntrinsicAreaTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoRepeatOnIntrinsicAreaTest.pdf new file mode 100644 index 000000000..19fced66a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoRepeatOnIntrinsicAreaTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoRepeatWithFitContentTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoRepeatWithFitContentTest.pdf new file mode 100644 index 000000000..74bf864ac Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoRepeatWithFitContentTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoRepeatWithIntrinsicArgumentTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoRepeatWithIntrinsicArgumentTest.pdf new file mode 100644 index 000000000..cac4e2aad Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoRepeatWithIntrinsicArgumentTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoRepeatWithLeadingMaxContentTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoRepeatWithLeadingMaxContentTest.pdf new file mode 100644 index 000000000..f9cb5f097 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_autoRepeatWithLeadingMaxContentTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnDenseFlowTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnDenseFlowTest.pdf new file mode 100644 index 000000000..260db6171 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnDenseFlowTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnFewDivs2Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnFewDivs2Test.pdf new file mode 100644 index 000000000..2fc071777 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnFewDivs2Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnFewDivsTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnFewDivsTest.pdf new file mode 100644 index 000000000..ec18cf761 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnFewDivsTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnFewDivsWithDisabledGridLayoutTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnFewDivsWithDisabledGridLayoutTest.pdf new file mode 100644 index 000000000..66a8c904e Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnFewDivsWithDisabledGridLayoutTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnFewDivsWithFrTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnFewDivsWithFrTest.pdf new file mode 100644 index 000000000..f6efd30f9 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnFewDivsWithFrTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnFlowTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnFlowTest.pdf new file mode 100644 index 000000000..39c64a854 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnFlowTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnMultiPageTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnMultiPageTest.pdf new file mode 100644 index 000000000..fc07dd7eb Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnMultiPageTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnOneDivTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnOneDivTest.pdf new file mode 100644 index 000000000..4237ca874 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnOneDivTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowFewDivs1Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowFewDivs1Test.pdf new file mode 100644 index 000000000..d2afb897a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowFewDivs1Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowFewDivs2Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowFewDivs2Test.pdf new file mode 100644 index 000000000..38fa015b6 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowFewDivs2Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowFewDivs3Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowFewDivs3Test.pdf new file mode 100644 index 000000000..91037037f Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowFewDivs3Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowFewDivs4Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowFewDivs4Test.pdf new file mode 100644 index 000000000..53fcc5266 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowFewDivs4Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd10Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd10Test.pdf new file mode 100644 index 000000000..152382732 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd10Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd11Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd11Test.pdf new file mode 100644 index 000000000..2de2830b0 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd11Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd12Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd12Test.pdf new file mode 100644 index 000000000..50351aaf2 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd12Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd13Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd13Test.pdf new file mode 100644 index 000000000..b842c3f80 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd13Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd14Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd14Test.pdf new file mode 100644 index 000000000..60fa4b05b Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd14Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd15Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd15Test.pdf new file mode 100644 index 000000000..7d382e714 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd15Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd16Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd16Test.pdf new file mode 100644 index 000000000..e7327ce0e Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd16Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd17Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd17Test.pdf new file mode 100644 index 000000000..e622b2e9a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd17Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd18Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd18Test.pdf new file mode 100644 index 000000000..841dc9cb8 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd18Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd19Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd19Test.pdf new file mode 100644 index 000000000..6f1c11301 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd19Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd1Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd1Test.pdf new file mode 100644 index 000000000..d3381d445 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd1Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd2Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd2Test.pdf new file mode 100644 index 000000000..94e73f02f Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd2Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd3Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd3Test.pdf new file mode 100644 index 000000000..db1461642 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd3Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd4Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd4Test.pdf new file mode 100644 index 000000000..2615ff203 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd4Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd5Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd5Test.pdf new file mode 100644 index 000000000..2db62889d Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd5Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd6Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd6Test.pdf new file mode 100644 index 000000000..9926424b5 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd6Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd7Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd7Test.pdf new file mode 100644 index 000000000..3db584777 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd7Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd8Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd8Test.pdf new file mode 100644 index 000000000..3b7d0c1fd Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd8Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd9Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd9Test.pdf new file mode 100644 index 000000000..98c0ab6c4 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEnd9Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEndTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEndTest.pdf new file mode 100644 index 000000000..ecfdaecd7 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEndTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEndWithInlineTextTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEndWithInlineTextTest.pdf new file mode 100644 index 000000000..93441e034 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnRowStartEndWithInlineTextTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnStartEnd2Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnStartEnd2Test.pdf new file mode 100644 index 000000000..4def9366c Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnStartEnd2Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnStartEnd3Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnStartEnd3Test.pdf new file mode 100644 index 000000000..1d36d7f88 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnStartEnd3Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnStartEndTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnStartEndTest.pdf new file mode 100644 index 000000000..36d9e664c Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicColumnStartEndTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicGridAfterParagraphTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicGridAfterParagraphTest.pdf new file mode 100644 index 000000000..6fc3d6a56 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicGridAfterParagraphTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicOnlyGridDisplayTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicOnlyGridDisplayTest.pdf new file mode 100644 index 000000000..4ba43d10d Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicOnlyGridDisplayTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicRowDenseFlowTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicRowDenseFlowTest.pdf new file mode 100644 index 000000000..a90dbd545 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicRowDenseFlowTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicRowFewDivsTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicRowFewDivsTest.pdf new file mode 100644 index 000000000..c8e0e4d62 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicRowFewDivsTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicRowFlowTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicRowFlowTest.pdf new file mode 100644 index 000000000..c27b86373 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicRowFlowTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicRowOneDivTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicRowOneDivTest.pdf new file mode 100644 index 000000000..d713a0ae3 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicRowOneDivTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicRowStartEndTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicRowStartEndTest.pdf new file mode 100644 index 000000000..af4c328cc Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_basicRowStartEndTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_columnFlowAutoFillTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_columnFlowAutoFillTest.pdf new file mode 100644 index 000000000..d4c1ad893 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_columnFlowAutoFillTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_columnFlowOnSplitTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_columnFlowOnSplitTest.pdf new file mode 100644 index 000000000..556fe9815 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_columnFlowOnSplitTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_divNestingTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_divNestingTest.pdf new file mode 100644 index 000000000..c30c9dc1c Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_divNestingTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_elementDoesntFitContentOverflowingToNextPageTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_elementDoesntFitContentOverflowingToNextPageTest.pdf new file mode 100644 index 000000000..2152ba7b4 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_elementDoesntFitContentOverflowingToNextPageTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_elementDoesntFitContentTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_elementDoesntFitContentTest.pdf new file mode 100644 index 000000000..f01c7a517 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_elementDoesntFitContentTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_elementDoesntFitHorizontallyTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_elementDoesntFitHorizontallyTest.pdf new file mode 100644 index 000000000..f1e5f075b Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_elementDoesntFitHorizontallyTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_elementDoesntFitOverflowingToNextPageTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_elementDoesntFitOverflowingToNextPageTest.pdf new file mode 100644 index 000000000..f8bd4c61a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_elementDoesntFitOverflowingToNextPageTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_elementDoesntFitTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_elementDoesntFitTest.pdf new file mode 100644 index 000000000..ad20dd06b Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_elementDoesntFitTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_fitContentAndFrTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_fitContentAndFrTest.pdf new file mode 100644 index 000000000..5cf0a511b Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_fitContentAndFrTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_fixedFitContentTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_fixedFitContentTest.pdf new file mode 100644 index 000000000..2a008524e Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_fixedFitContentTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_fixedRepeatWithFitContentTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_fixedRepeatWithFitContentTest.pdf new file mode 100644 index 000000000..09384d93f Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_fixedRepeatWithFitContentTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_fixedRepeatWithGapsTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_fixedRepeatWithGapsTest.pdf new file mode 100644 index 000000000..eff4cbfd3 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_fixedRepeatWithGapsTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_fixedRepeatWithMinMaxContentTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_fixedRepeatWithMinMaxContentTest.pdf new file mode 100644 index 000000000..2697bcd43 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_fixedRepeatWithMinMaxContentTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_fixedTemplatesAndCellDoesNotHaveDirectNeighborTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_fixedTemplatesAndCellDoesNotHaveDirectNeighborTest.pdf new file mode 100644 index 000000000..e88f040e5 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_fixedTemplatesAndCellDoesNotHaveDirectNeighborTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_grid-layout-em.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_grid-layout-em.pdf new file mode 100644 index 000000000..a3afc9103 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_grid-layout-em.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_grid-layout-rem.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_grid-layout-rem.pdf new file mode 100644 index 000000000..75bbf00a2 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_grid-layout-rem.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridInsideGridOnPageBreakTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridInsideGridOnPageBreakTest.pdf new file mode 100644 index 000000000..4795b734e Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridInsideGridOnPageBreakTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridInsideGridTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridInsideGridTest.pdf new file mode 100644 index 000000000..6e48f724f Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridInsideGridTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridShorthandColumnAutoFlowTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridShorthandColumnAutoFlowTest.pdf new file mode 100644 index 000000000..b626c3d6f Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridShorthandColumnAutoFlowTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridShorthandRowAutoFlowTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridShorthandRowAutoFlowTest.pdf new file mode 100644 index 000000000..da27c6bcd Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridShorthandRowAutoFlowTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridSplitPaddingMarginBorderTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridSplitPaddingMarginBorderTest.pdf new file mode 100644 index 000000000..a08837858 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridSplitPaddingMarginBorderTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridSplitPaddingMarginBorderTest2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridSplitPaddingMarginBorderTest2.pdf new file mode 100644 index 000000000..6cbbe6006 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridSplitPaddingMarginBorderTest2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridSplitPaddingMarginBorderTest3.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridSplitPaddingMarginBorderTest3.pdf new file mode 100644 index 000000000..2dfd23d0b Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridSplitPaddingMarginBorderTest3.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridSplitPaddingMarginBorderTest4.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridSplitPaddingMarginBorderTest4.pdf new file mode 100644 index 000000000..3e214954e Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridSplitPaddingMarginBorderTest4.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridSplitPaddingMarginBorderTest5.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridSplitPaddingMarginBorderTest5.pdf new file mode 100644 index 000000000..9818771fe Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridSplitPaddingMarginBorderTest5.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridSplitPaddingMarginBorderTest6.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridSplitPaddingMarginBorderTest6.pdf new file mode 100644 index 000000000..ff2ee95b2 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridSplitPaddingMarginBorderTest6.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridSplitPaddingMarginBorderTest7.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridSplitPaddingMarginBorderTest7.pdf new file mode 100644 index 000000000..cfa67dffe Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridSplitPaddingMarginBorderTest7.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridSplitPaddingMarginBorderTest8.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridSplitPaddingMarginBorderTest8.pdf new file mode 100644 index 000000000..fe9daa35e Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridSplitPaddingMarginBorderTest8.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridWithBrTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridWithBrTest.pdf new file mode 100644 index 000000000..7a7da8ef5 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridWithBrTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridWithPageBreakTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridWithPageBreakTest.pdf new file mode 100644 index 000000000..644791e07 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridWithPageBreakTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridWithTableTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridWithTableTest.pdf new file mode 100644 index 000000000..1e2fc9b94 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_gridWithTableTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_imageElementDoesntFitTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_imageElementDoesntFitTest.pdf new file mode 100644 index 000000000..c3b9f4ba0 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_imageElementDoesntFitTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_imageElementsOn2ndPageTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_imageElementsOn2ndPageTest.pdf new file mode 100644 index 000000000..71c51ecfb Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_imageElementsOn2ndPageTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_inlineAutoFillTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_inlineAutoFillTest.pdf new file mode 100644 index 000000000..0913447b0 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_inlineAutoFillTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_invalidAutoRepeatTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_invalidAutoRepeatTest.pdf new file mode 100644 index 000000000..7ebdc3a17 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_invalidAutoRepeatTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_invalidParameterRepeatTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_invalidParameterRepeatTest.pdf new file mode 100644 index 000000000..8987d56cf Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_invalidParameterRepeatTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_invalidTemplateColumns.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_invalidTemplateColumns.pdf new file mode 100644 index 000000000..6f86ba8b7 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_invalidTemplateColumns.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_invalidTemplateRows.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_invalidTemplateRows.pdf new file mode 100644 index 000000000..fc5089caf Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_invalidTemplateRows.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_manyImageElementsTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_manyImageElementsTest.pdf new file mode 100644 index 000000000..5dc772ae6 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_manyImageElementsTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_maxHeightFlexRowsTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_maxHeightFlexRowsTest.pdf new file mode 100644 index 000000000..86f390970 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_maxHeightFlexRowsTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_maxHeightFlexRowsTest2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_maxHeightFlexRowsTest2.pdf new file mode 100644 index 000000000..670e377e2 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_maxHeightFlexRowsTest2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_maxHeightTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_maxHeightTest.pdf new file mode 100644 index 000000000..c82e15195 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_maxHeightTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_minHeightFlexRowsTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_minHeightFlexRowsTest.pdf new file mode 100644 index 000000000..443f2b60e Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_minHeightFlexRowsTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_minHeightTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_minHeightTest.pdf new file mode 100644 index 000000000..008b81aa1 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_minHeightTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_minMaxAutoFillTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_minMaxAutoFillTest.pdf new file mode 100644 index 000000000..5c648515e Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_minMaxAutoFillTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_minMaxAutoFillWithHeightTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_minMaxAutoFillWithHeightTest.pdf new file mode 100644 index 000000000..88a10f420 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_minMaxAutoFillWithHeightTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_minMaxAutoFillWithMaxHeightTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_minMaxAutoFillWithMaxHeightTest.pdf new file mode 100644 index 000000000..e523a9c65 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_minMaxAutoFillWithMaxHeightTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_minMaxWithIndefiniteMinTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_minMaxWithIndefiniteMinTest.pdf new file mode 100644 index 000000000..76c2813ea Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_minMaxWithIndefiniteMinTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_minmaxWithMaxFrTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_minmaxWithMaxFrTest.pdf new file mode 100644 index 000000000..63ca45c7f Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_minmaxWithMaxFrTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_minmaxWithMinFrTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_minmaxWithMinFrTest.pdf new file mode 100644 index 000000000..11422fce8 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_minmaxWithMinFrTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_mixedRepeatsTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_mixedRepeatsTest.pdf new file mode 100644 index 000000000..c87e50f39 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_mixedRepeatsTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_percentageFitContentWithFrTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_percentageFitContentWithFrTest.pdf new file mode 100644 index 000000000..6f517cb8d Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_percentageFitContentWithFrTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_percentageTemplateHeightTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_percentageTemplateHeightTest.pdf new file mode 100644 index 000000000..e47c11e46 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_percentageTemplateHeightTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_percentageTemplateHeightWithFixedHeightTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_percentageTemplateHeightWithFixedHeightTest.pdf new file mode 100644 index 000000000..d7a613b1f Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_percentageTemplateHeightWithFixedHeightTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_pointZeroFlexTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_pointZeroFlexTest.pdf new file mode 100644 index 000000000..fe4477803 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_pointZeroFlexTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_pointZeroFlexTest2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_pointZeroFlexTest2.pdf new file mode 100644 index 000000000..ec0dcf6df Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_pointZeroFlexTest2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_pointZeroFlexTest3.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_pointZeroFlexTest3.pdf new file mode 100644 index 000000000..a6d4bec2e Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_pointZeroFlexTest3.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_pointZeroFlexTest4.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_pointZeroFlexTest4.pdf new file mode 100644 index 000000000..605c39628 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_pointZeroFlexTest4.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_pointZeroFlexTest5.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_pointZeroFlexTest5.pdf new file mode 100644 index 000000000..9ad6cb26e Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_pointZeroFlexTest5.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_pointZeroFlexTest6.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_pointZeroFlexTest6.pdf new file mode 100644 index 000000000..2f9e20ef4 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_pointZeroFlexTest6.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_repeatInsideMinMaxTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_repeatInsideMinMaxTest.pdf new file mode 100644 index 000000000..4afac5106 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_repeatInsideMinMaxTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_resolvableAutoFillSimpleTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_resolvableAutoFillSimpleTest.pdf new file mode 100644 index 000000000..1540cf7c2 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_resolvableAutoFillSimpleTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_resolvableAutoFitWithMinMaxTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_resolvableAutoFitWithMinMaxTest.pdf new file mode 100644 index 000000000..38bfeb9ea Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_resolvableAutoFitWithMinMaxTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_rowColumnShorthandSimpleTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_rowColumnShorthandSimpleTest.pdf new file mode 100644 index 000000000..d0bbcdb1d Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_rowColumnShorthandSimpleTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_severalValuesAutoFillTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_severalValuesAutoFillTest.pdf new file mode 100644 index 000000000..61794941f Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_severalValuesAutoFillTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_shrankTemplateAfterAutoFitTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_shrankTemplateAfterAutoFitTest.pdf new file mode 100644 index 000000000..e80bd4d0f Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_shrankTemplateAfterAutoFitTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_spanOnlyFrTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_spanOnlyFrTest.pdf new file mode 100644 index 000000000..8e5190afb Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_spanOnlyFrTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_subgridTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_subgridTest.pdf new file mode 100644 index 000000000..ca5fad405 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_subgridTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_textsWithOverflowTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_textsWithOverflowTest.pdf new file mode 100644 index 000000000..fa9cc82ae Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_textsWithOverflowTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_twoAutoRepeatsTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_twoAutoRepeatsTest.pdf new file mode 100644 index 000000000..f9ff88e50 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/cmp_twoAutoRepeatsTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/columnFlowAutoFillTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/columnFlowAutoFillTest.html new file mode 100644 index 000000000..76b154b33 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/columnFlowAutoFillTest.html @@ -0,0 +1,37 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/columnFlowOnSplitTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/columnFlowOnSplitTest.html new file mode 100644 index 000000000..41b5cdcce --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/columnFlowOnSplitTest.html @@ -0,0 +1,76 @@ + + + + + + + +

Some text

+
+
Elem 1. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Elem 2. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Elem 3. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Elem 4. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Elem 5. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Elem 6. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Elem 7. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/divNestingTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/divNestingTest.html new file mode 100644 index 000000000..79b577eb2 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/divNestingTest.html @@ -0,0 +1,239 @@ + + + + + PDF + + + + +
+
+
+ +
+
+
Full Name
+
+ +
+
+
+
Address
+
+ +
+
+
+
Mobile Phone
+
+ +
+
+
Type   [x] +
+
+
ID No.
+
+ +
+
+
+
Tax ID
+
+ +
+
+
+
DD/MM/YYYY
+
+ +
+
+
+
+
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/elementDoesntFitContentOverflowingToNextPageTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/elementDoesntFitContentOverflowingToNextPageTest.html new file mode 100644 index 000000000..5db5db6aa --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/elementDoesntFitContentOverflowingToNextPageTest.html @@ -0,0 +1,41 @@ + + + + + + + +

+
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/elementDoesntFitContentTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/elementDoesntFitContentTest.html new file mode 100644 index 000000000..25ba62a0c --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/elementDoesntFitContentTest.html @@ -0,0 +1,39 @@ + + + + + + + +

Some text

+
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/elementDoesntFitHorizontallyTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/elementDoesntFitHorizontallyTest.html new file mode 100644 index 000000000..6f0d32256 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/elementDoesntFitHorizontallyTest.html @@ -0,0 +1,34 @@ + + + + + + + +

Some text

+
+
Lorem ipsum dolor sit amet, consetetur
+
Lorem ipsum dolor sit amet, consetetur
+
Lorem ipsum dolor sit amet, consetetur
+
Lorem ipsum dolor sit amet, consetetur
+
Lorem ipsum dolor sit amet, consetetur
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/elementDoesntFitOverflowingToNextPageTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/elementDoesntFitOverflowingToNextPageTest.html new file mode 100644 index 000000000..f0b73295c --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/elementDoesntFitOverflowingToNextPageTest.html @@ -0,0 +1,41 @@ + + + + + + + +

+
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/elementDoesntFitTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/elementDoesntFitTest.html new file mode 100644 index 000000000..5683b17b2 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/elementDoesntFitTest.html @@ -0,0 +1,39 @@ + + + + + + + +

Some text

+
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/fitContentAndFrTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/fitContentAndFrTest.html new file mode 100644 index 000000000..539c5a007 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/fitContentAndFrTest.html @@ -0,0 +1,36 @@ + + + + + + +
+
Test1
+
Test2
+
Test3 Test3 Test3 Test3 Test3 Test3 Test3 Test3
+
Test4Test4Test4Test4Test4 Test4 Test4 Test4 Test4 Test4 Test4 Test4
+
Test5
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/fixedFitContentTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/fixedFitContentTest.html new file mode 100644 index 000000000..ea36aedf7 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/fixedFitContentTest.html @@ -0,0 +1,39 @@ + + + + + + +
+
One
+
Two Two Two Two Two Two Two Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/fixedRepeatWithFitContentTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/fixedRepeatWithFitContentTest.html new file mode 100644 index 000000000..2eadeeb93 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/fixedRepeatWithFitContentTest.html @@ -0,0 +1,31 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Fiv
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/fixedRepeatWithGapsTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/fixedRepeatWithGapsTest.html new file mode 100644 index 000000000..d31f1ecd4 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/fixedRepeatWithGapsTest.html @@ -0,0 +1,36 @@ + + + + + + +
+
One One One
+
Two Two Two
+
Three Three Three
+
Four Four Four
+
Five Five Five
+
Six Six Six
+
Seven Seven Seven
+
Eight Eight Eight
+
Nine Nine Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/fixedRepeatWithMinMaxContentTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/fixedRepeatWithMinMaxContentTest.html new file mode 100644 index 000000000..a964df430 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/fixedRepeatWithMinMaxContentTest.html @@ -0,0 +1,34 @@ + + + + + + +
+
Oneoneone one one one
+
TwoTwoTwo Two Two Two Two
+
Three
+
Four Four Four Four
+
Fiv Fiv Fiv Fiv Fiv Fiv
+
Six
+
Seven Seven Seven Seven Seven Seven
+
Eight
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/fixedTemplatesAndCellDoesNotHaveDirectNeighborTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/fixedTemplatesAndCellDoesNotHaveDirectNeighborTest.html new file mode 100644 index 000000000..70bfbb71e --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/fixedTemplatesAndCellDoesNotHaveDirectNeighborTest.html @@ -0,0 +1,51 @@ + + +CSS Grid Layout Test: Positioned grid items + + + + + +
+
Header
+ +
Main area
+
Footer
+
\ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/grid-layout-em.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/grid-layout-em.html new file mode 100644 index 000000000..3dfc7b2fa --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/grid-layout-em.html @@ -0,0 +1,35 @@ + + + + + + +
+
1
+
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/grid-layout-rem.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/grid-layout-rem.html new file mode 100644 index 000000000..17698b85b --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/grid-layout-rem.html @@ -0,0 +1,38 @@ + + + + + + +
+
1
+
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridInsideGridOnPageBreakTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridInsideGridOnPageBreakTest.html new file mode 100644 index 000000000..88bd35306 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridInsideGridOnPageBreakTest.html @@ -0,0 +1,43 @@ + + + + + + + +

Some text

+
+
Lorem ipsum dolor sit amet
+
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridInsideGridTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridInsideGridTest.html new file mode 100644 index 000000000..31452fe9e --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridInsideGridTest.html @@ -0,0 +1,43 @@ + + + + + + + +

Some text

+
+
Lorem ipsum dolor sit amet
+
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridShorthandColumnAutoFlowTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridShorthandColumnAutoFlowTest.html new file mode 100644 index 000000000..f8198d0ba --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridShorthandColumnAutoFlowTest.html @@ -0,0 +1,42 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridShorthandRowAutoFlowTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridShorthandRowAutoFlowTest.html new file mode 100644 index 000000000..236998e97 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridShorthandRowAutoFlowTest.html @@ -0,0 +1,42 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridSplitPaddingMarginBorderTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridSplitPaddingMarginBorderTest.html new file mode 100644 index 000000000..61ba0292c --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridSplitPaddingMarginBorderTest.html @@ -0,0 +1,34 @@ + + + + + + + +
+
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridSplitPaddingMarginBorderTest2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridSplitPaddingMarginBorderTest2.html new file mode 100644 index 000000000..69a00c58c --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridSplitPaddingMarginBorderTest2.html @@ -0,0 +1,42 @@ + + + + + + +
+
One
+
Two Two Two Two Two Two Two Two Two Two Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridSplitPaddingMarginBorderTest3.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridSplitPaddingMarginBorderTest3.html new file mode 100644 index 000000000..cd01c9863 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridSplitPaddingMarginBorderTest3.html @@ -0,0 +1,96 @@ + + + + + + + +

Some text

+
+
Lorem ipsum dolor sit amet
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CountryCapital
DenmarkCopenhagen
FinlandHelsinki
NorwayOslo
BelgiumBrussels
NetherlandsAmsterdam
SwedenStockholm
GermanyBerlin
CanadaOttawa
AustraliaCanberra
AustriaVien
CroatiaZagreb
PolandWarsaw
+
+
Lorem ipsum dolor sit amet
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridSplitPaddingMarginBorderTest4.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridSplitPaddingMarginBorderTest4.html new file mode 100644 index 000000000..af100a989 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridSplitPaddingMarginBorderTest4.html @@ -0,0 +1,96 @@ + + + + + + + +

Some text

+
+
Lorem ipsum dolor sit amet
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CountryCapital
DenmarkCopenhagen
FinlandHelsinki
NorwayOslo
BelgiumBrussels
NetherlandsAmsterdam
SwedenStockholm
GermanyBerlin
CanadaOttawa
AustraliaCanberra
AustriaVien
CroatiaZagreb
PolandWarsaw
+
+
Lorem ipsum dolor sit amet
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridSplitPaddingMarginBorderTest5.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridSplitPaddingMarginBorderTest5.html new file mode 100644 index 000000000..e0fa5897e --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridSplitPaddingMarginBorderTest5.html @@ -0,0 +1,36 @@ + + + + + + + +

Some text

+
+
Lorem ipsum dolor sit amet
+ +
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridSplitPaddingMarginBorderTest6.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridSplitPaddingMarginBorderTest6.html new file mode 100644 index 000000000..eedd5adf2 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridSplitPaddingMarginBorderTest6.html @@ -0,0 +1,45 @@ + + + + + + + +

Some text

+
+
Lorem ipsum dolor sit amet
+
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridSplitPaddingMarginBorderTest7.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridSplitPaddingMarginBorderTest7.html new file mode 100644 index 000000000..cd2295428 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridSplitPaddingMarginBorderTest7.html @@ -0,0 +1,49 @@ + + + + + + + +

Some text

+
+
Lorem ipsum dolor sit amet
+
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridSplitPaddingMarginBorderTest8.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridSplitPaddingMarginBorderTest8.html new file mode 100644 index 000000000..22c1afed5 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridSplitPaddingMarginBorderTest8.html @@ -0,0 +1,48 @@ + + + + + + + +

Some text

+
+
Lorem ipsum dolor sit amet
+
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridWithBrTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridWithBrTest.html new file mode 100644 index 000000000..df6676e6e --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridWithBrTest.html @@ -0,0 +1,38 @@ + + + + + + + +

Some text

+
+ +
Lorem ipsum dolor sit amet
+
+
+
+ + + + +
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridWithPageBreakTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridWithPageBreakTest.html new file mode 100644 index 000000000..97f207f6a --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridWithPageBreakTest.html @@ -0,0 +1,36 @@ + + + + + + + +

Some text

+
+ +
Lorem ipsum dolor sit amet
+ +
div with page break
+ + + +
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridWithTableTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridWithTableTest.html new file mode 100644 index 000000000..3412a8752 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/gridWithTableTest.html @@ -0,0 +1,91 @@ + + + + + + + +

Some text

+
+
Lorem ipsum dolor sit amet
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CountryCapital
DenmarkCopenhagen
FinlandHelsinki
NorwayOslo
BelgiumBrussels
NetherlandsAmsterdam
SwedenStockholm
GermanyBerlin
CanadaOttawa
AustraliaCanberra
AustriaVien
CroatiaZagreb
PolandWarsaw
+
+
Lorem ipsum dolor sit amet
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/image.gif b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/image.gif new file mode 100644 index 000000000..fb073bdb6 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/image.gif differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/imageElementDoesntFitTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/imageElementDoesntFitTest.html new file mode 100644 index 000000000..47664198b --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/imageElementDoesntFitTest.html @@ -0,0 +1,34 @@ + + + + + + + +

Some text

+
+
Lorem ipsum dolor sit amet
+ +
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
Lorem ipsum dolor sit amet
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/imageElementsOn2ndPageTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/imageElementsOn2ndPageTest.html new file mode 100644 index 000000000..c835920b8 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/imageElementsOn2ndPageTest.html @@ -0,0 +1,38 @@ + + + + + + + +

Some text

+
+ +
Lorem ipsum dolor sit amet
+ + + + + + + +
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/inlineAutoFillTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/inlineAutoFillTest.html new file mode 100644 index 000000000..bb38d072a --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/inlineAutoFillTest.html @@ -0,0 +1,39 @@ + + + + + + +
+
One
+
Two Two Two Two Two Two Two Two Two Two Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/invalidAutoRepeatTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/invalidAutoRepeatTest.html new file mode 100644 index 000000000..6bac68d69 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/invalidAutoRepeatTest.html @@ -0,0 +1,36 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/invalidParameterRepeatTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/invalidParameterRepeatTest.html new file mode 100644 index 000000000..a4cf3314f --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/invalidParameterRepeatTest.html @@ -0,0 +1,35 @@ + + + + + + +
+
One One One
+
Two Two Two
+
Three Three Three
+
Four Four Four
+
Five Five Five
+
Six Six Six
+
Seven Seven Seven
+
Eight Eight Eight
+
Nine Nine Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/invalidTemplateColumns.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/invalidTemplateColumns.html new file mode 100644 index 000000000..936955c7c --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/invalidTemplateColumns.html @@ -0,0 +1,35 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/invalidTemplateRows.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/invalidTemplateRows.html new file mode 100644 index 000000000..e0392425d --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/invalidTemplateRows.html @@ -0,0 +1,35 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/manyImageElementsTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/manyImageElementsTest.html new file mode 100644 index 000000000..ddfacb293 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/manyImageElementsTest.html @@ -0,0 +1,38 @@ + + + + + + + +

Some text

+
+ +
Lorem ipsum dolor sit amet
+ + + + + + + +
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/maxHeightFlexRowsTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/maxHeightFlexRowsTest.html new file mode 100644 index 000000000..273e7e587 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/maxHeightFlexRowsTest.html @@ -0,0 +1,35 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+

some text

+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/maxHeightFlexRowsTest2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/maxHeightFlexRowsTest2.html new file mode 100644 index 000000000..da680d6e5 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/maxHeightFlexRowsTest2.html @@ -0,0 +1,34 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/maxHeightTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/maxHeightTest.html new file mode 100644 index 000000000..182b200ed --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/maxHeightTest.html @@ -0,0 +1,35 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+

some text

+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/minHeightFlexRowsTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/minHeightFlexRowsTest.html new file mode 100644 index 000000000..da5081c8a --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/minHeightFlexRowsTest.html @@ -0,0 +1,35 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+

some text

+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/minHeightTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/minHeightTest.html new file mode 100644 index 000000000..ab4a3ac1c --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/minHeightTest.html @@ -0,0 +1,34 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/minMaxAutoFillTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/minMaxAutoFillTest.html new file mode 100644 index 000000000..d7ac906df --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/minMaxAutoFillTest.html @@ -0,0 +1,39 @@ + + + + + + +
+
One
+
Two Two Two Two Two Two Two Two Two Two Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/minMaxAutoFillWithHeightTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/minMaxAutoFillWithHeightTest.html new file mode 100644 index 000000000..42970f62d --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/minMaxAutoFillWithHeightTest.html @@ -0,0 +1,40 @@ + + + + + + +
+
One
+
Two Two Two Two Two Two Two Two Two Two Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/minMaxAutoFillWithMaxHeightTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/minMaxAutoFillWithMaxHeightTest.html new file mode 100644 index 000000000..9244ddd15 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/minMaxAutoFillWithMaxHeightTest.html @@ -0,0 +1,40 @@ + + + + + + +
+
One
+
Two Two Two Two Two Two Two Two Two Two Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/minMaxWithIndefiniteMinTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/minMaxWithIndefiniteMinTest.html new file mode 100644 index 000000000..bec31c410 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/minMaxWithIndefiniteMinTest.html @@ -0,0 +1,36 @@ + + + + + + +
+
One One One
+
Two Two Two
+
Three Three Three
+
Four Four Four
+
Five Five Five
+
Six Six Six
+
Seven Seven Seven
+
Eight Eight Eight
+
Nine Nine Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/minmaxWithMaxFrTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/minmaxWithMaxFrTest.html new file mode 100644 index 000000000..daebde02c --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/minmaxWithMaxFrTest.html @@ -0,0 +1,36 @@ + + + + + + +
+
One One One
+
Two Two Two
+
Three Three Three
+
Four Four Four
+
Five Five Five
+
Six Six Six
+
Seven Seven Seven
+
Eight Eight Eight
+
Nine Nine Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/minmaxWithMinFrTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/minmaxWithMinFrTest.html new file mode 100644 index 000000000..44a456870 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/minmaxWithMinFrTest.html @@ -0,0 +1,36 @@ + + + + + + +
+
One One One
+
Two Two Two
+
Three Three Three
+
Four Four Four
+
Five Five Five
+
Six Six Six
+
Seven Seven Seven
+
Eight Eight Eight
+
Nine Nine Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/mixedFitContentTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/mixedFitContentTest.html new file mode 100644 index 000000000..32ac96cd3 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/mixedFitContentTest.html @@ -0,0 +1,40 @@ + + + + + + +
+
One
+
Two Two Two Two Two Two Two Two Two Two Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/mixedRepeatsTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/mixedRepeatsTest.html new file mode 100644 index 000000000..8bebf33d7 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/mixedRepeatsTest.html @@ -0,0 +1,36 @@ + + + + + + +
+
One One One One One
+
Two Two Two Two Two
+
Three Three Three Three Three
+
Four Four Four Four Four
+
Five Five Five Five Five
+
Six Six Six Six Six
+
Seven Seven Seven Seven Seven
+
Eight Eight Eight Eight Eight
+
Nine Nine Nine Nine Nine
+
Ten Ten Ten Ten Ten
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/percentageFitContentWithFrTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/percentageFitContentWithFrTest.html new file mode 100644 index 000000000..27631c356 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/percentageFitContentWithFrTest.html @@ -0,0 +1,41 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/percentageTemplateHeightTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/percentageTemplateHeightTest.html new file mode 100644 index 000000000..a6585b4ba --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/percentageTemplateHeightTest.html @@ -0,0 +1,40 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/percentageTemplateHeightWithFixedHeightTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/percentageTemplateHeightWithFixedHeightTest.html new file mode 100644 index 000000000..60ce138a1 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/percentageTemplateHeightWithFixedHeightTest.html @@ -0,0 +1,42 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/pointZeroFlexTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/pointZeroFlexTest.html new file mode 100644 index 000000000..302885b68 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/pointZeroFlexTest.html @@ -0,0 +1,32 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Fiv
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/pointZeroFlexTest2.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/pointZeroFlexTest2.html new file mode 100644 index 000000000..03d63398b --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/pointZeroFlexTest2.html @@ -0,0 +1,32 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Fiv
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/pointZeroFlexTest3.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/pointZeroFlexTest3.html new file mode 100644 index 000000000..f523957b4 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/pointZeroFlexTest3.html @@ -0,0 +1,37 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five Five Five Five Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/pointZeroFlexTest4.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/pointZeroFlexTest4.html new file mode 100644 index 000000000..3787b7af0 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/pointZeroFlexTest4.html @@ -0,0 +1,37 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
FiveFiveFiveFiveFiveFiveFive
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/pointZeroFlexTest5.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/pointZeroFlexTest5.html new file mode 100644 index 000000000..f2b84428f --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/pointZeroFlexTest5.html @@ -0,0 +1,38 @@ + + + + + + +
+
OneOneOneOneOneOneOneOneOne
+
Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/pointZeroFlexTest6.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/pointZeroFlexTest6.html new file mode 100644 index 000000000..983560179 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/pointZeroFlexTest6.html @@ -0,0 +1,37 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
FiveFiveFiveFiveFiveFiveFive
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/repeatInsideMinMaxTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/repeatInsideMinMaxTest.html new file mode 100644 index 000000000..533dbf335 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/repeatInsideMinMaxTest.html @@ -0,0 +1,30 @@ + + + + + + +
+
One
+
Two
+
Three
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/resolvableAutoFillSimpleTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/resolvableAutoFillSimpleTest.html new file mode 100644 index 000000000..11394b6ad --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/resolvableAutoFillSimpleTest.html @@ -0,0 +1,29 @@ + + + + + + +
+
One
+
Two
+
Three
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/resolvableAutoFitWithMinMaxTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/resolvableAutoFitWithMinMaxTest.html new file mode 100644 index 000000000..dba437fa9 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/resolvableAutoFitWithMinMaxTest.html @@ -0,0 +1,29 @@ + + + + + + +
+
One
+
Two
+
Three
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/rowColumnShorthandSimpleTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/rowColumnShorthandSimpleTest.html new file mode 100644 index 000000000..229c1d35e --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/rowColumnShorthandSimpleTest.html @@ -0,0 +1,49 @@ + + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/severalValuesAutoFillTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/severalValuesAutoFillTest.html new file mode 100644 index 000000000..ed7d86599 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/severalValuesAutoFillTest.html @@ -0,0 +1,38 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Five
+
Six
+
Seven
+
Eight
+
Nine
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/shrankTemplateAfterAutoFitTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/shrankTemplateAfterAutoFitTest.html new file mode 100644 index 000000000..eb9156669 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/shrankTemplateAfterAutoFitTest.html @@ -0,0 +1,41 @@ + + + + + Grid test for shrank template with auto-fit + + + +

The test passes if it has the same visual effect as reference.

+
+
+
+
+
+
+
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/spanOnlyFrTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/spanOnlyFrTest.html new file mode 100644 index 000000000..8347ec176 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/spanOnlyFrTest.html @@ -0,0 +1,38 @@ + + + + + + +
+
OneOneOneOneOneOneOneOneOne
+
Two
+
Three
+
Four
+
Five
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/subgridTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/subgridTest.html new file mode 100644 index 000000000..ed33c14dc --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/subgridTest.html @@ -0,0 +1,41 @@ + + + Subgrid Example + + + +
+
Parent 1
+
Parent 2
+
Parent 3
+
+
Child 1
+
Child 2
+
Child 3
+
+
Parent 4
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/textsWithOverflowTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/textsWithOverflowTest.html new file mode 100644 index 000000000..13ff9dfa1 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/textsWithOverflowTest.html @@ -0,0 +1,59 @@ + + + + + + + +

Some text

+
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et + dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, + consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea + takimata sanctus est Lorem ipsum dolor sit amet.
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/twoAutoRepeatsTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/twoAutoRepeatsTest.html new file mode 100644 index 000000000..e7f163a71 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/grid/GridTemplatesTest/twoAutoRepeatsTest.html @@ -0,0 +1,32 @@ + + + + + + +
+
One
+
Two
+
Three
+
Four
+
Fiv
+
+ + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAllTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAllTest.pdf index b619071c1..958ed9714 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAllTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAllTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAlwaysTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAlwaysTest.pdf index bf741f5ac..26e64060b 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAlwaysTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAlwaysTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAutoInsideColTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAutoInsideColTest.pdf index 9a41286b0..5f6aad2e6 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAutoInsideColTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAutoInsideColTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAutoTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAutoTest.pdf index b923354e6..6fd7974fc 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAutoTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAutoTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAvoidColumnTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAvoidColumnTest.pdf index 40ea085ab..efce9a28e 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAvoidColumnTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAvoidColumnTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAvoidInsideColTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAvoidInsideColTest.pdf index 232b0e9cc..d3fb93f95 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAvoidInsideColTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAvoidInsideColTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAvoidPageTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAvoidPageTest.pdf index d79711eab..4c2a3703d 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAvoidPageTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAvoidPageTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAvoidTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAvoidTest.pdf index 5031ce717..e3c5602c0 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAvoidTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterAvoidTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterColumnTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterColumnTest.pdf index c84641cde..15b89ec2c 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterColumnTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterColumnTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterLeftTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterLeftTest.pdf index 43f734b21..80847e514 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterLeftTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterLeftTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterPageTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterPageTest.pdf index f3efa549d..f907816d3 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterPageTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterPageTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterRightTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterRightTest.pdf index 2440d11dd..2234e897e 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterRightTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakAfterRightTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAllTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAllTest.pdf index 3308e53f5..7801baa34 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAllTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAllTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAlwaysTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAlwaysTest.pdf index a9b5a0a9b..90f9b3fb2 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAlwaysTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAlwaysTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAutoInsideColTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAutoInsideColTest.pdf index 84755aebc..68e05df17 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAutoInsideColTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAutoInsideColTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAutoTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAutoTest.pdf index 02907fb94..db9919b53 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAutoTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAutoTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAvoidColumnTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAvoidColumnTest.pdf index 888f555e4..ca93ba669 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAvoidColumnTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAvoidColumnTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAvoidInsideColTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAvoidInsideColTest.pdf index 0caff5d61..8b7de46f7 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAvoidInsideColTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAvoidInsideColTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAvoidPageTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAvoidPageTest.pdf index ab025ff1b..df5d5dfe8 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAvoidPageTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAvoidPageTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAvoidTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAvoidTest.pdf index 89aa0c52e..a357bb496 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAvoidTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeAvoidTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeColumnTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeColumnTest.pdf index 5315996ee..9684ac097 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeColumnTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeColumnTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeLeftTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeLeftTest.pdf index 4d83f6f05..9d9d2e8f8 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeLeftTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeLeftTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeRightTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeRightTest.pdf index a8f853e07..6c756d420 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeRightTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakBeforeRightTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakInsideAutoTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakInsideAutoTest.pdf index c4eae4471..cb989f14b 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakInsideAutoTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakInsideAutoTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakInsideAvoidColumnTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakInsideAvoidColumnTest.pdf index 0321d397b..3e1e6b7e7 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakInsideAvoidColumnTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakInsideAvoidColumnTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakInsideAvoidInsideColumnTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakInsideAvoidInsideColumnTest.pdf index c45e2346f..045704233 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakInsideAvoidInsideColumnTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakInsideAvoidInsideColumnTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakInsideAvoidPageTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakInsideAvoidPageTest.pdf index 39bec5f9b..6be9e80d7 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakInsideAvoidPageTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakInsideAvoidPageTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakInsideAvoidTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakInsideAvoidTest.pdf index d791d030d..4374aed42 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakInsideAvoidTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_breakInsideAvoidTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterAlwaysTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterAlwaysTest.pdf index 461720396..77c06b57e 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterAlwaysTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterAlwaysTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterAutoTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterAutoTest.pdf index d0f3c9eb0..f236473c0 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterAutoTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterAutoTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterAvoidPageTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterAvoidPageTest.pdf index b02060142..694f8953d 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterAvoidPageTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterAvoidPageTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterInnerElementAlwaysTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterInnerElementAlwaysTest.pdf index 1ab11e162..d11f3c8b9 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterInnerElementAlwaysTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterInnerElementAlwaysTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterInnerElementDivAlwaysTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterInnerElementDivAlwaysTest.pdf index 473e80935..d918304cd 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterInnerElementDivAlwaysTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterInnerElementDivAlwaysTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterLeftTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterLeftTest.pdf index 19982beea..e342ac725 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterLeftTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterLeftTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterPageInsideColumnTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterPageInsideColumnTest.pdf index 9e3330791..81d10eaf0 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterPageInsideColumnTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterPageInsideColumnTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterRightTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterRightTest.pdf index f68cad097..4707e0de4 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterRightTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakAfterRightTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeAlwaysTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeAlwaysTest.pdf index 070b74d02..a3728a5e5 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeAlwaysTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeAlwaysTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeAutoTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeAutoTest.pdf index 89636e34a..fcb12a7db 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeAutoTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeAutoTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeAvoidPageTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeAvoidPageTest.pdf index 487083320..b0798eaa8 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeAvoidPageTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeAvoidPageTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeAvoidTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeAvoidTest.pdf index 748f6f48d..92104f966 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeAvoidTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeAvoidTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeInnerElementAlwaysTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeInnerElementAlwaysTest.pdf index 27dd5efa0..ae22465d7 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeInnerElementAlwaysTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeInnerElementAlwaysTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeLeftTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeLeftTest.pdf index 88b4d89b5..55e084b6f 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeLeftTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeLeftTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeRightTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeRightTest.pdf index d80b27075..0dda8ccc5 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeRightTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakBeforeRightTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakInsideAutoTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakInsideAutoTest.pdf index 73b584ada..9e5c7c22a 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakInsideAutoTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakInsideAutoTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakInsideAvoidTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakInsideAvoidTest.pdf index 9dbad6e62..4efad13ff 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakInsideAvoidTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/BreakTest/cmp_pageBreakInsideAvoidTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicArticleTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicArticleTest.pdf index d6cd9c154..22547ebf2 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicArticleTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicArticleTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicDisplayPropertyTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicDisplayPropertyTest.pdf index 80e5cf378..ce1357d35 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicDisplayPropertyTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicDisplayPropertyTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicDisplayPropertyWithNestedColumnsTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicDisplayPropertyWithNestedColumnsTest.pdf index 603fbfd24..c134ce99b 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicDisplayPropertyWithNestedColumnsTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicDisplayPropertyWithNestedColumnsTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicDivTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicDivTest.pdf index bf5c76d08..e1370475e 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicDivTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicDivTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicFlexPropertyTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicFlexPropertyTest.pdf index 9c18499e2..b232d3b89 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicFlexPropertyTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicFlexPropertyTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicFloatPropertyTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicFloatPropertyTest.pdf index 6d36c8b6f..835cb4128 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicFloatPropertyTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicFloatPropertyTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicFormMultiPageTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicFormMultiPageTest.pdf index bf6cb7cbb..29b894f2d 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicFormMultiPageTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicFormMultiPageTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicFormTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicFormTest.pdf index 9a6d47876..f296d8e25 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicFormTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicFormTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicOrphans1Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicOrphans1Test.pdf index f6db233ab..63b3f2ed6 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicOrphans1Test.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicOrphans1Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicOrphans2Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicOrphans2Test.pdf index f4d27fdb5..5a9394db7 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicOrphans2Test.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicOrphans2Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicPTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicPTest.pdf index 6aaf57b0c..10731ef1e 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicPTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicPTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicSectionTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicSectionTest.pdf index 1bae63407..65e3460b8 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicSectionTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicSectionTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicTableTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicTableTest.pdf index a571f584b..d20e280f8 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicTableTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicTableTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicWidows1Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicWidows1Test.pdf index 12669a6ec..28dceedb9 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicWidows1Test.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicWidows1Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicWidows2Test.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicWidows2Test.pdf index 5a5957429..79fc896d6 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicWidows2Test.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_basicWidows2Test.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_bigFormMultiPageTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_bigFormMultiPageTest.pdf index cf39ac79a..f18765cb9 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_bigFormMultiPageTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_bigFormMultiPageTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_biggerThanColumnImageOverflowHiddenTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_biggerThanColumnImageOverflowHiddenTest.pdf index 2abb257cd..456b60cec 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_biggerThanColumnImageOverflowHiddenTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_biggerThanColumnImageOverflowHiddenTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_biggerThanColumnImageOverflowScrollTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_biggerThanColumnImageOverflowScrollTest.pdf index d8e69a93a..0174d93c2 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_biggerThanColumnImageOverflowScrollTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_biggerThanColumnImageOverflowScrollTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_biggerThanColumnImageTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_biggerThanColumnImageTest.pdf index 664a5763b..5d74792d6 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_biggerThanColumnImageTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_biggerThanColumnImageTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_childBorderTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_childBorderTest.pdf index 0941f52ec..bee387288 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_childBorderTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_childBorderTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_childMarginTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_childMarginTest.pdf index 0081c3ca3..fe46ca0e2 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_childMarginTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_childMarginTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_childPaddingTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_childPaddingTest.pdf index 21688415a..cbecc7c7c 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_childPaddingTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_childPaddingTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_diffElementsInsidePTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_diffElementsInsidePTest.pdf index 9852d1100..84d6ed487 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_diffElementsInsidePTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_diffElementsInsidePTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_height_multipage.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_height_multipage.pdf index 65c91f9db..2e6bbb9fc 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_height_multipage.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_height_multipage.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_multiple_attributes.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_multiple_attributes.pdf index 5f46e30a5..f057ad62d 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_multiple_attributes.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_multiple_attributes.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_multiple_attributes1.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_multiple_attributes1.pdf index 16cb0252c..2470036e8 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_multiple_attributes1.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_multiple_attributes1.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_multiple_attributes2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_multiple_attributes2.pdf index a4f263c57..b89562a8f 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_multiple_attributes2.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_multiple_attributes2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_nestingBetweenPagesTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_nestingBetweenPagesTest.pdf index b3bea570a..569add207 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_nestingBetweenPagesTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_nestingBetweenPagesTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_splitEmptyContinuousBlockElementBetweenColumns.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_splitEmptyContinuousBlockElementBetweenColumns.pdf index 9de1263d9..ed7c8dc8b 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_splitEmptyContinuousBlockElementBetweenColumns.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_splitEmptyContinuousBlockElementBetweenColumns.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_splitEmptyParagraphElementsBetweenColumns.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_splitEmptyParagraphElementsBetweenColumns.pdf index acfa8d98d..d17e51872 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_splitEmptyParagraphElementsBetweenColumns.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_splitEmptyParagraphElementsBetweenColumns.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_splitInnerParagraphBetweenColumns.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_splitInnerParagraphBetweenColumns.pdf index 5f2d4ef85..944aa225a 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_splitInnerParagraphBetweenColumns.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_splitInnerParagraphBetweenColumns.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_tripleNestingBetweenPagesTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_tripleNestingBetweenPagesTest.pdf index f7c271a84..c914b6d71 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_tripleNestingBetweenPagesTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_tripleNestingBetweenPagesTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_tripleNestingTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_tripleNestingTest.pdf index bac1af159..a779ac884 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_tripleNestingTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/cmp_tripleNestingTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/tripleNestingBetweenPagesTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/tripleNestingBetweenPagesTest.html index b0d96de24..a4ca48a45 100644 --- a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/tripleNestingBetweenPagesTest.html +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnCountTest/tripleNestingBetweenPagesTest.html @@ -13,6 +13,9 @@

Columnized Content

This is the seventh paragraph of the columnized content.

This is the eighth paragraph of the columnized content.

This is the ninth paragraph of the columnized content.

+

This is the tenth paragraph of the columnized content.

+

This is the eleven paragraph of the columnized content.

+

Columnized Div 1

diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnGapTest/cmp_mixedElementsTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnGapTest/cmp_mixedElementsTest.pdf index d989d10c7..cc14b0633 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnGapTest/cmp_mixedElementsTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnGapTest/cmp_mixedElementsTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnGapTest/cmp_nestedElementsTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnGapTest/cmp_nestedElementsTest.pdf index a24e7256b..76eac64dd 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnGapTest/cmp_nestedElementsTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnGapTest/cmp_nestedElementsTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/bigBordersTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/bigBordersTest.html new file mode 100644 index 000000000..bfc31da8a --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/bigBordersTest.html @@ -0,0 +1,34 @@ + + + + + +
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod + tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim + veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea + commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed + do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad + minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex + ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed + do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad + minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex + ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed + do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad + minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex + ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. +
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/bigBordersWithoutWidtConstraintTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/bigBordersWithoutWidtConstraintTest.html new file mode 100644 index 000000000..e549d5fcd --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/bigBordersWithoutWidtConstraintTest.html @@ -0,0 +1,34 @@ + + + + + +
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod + tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim + veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea + commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed + do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad + minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex + ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed + do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad + minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex + ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed + do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad + minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex + ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. +
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/bigMargingsPaddingsBordersTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/bigMargingsPaddingsBordersTest.html new file mode 100644 index 000000000..769cfc4eb --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/bigMargingsPaddingsBordersTest.html @@ -0,0 +1,34 @@ + + + + + +
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod + tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim + veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea + commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed + do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad + minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex + ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed + do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad + minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex + ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed + do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad + minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex + ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. +
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/bigMarginsTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/bigMarginsTest.html new file mode 100644 index 000000000..b69c96bb7 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/bigMarginsTest.html @@ -0,0 +1,34 @@ + + + + + +
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod + tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim + veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea + commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed + do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad + minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex + ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed + do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad + minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex + ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed + do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad + minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex + ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. +
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/bigPaddingsTest.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/bigPaddingsTest.html new file mode 100644 index 000000000..73d22e5ef --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/bigPaddingsTest.html @@ -0,0 +1,34 @@ + + + + + +
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod + tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim + veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea + commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed + do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad + minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex + ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed + do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad + minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex + ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed + do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad + minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex + ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. +
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicArticleTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicArticleTest.pdf index dc76af690..2ab0dd68b 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicArticleTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicArticleTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicDisplayPropertyTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicDisplayPropertyTest.pdf index 57a477201..860e68221 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicDisplayPropertyTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicDisplayPropertyTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicDivTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicDivTest.pdf index b6a081c91..d8578170a 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicDivTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicDivTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicDivWithImageTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicDivWithImageTest.pdf index fbeb5201e..0acee97ac 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicDivWithImageTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicDivWithImageTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicFlexPropertyTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicFlexPropertyTest.pdf index 287dac3e1..cafafed61 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicFlexPropertyTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicFlexPropertyTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicFloatPropertyTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicFloatPropertyTest.pdf index 83262229e..2565b2ad5 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicFloatPropertyTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicFloatPropertyTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicSectionTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicSectionTest.pdf index 9839c4ef5..1327d248a 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicSectionTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_basicSectionTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_bigBordersTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_bigBordersTest.pdf new file mode 100644 index 000000000..771d8fcf2 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_bigBordersTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_bigBordersWithoutWidtConstraintTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_bigBordersWithoutWidtConstraintTest.pdf new file mode 100644 index 000000000..ec709b21c Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_bigBordersWithoutWidtConstraintTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_bigMargingsPaddingsBordersTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_bigMargingsPaddingsBordersTest.pdf new file mode 100644 index 000000000..668ef681a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_bigMargingsPaddingsBordersTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_bigMarginsTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_bigMarginsTest.pdf new file mode 100644 index 000000000..f0d1e1a21 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_bigMarginsTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_bigPaddingsTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_bigPaddingsTest.pdf new file mode 100644 index 000000000..67a05b608 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_bigPaddingsTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_columnizedContentInTableTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_columnizedContentInTableTest.pdf index accf7df8c..13387e24c 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_columnizedContentInTableTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_columnizedContentInTableTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_columnizedShortPInTableCellWithHeightTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_columnizedShortPInTableCellWithHeightTest.pdf index 45f659195..57d985b35 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_columnizedShortPInTableCellWithHeightTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_columnizedShortPInTableCellWithHeightTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_columnizedShortParagraphsInTableCellTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_columnizedShortParagraphsInTableCellTest.pdf index 44c97a80e..7a279ffe7 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_columnizedShortParagraphsInTableCellTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_columnizedShortParagraphsInTableCellTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_diffElementsInsidePTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_diffElementsInsidePTest.pdf index 46c651999..cb0c24b78 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_diffElementsInsidePTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_diffElementsInsidePTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_displayPropertyWithNestedColumnsTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_displayPropertyWithNestedColumnsTest.pdf index 38d2eef79..f9f6b3635 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_displayPropertyWithNestedColumnsTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_displayPropertyWithNestedColumnsTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_formMultiPageTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_formMultiPageTest.pdf index 95f9df9f2..f7f6c3aa8 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_formMultiPageTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_formMultiPageTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_formWithNestedElementsMultiPageTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_formWithNestedElementsMultiPageTest.pdf index a68645f6d..faa29040d 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_formWithNestedElementsMultiPageTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_formWithNestedElementsMultiPageTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_formWithNestedElementsTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_formWithNestedElementsTest.pdf index eeafb9e9c..64b6312d5 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_formWithNestedElementsTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_formWithNestedElementsTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_mixedElementsInContainer.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_mixedElementsInContainer.pdf index 17fb847b8..8a9b3f29c 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_mixedElementsInContainer.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_mixedElementsInContainer.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_nestedElementsTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_nestedElementsTest.pdf index bcd8b1618..47ad915ce 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_nestedElementsTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_nestedElementsTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_oneParagraphSpecifiedWithDifferentWidthTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_oneParagraphSpecifiedWithDifferentWidthTest.pdf index 791ca3b12..62641c054 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_oneParagraphSpecifiedWithDifferentWidthTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_oneParagraphSpecifiedWithDifferentWidthTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_overlaidContentInDivWithImageTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_overlaidContentInDivWithImageTest.pdf index b09803cfe..3b856e30e 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_overlaidContentInDivWithImageTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_overlaidContentInDivWithImageTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_overlaidFlexContentInColumnContainerTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_overlaidFlexContentInColumnContainerTest.pdf index 40a6bfc1c..cb364c5f3 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_overlaidFlexContentInColumnContainerTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_overlaidFlexContentInColumnContainerTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_paragraphsInsideContainer.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_paragraphsInsideContainer.pdf index 9971bb3af..036ba081b 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_paragraphsInsideContainer.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnWidthTest/cmp_paragraphsInsideContainer.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnsTest/cmp_columnsAndWidthPropertyTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnsTest/cmp_columnsAndWidthPropertyTest.pdf index d5fb7be0e..9424b6000 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnsTest/cmp_columnsAndWidthPropertyTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnsTest/cmp_columnsAndWidthPropertyTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnsTest/cmp_formMultiPageTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnsTest/cmp_formMultiPageTest.pdf index ba4858f01..c25eeec39 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnsTest/cmp_formMultiPageTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnsTest/cmp_formMultiPageTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnsTest/cmp_mixedElementsTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnsTest/cmp_mixedElementsTest.pdf index 391816c1a..f6ecddf0d 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnsTest/cmp_mixedElementsTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnsTest/cmp_mixedElementsTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnsTest/cmp_nestedColCColWContentTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnsTest/cmp_nestedColCColWContentTest.pdf index 6ad05bee4..3231387ef 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnsTest/cmp_nestedColCColWContentTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnsTest/cmp_nestedColCColWContentTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnsTest/cmp_nestedColContentTest.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnsTest/cmp_nestedColContentTest.pdf index 84b623755..9e8075d7e 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnsTest/cmp_nestedColContentTest.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/multicol/ColumnsTest/cmp_nestedColContentTest.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/abs-pos-grid-container-parent-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/abs-pos-grid-container-parent-001.html new file mode 100644 index 000000000..30d556a47 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/abs-pos-grid-container-parent-001.html @@ -0,0 +1,112 @@ + + +CSS Grid Layout Test: Absolute positioning grid container parent + + + + + + + + +
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/abs-pos-grid-container-parent-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/abs-pos-grid-container-parent-001.pdf new file mode 100644 index 000000000..1168d9bad Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/abs-pos-grid-container-parent-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/absolute-positioning-definite-sizes-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/absolute-positioning-definite-sizes-001.html new file mode 100644 index 000000000..014396d49 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/absolute-positioning-definite-sizes-001.html @@ -0,0 +1,51 @@ + + +CSS Grid Layout Test: Absolute positioning definite sizes + + + + + + + + + + + + + +
+ +
+
XXX X
+
XX XXX XX
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/absolute-positioning-definite-sizes-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/absolute-positioning-definite-sizes-001.pdf new file mode 100644 index 000000000..15b1c8787 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/absolute-positioning-definite-sizes-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/absolute-positioning-grid-container-parent-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/absolute-positioning-grid-container-parent-002.pdf new file mode 100644 index 000000000..374edda15 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/absolute-positioning-grid-container-parent-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/descendant-static-position-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/descendant-static-position-001.html new file mode 100644 index 000000000..ec19e4acf --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/descendant-static-position-001.html @@ -0,0 +1,90 @@ + + + +CSS Grid Layout Test: Grid aligned descendants with static position + + + + + + + +There should be no red: + +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ + + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/descendant-static-position-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/descendant-static-position-001.pdf new file mode 100644 index 000000000..95a71a730 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/descendant-static-position-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/descendant-static-position-002.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/descendant-static-position-002.html new file mode 100644 index 000000000..97fa299c0 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/descendant-static-position-002.html @@ -0,0 +1,101 @@ + + + +CSS Grid Layout Test: Grid aligned descendants with static position (direction: rtl) + + + + + + + +There should be no red: + +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ + + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/descendant-static-position-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/descendant-static-position-002.pdf new file mode 100644 index 000000000..f7d013246 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/descendant-static-position-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-001.html new file mode 100644 index 000000000..8fd4eca36 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-001.html @@ -0,0 +1,95 @@ + + + + + + CSS Test: Static position of abspos children in a grid container, with various "align-self" values + + + + + + +
+ + +
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+ + +
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-001.pdf new file mode 100644 index 000000000..09ac1e80c Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-img-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-img-001.html new file mode 100644 index 000000000..05e036ace --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-img-001.html @@ -0,0 +1,122 @@ + + + + + + CSS Test: Static position of abspos replaced children in a grid container, with various "align-self" values + + + + + + +
+ + +
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+
+ + +
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-img-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-img-001.pdf new file mode 100644 index 000000000..ea4567149 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-img-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-rtl-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-rtl-001.html new file mode 100644 index 000000000..31def24fe --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-rtl-001.html @@ -0,0 +1,99 @@ + + + + + + CSS Test: Static position of abspos children in a RTL grid container, with various "align-self" values + + + + + + +
+ + +
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+
+ + +
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-rtl-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-rtl-001.pdf new file mode 100644 index 000000000..0aa687d45 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-rtl-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-rtl-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-rtl-002.pdf new file mode 100644 index 000000000..d2e50516b Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-rtl-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-rtl-003.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-rtl-003.pdf new file mode 100644 index 000000000..1e91062f9 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-rtl-003.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-rtl-004.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-rtl-004.html new file mode 100644 index 000000000..12805427e --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-rtl-004.html @@ -0,0 +1,99 @@ + + + + + + CSS Test: Static position of abspos LTR children in a RTL static-pos grid container, with various "align-self" values + + + + + + +
+ + +
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+
+ + +
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-rtl-004.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-rtl-004.pdf new file mode 100644 index 000000000..4fee845e4 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-rtl-004.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-rtl-last-baseline-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-rtl-last-baseline-002.pdf new file mode 100644 index 000000000..68ad9caf2 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-rtl-last-baseline-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-rtl-last-baseline-003.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-rtl-last-baseline-003.pdf new file mode 100644 index 000000000..35d3e183f Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-rtl-last-baseline-003.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-safe-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-safe-001.html new file mode 100644 index 000000000..58ccaaf01 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-safe-001.html @@ -0,0 +1,55 @@ + + + + + + CSS Test: Testing safe overflow-position for align-self and justify-self in absolutely positioned boxes in grid containers in both horizontal and vertical writing modes + + + + + + +
+
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-safe-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-safe-001.pdf new file mode 100644 index 000000000..4ddd8c67f Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-safe-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-vertWM-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-vertWM-001.html new file mode 100644 index 000000000..2feeb2c3a --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-vertWM-001.html @@ -0,0 +1,100 @@ + + + + + + CSS Test: Static position of abspos children in a vertical-rl grid container, with various "align-self" values + + + + + + +
+ + +
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+
+ + +
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-vertWM-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-vertWM-001.pdf new file mode 100644 index 000000000..f747635b3 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-vertWM-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-vertWM-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-vertWM-002.pdf new file mode 100644 index 000000000..98343e0cb Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-vertWM-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-vertWM-003.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-vertWM-003.pdf new file mode 100644 index 000000000..445f43629 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-vertWM-003.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-vertWM-004.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-vertWM-004.html new file mode 100644 index 000000000..84e9265aa --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-vertWM-004.html @@ -0,0 +1,100 @@ + + + + + + CSS Test: Static position of abspos horizontal-tb children in a static-pos vertical-rl grid container, with various "align-self" values + + + + + + +
+ + +
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+
+ + +
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-vertWM-004.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-vertWM-004.pdf new file mode 100644 index 000000000..0f4793b61 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-vertWM-004.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-vertWM-last-baseline-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-vertWM-last-baseline-002.pdf new file mode 100644 index 000000000..45dee022c Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-vertWM-last-baseline-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-vertWM-last-baseline-003.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-vertWM-last-baseline-003.pdf new file mode 100644 index 000000000..0928eb4c9 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-align-self-vertWM-last-baseline-003.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-001.html new file mode 100644 index 000000000..3f9a59f6b --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-001.html @@ -0,0 +1,100 @@ + + + + + + CSS Test: Static position of abspos children in a grid container, with various "justify-self" values + + + + + + +
+ + +
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+
+ + +
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-001.pdf new file mode 100644 index 000000000..f7cc42a5e Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-002.pdf new file mode 100644 index 000000000..3a9ac2b00 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-img-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-img-001.html new file mode 100644 index 000000000..6ecbcb20a --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-img-001.html @@ -0,0 +1,122 @@ + + + + + + CSS Test: Static position of abspos replaced children in a grid container, with various "justify-self" values + + + + + + +
+ + +
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+
+ + +
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-img-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-img-001.pdf new file mode 100644 index 000000000..978d208e3 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-img-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-img-002.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-img-002.html new file mode 100644 index 000000000..1ce8b3856 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-img-002.html @@ -0,0 +1,121 @@ + + + + + + CSS Test: Static position of abspos replaced children in a static-pos grid container, with various "justify-self" values + + + + + + +
+ + +
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+
+ + +
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-img-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-img-002.pdf new file mode 100644 index 000000000..8a8d71c77 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-img-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-img-last-baseline-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-img-last-baseline-002.pdf new file mode 100644 index 000000000..5cd20dc5a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-img-last-baseline-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-rtl-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-rtl-001.html new file mode 100644 index 000000000..3080c4945 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-rtl-001.html @@ -0,0 +1,100 @@ + + + + + + CSS Test: Static position of abspos children in a RTL grid container, with various "justify-self" values + + + + + + +
+ + +
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+
+ + +
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-rtl-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-rtl-001.pdf new file mode 100644 index 000000000..2fad16734 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-rtl-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-rtl-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-rtl-002.pdf new file mode 100644 index 000000000..a370df766 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-rtl-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-rtl-003.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-rtl-003.pdf new file mode 100644 index 000000000..178685325 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-rtl-003.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-rtl-004.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-rtl-004.html new file mode 100644 index 000000000..a8647bbe8 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-rtl-004.html @@ -0,0 +1,100 @@ + + + + + + CSS Test: Static position of abspos LTR children in a RTL static-pos grid container, with various "justify-self" values + + + + + + +
+ + +
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+
+ + +
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-rtl-004.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-rtl-004.pdf new file mode 100644 index 000000000..53b50455b Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-rtl-004.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-rtl-last-baseline-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-rtl-last-baseline-002.pdf new file mode 100644 index 000000000..44bde7d60 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-rtl-last-baseline-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-rtl-last-baseline-003.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-rtl-last-baseline-003.pdf new file mode 100644 index 000000000..74c2c6046 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-rtl-last-baseline-003.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-vertWM-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-vertWM-001.html new file mode 100644 index 000000000..ef5af105f --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-vertWM-001.html @@ -0,0 +1,99 @@ + + + + + + CSS Test: Static position of abspos children in a vertical-rl grid container, with various "justify-self" values + + + + + + +
+ + +
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+
+ + +
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-vertWM-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-vertWM-001.pdf new file mode 100644 index 000000000..92b89af6a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-vertWM-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-vertWM-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-vertWM-002.pdf new file mode 100644 index 000000000..4155c489c Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-vertWM-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-vertWM-003.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-vertWM-003.pdf new file mode 100644 index 000000000..51dbbb91d Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-vertWM-003.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-vertWM-004.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-vertWM-004.pdf new file mode 100644 index 000000000..7c483dd74 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-vertWM-004.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-vertWM-last-baseline-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-vertWM-last-baseline-002.pdf new file mode 100644 index 000000000..f66cb682f Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-vertWM-last-baseline-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-vertWM-last-baseline-003.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-vertWM-last-baseline-003.pdf new file mode 100644 index 000000000..b82bd3abe Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-vertWM-last-baseline-003.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-vertWM-last-baseline-004.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-vertWM-last-baseline-004.pdf new file mode 100644 index 000000000..ec8090786 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-abspos-staticpos-justify-self-vertWM-last-baseline-004.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-paint-positioned-children-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-paint-positioned-children-001.html new file mode 100644 index 000000000..7f91dc31b --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-paint-positioned-children-001.html @@ -0,0 +1,40 @@ + + +CSS Grid Layout Test: Grid paint positioned children + + + + + + +

This test passes if you see a gray box with a black border color with 5 rectangles inside. The first line contains a purple, orange, yellow and magenta boxes. Bellow them you should see a 90px cyan box.

+ +
+
+
+
+
+
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-paint-positioned-children-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-paint-positioned-children-001.pdf new file mode 100644 index 000000000..c185386b0 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-paint-positioned-children-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-positioned-item-dynamic-change-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-positioned-item-dynamic-change-001.html new file mode 100644 index 000000000..ff0c04e24 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-positioned-item-dynamic-change-001.html @@ -0,0 +1,53 @@ + + + +CSS Grid Layout Test: Grid positioned item dynamic change + + + + + + +

Test passes if there is a filled green square and no red.

+ +
+
+
+
+
+
+
+ + + + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-positioned-item-dynamic-change-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-positioned-item-dynamic-change-001.pdf new file mode 100644 index 000000000..c5775966b Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-positioned-item-dynamic-change-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-positioned-item-dynamic-change-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-positioned-item-dynamic-change-002.pdf new file mode 100644 index 000000000..04dbdc2b1 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-positioned-item-dynamic-change-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-positioned-item-dynamic-change-004.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-positioned-item-dynamic-change-004.pdf new file mode 100644 index 000000000..2a0fd4124 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-positioned-item-dynamic-change-004.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-positioned-item-dynamic-change-006.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-positioned-item-dynamic-change-006.pdf new file mode 100644 index 000000000..0342fbe8d Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-positioned-item-dynamic-change-006.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-positioned-items-background-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-positioned-items-background-001.html new file mode 100644 index 000000000..515c2632b --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-positioned-items-background-001.html @@ -0,0 +1,79 @@ + + +CSS Grid Layout Test: Grid positioned items background + + + + + + + + +

The test passes if you see 4 green boxes and no red.

+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-positioned-items-background-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-positioned-items-background-001.pdf new file mode 100644 index 000000000..ced1c4748 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/grid-positioned-items-background-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-001.html new file mode 100644 index 000000000..54f937def --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-001.html @@ -0,0 +1,58 @@ + + +CSS Grid Layout Test: Orthogonal positioned grid items + + + + + + +

The test passes if it has the same output than the reference.

+ +
+
First item
+
Second item
+
Third item
+
Fourth item
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-001.pdf new file mode 100644 index 000000000..6f916faee Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-002.pdf new file mode 100644 index 000000000..df15ae9ba Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-003.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-003.pdf new file mode 100644 index 000000000..415972234 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-003.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-004.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-004.pdf new file mode 100644 index 000000000..a17970039 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-004.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-005.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-005.pdf new file mode 100644 index 000000000..0cb89c6ed Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-005.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-006.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-006.pdf new file mode 100644 index 000000000..87511baaf Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-006.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-007.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-007.pdf new file mode 100644 index 000000000..da67e13e9 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-007.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-008.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-008.pdf new file mode 100644 index 000000000..5119fd953 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-008.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-009.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-009.pdf new file mode 100644 index 000000000..c2023787d Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-009.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-010.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-010.pdf new file mode 100644 index 000000000..c6249045d Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-010.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-011.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-011.pdf new file mode 100644 index 000000000..3a1979b09 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-011.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-012.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-012.pdf new file mode 100644 index 000000000..2d7ea7b44 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-012.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-013.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-013.pdf new file mode 100644 index 000000000..a2aef04f9 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-013.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-014.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-014.pdf new file mode 100644 index 000000000..72412798b Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-014.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-015.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-015.pdf new file mode 100644 index 000000000..b9e8f23be Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-015.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-016.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-016.pdf new file mode 100644 index 000000000..3be8552b9 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-016.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-017.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-017.html new file mode 100644 index 000000000..f0f91ec32 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-017.html @@ -0,0 +1,62 @@ + + +CSS Grid Layout Test: Orthogonal positioned grid items + + + + + + +

The test passes if it has the same output than the reference.

+ +
+
First item
+
Second item
+
Third item
+
Fourth item
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-017.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-017.pdf new file mode 100644 index 000000000..e557d6199 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/orthogonal-positioned-grid-items-017.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-001.html new file mode 100644 index 000000000..48dee4bfc --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-001.html @@ -0,0 +1,57 @@ + + +CSS Grid Layout Test: Positioned grid items + + + + + + +

The test passes if it has the same output than the reference.

+ +
+
First item
+
Second item
+
Third item
+
Fourth item
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-001.pdf new file mode 100644 index 000000000..f791744a6 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-004.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-004.html new file mode 100644 index 000000000..525fe0571 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-004.html @@ -0,0 +1,59 @@ + + +CSS Grid Layout Test: Positioned grid items + + + + + + +

The test passes if it has the same output than the reference.

+ +
+
First item
+
Second item
+
Third item
+
Fourth item
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-004.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-004.pdf new file mode 100644 index 000000000..ca1e51269 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-004.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-009.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-009.pdf new file mode 100644 index 000000000..f64e87e0e Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-009.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-017.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-017.pdf new file mode 100644 index 000000000..e511da03d Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-017.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-025.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-025.html new file mode 100644 index 000000000..d4c1b01a5 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-025.html @@ -0,0 +1,34 @@ + + + +CSS Grid Layout Test: Positioned grid items + + + + + +
+
+
+
+ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-025.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-025.pdf new file mode 100644 index 000000000..2b3276454 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-025.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-negative-indices-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-negative-indices-001.html new file mode 100644 index 000000000..f723b2486 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-negative-indices-001.html @@ -0,0 +1,55 @@ + + +CSS Grid Layout Test: Absolutely positioned items with negative indices + + + + + +

The test passes if it has the same output than the reference.

+
+
First item
+
Second item
+
Third item
+
Fourth item
+
\ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-negative-indices-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-negative-indices-001.pdf new file mode 100644 index 000000000..b6b8eca1a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-negative-indices-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-negative-indices-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-negative-indices-002.pdf new file mode 100644 index 000000000..d3333aa10 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-negative-indices-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-negative-indices-003.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-negative-indices-003.pdf new file mode 100644 index 000000000..08c5054e8 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/abspos/positioned-grid-items-negative-indices-003.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-001.html new file mode 100644 index 000000000..a03ce153b --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-001.html @@ -0,0 +1,69 @@ + + + + + + + + + +
+
line1
line2
+
line1
line2
+
line1
line2
+
line1
line2
+
line1
line2
+
line1
line2
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-001.pdf new file mode 100644 index 000000000..0baaef00b Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-grid-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-grid-001.html new file mode 100644 index 000000000..d59e70601 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-grid-001.html @@ -0,0 +1,112 @@ + + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-grid-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-grid-001.pdf new file mode 100644 index 000000000..0bb956f4e Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-grid-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-multicol-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-multicol-001.html new file mode 100644 index 000000000..d7d6faabb --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-multicol-001.html @@ -0,0 +1,143 @@ + + + + + + + + + +
+
+
+
+

+
+
+

+
+
+

+
+
+
+ +
+
+
+
+

+
+
+

+
+
+

+
+
+
+ + +
+
+
+
+
+
+
+

+
+
+

+
+
+

+
+
+
+ +
+
+
+
+
+
+
+

+
+
+

+
+
+

+
+
+
+ + +
+
+
+
+

+
+
+

+
+
+

+
+
+
+
+
+
+ +
+
+
+
+

+
+
+

+
+
+

+
+
+
+
+
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-multicol-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-multicol-001.pdf new file mode 100644 index 000000000..5d6737785 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-multicol-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-overflow-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-overflow-001.html new file mode 100644 index 000000000..66f9eb1bc --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-overflow-001.html @@ -0,0 +1,91 @@ + + + + + + + + +
+

+
+
+
+
+
+
+ +
+

+
+
+
+
+
+
+ +
+

+
+
+
+
+
+
+ +
+

+
+
+
+
+
+
+ +
+

+
+
+
+
+
+
+ +
+

+
+
+
+
+
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-overflow-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-overflow-001.pdf new file mode 100644 index 000000000..14caf88c1 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-overflow-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-vertical.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-vertical.html new file mode 100644 index 000000000..88fc79276 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-vertical.html @@ -0,0 +1,129 @@ + + +CSS Grid Layout Test: grid align baseline vertical + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+ +
+
ahem
+
+
+
+
+
+ +
+
ahem
+

+
+
+
+ +
+
ahem
+
+
+
+
+
+ +
+
ahem
+

+
+
+
+ +
+ + + + + + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-vertical.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-vertical.pdf new file mode 100644 index 000000000..d08263964 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-baseline-vertical.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-content-distribution.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-content-distribution.html new file mode 100644 index 000000000..caa9e912e --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-content-distribution.html @@ -0,0 +1,338 @@ + +CSS Grid Layout Test: aligned content distribution + + + + + + + + + + + + + + + + + +

This test checks that the align-content property is applied correctly when using content-distribution values.

+ +
+

direction: LTR | align-content: 'space-between'

+
+
+
+
+
+
+
+ +
+

direction: LTR | align-content: 'space-around'

+
+
+
+
+
+
+
+ +
+

direction: LTR | align-content: 'space-evenly'

+
+
+
+
+
+
+
+ +
+

direction: LTR | align-content: 'stretch'

+
+
+
+
+
+
+
+ +
+

direction: LTR | align-content: 'space-between'

+
+
+
+
+
+
+
+
+
+ +
+

direction: LTR | align-content: 'space-around'

+
+
+
+
+
+
+
+
+
+ +
+

direction: LTR | align-content: 'space-evenly'

+
+
+
+
+
+
+
+
+
+ +
+

direction: LTR | align-content: 'stretch'

+
+
+
+
+
+
+
+
+
+ +
+

direction: LTR | align-content: 'space-between'

+
+
+
+
+
+
+
+
+
+
+
+ +
+

direction: LTR | align-content: 'space-around'

+
+
+
+
+
+
+
+
+
+
+
+ +
+

direction: LTR | align-content: 'space-evenly'

+
+
+
+
+
+
+
+
+
+
+
+ +
+

direction: LTR | align-content: 'stretch'

+
+
+
+
+
+
+
+
+
+
+
+ + +
+

direction: RTL | align-content: 'space-between'

+
+
+
+
+
+
+
+ +
+

direction: RTL | align-content: 'space-around'

+
+
+
+
+
+
+
+ +
+

direction: RTL | align-content: 'space-evenly'

+
+
+
+
+
+
+
+ +
+

direction: RTL | align-content: 'stretch'

+
+
+
+
+
+
+
+ +
+

direction: RTL | align-content: 'space-between'

+
+
+
+
+
+
+
+
+
+ +
+

direction: RTL | align-content: 'space-around'

+
+
+
+
+
+
+
+
+
+ +
+

direction: RTL | align-content: 'space-evenly'

+
+
+
+
+
+
+
+
+
+ +
+

direction: RTL | align-content: 'stretch'

+
+
+
+
+
+
+
+
+
+ +
+

direction: RTL | align-content: 'space-between'

+
+
+
+
+
+
+
+
+
+
+
+ +
+

direction: RTL | align-content: 'space-around'

+
+
+
+
+
+
+
+
+
+
+
+ +
+

direction: RTL | align-content: 'space-evenly'

+
+
+
+
+
+
+
+
+
+
+
+ +
+

direction: RTL | align-content: 'stretch'

+
+
+
+
+
+
+
+
+
+
+
+ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-content-distribution.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-content-distribution.pdf new file mode 100644 index 000000000..da5a3676a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-content-distribution.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-content-vertical-lr.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-content-vertical-lr.html new file mode 100644 index 000000000..4639ea130 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-content-vertical-lr.html @@ -0,0 +1,100 @@ + + +CSS Grid Layout test: align-content in vertical-lr + + + + + + + + + + + + + + + + + + + +
+

direction: LTR | align-content: 'center'

+
+
+
+
+
+
+
+ +
+

direction: LTR | align-content: 'start'

+
+
+
+
+
+
+
+ +
+

direction: LTR | align-content: 'end'

+
+
+
+
+
+
+
+ + +
+

direction: RTL | align-content: 'center'

+
+
+
+
+
+
+
+ +
+

direction: RTL | align-content: 'start'

+
+
+
+
+
+
+
+ +
+

direction: RTL | align-content: 'end'

+
+
+
+
+
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-content-vertical-lr.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-content-vertical-lr.pdf new file mode 100644 index 000000000..ac96607ad Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-content-vertical-lr.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-content-vertical-rl.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-content-vertical-rl.html new file mode 100644 index 000000000..8c57183e9 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-content-vertical-rl.html @@ -0,0 +1,101 @@ + + +CSS Grid Layout test: align-content in vertical-rl + + + + + + + + + + + + + + + + + + + + +
+

direction: LTR | align-content: 'center'

+
+
+
+
+
+
+
+ +
+

direction: LTR | align-content: 'start'

+
+
+
+
+
+
+
+ +
+

direction: LTR | align-content: 'end'

+
+
+
+
+
+
+
+ + +
+

direction: RTL | align-content: 'center'

+
+
+
+
+
+
+
+ +
+

direction: RTL | align-content: 'start'

+
+
+
+
+
+
+
+ +
+

direction: RTL | align-content: 'end'

+
+
+
+
+
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-content-vertical-rl.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-content-vertical-rl.pdf new file mode 100644 index 000000000..99430e56a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-content-vertical-rl.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-content.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-content.html new file mode 100644 index 000000000..6b60f3e4e --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-content.html @@ -0,0 +1,177 @@ + + +CSS Grid Layout test: align-content property + + + + + + + + + + + + + + + + + + +
+

direction: LTR | align-content: 'center'

+
+
+
+
+
+
+
+ +
+

direction: LTR | align-content: 'left'

+
+
+
+
+
+
+
+ +
+

direction: LTR | align-content: 'right'

+
+
+
+
+
+
+
+ +
+

direction: LTR | align-content: 'start'

+
+
+
+
+
+
+
+ +
+

direction: LTR | align-content: 'end'

+
+
+
+
+
+
+
+ +
+

direction: LTR | align-content: 'flex-start'

+
+
+
+
+
+
+
+ +
+

direction: LTR | align-content: 'flex-end

+
+
+
+
+
+
+
+ + +
+

direction: LTR | align-content: 'auto' (resolved to 'start')

+
+
+
+
+
+
+
+ + +
+

direction: RTL | align-content: 'center'

+
+
+
+
+
+
+
+ +
+

direction: RTL | align-content: 'left'

+
+
+
+
+
+
+
+ +
+

direction: RTL | align-content: 'right'

+
+
+
+
+
+
+
+ +
+

direction: RTL | align-content: 'start'

+
+
+
+
+
+
+
+ +
+

direction: RTL | align-content: 'end'

+
+
+
+
+
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-content.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-content.pdf new file mode 100644 index 000000000..b222abc6a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-align-content.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-content-distribution-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-content-distribution-001.html new file mode 100644 index 000000000..7b53a2897 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-content-distribution-001.html @@ -0,0 +1,44 @@ + + +CSS Grid Layout Test: Content Distribution 'space-evenly' on 2x2 grid + + + + + + + +

Test passes if there is a filled green square and no red.

+
+
+
+
+
+
+
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-content-distribution-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-content-distribution-001.pdf new file mode 100644 index 000000000..9a50a7291 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-content-distribution-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-content-distribution-015.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-content-distribution-015.html new file mode 100644 index 000000000..ef4c857db --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-content-distribution-015.html @@ -0,0 +1,54 @@ + + +CSS Grid Layout Test: Content Distribution 'space-between' and gaps on 4x4 grid + + + + + + + +

Test passes if there is a filled green square and no red.

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-content-distribution-015.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-content-distribution-015.pdf new file mode 100644 index 000000000..b808ff0fa Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-content-distribution-015.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-gutters-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-gutters-001.html new file mode 100644 index 000000000..310aa4322 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-gutters-001.html @@ -0,0 +1,29 @@ + + +CSS Grid Layout Test: Support for gap shorthand property of row-gap and column-gap + + + + + + +

The test passes if it has the same visual effect as reference.

+
+
+
+
+
+
\ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-gutters-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-gutters-001.pdf new file mode 100644 index 000000000..ac155609c Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-gutters-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-gutters-005.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-gutters-005.html new file mode 100644 index 000000000..cc67190af --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-gutters-005.html @@ -0,0 +1,30 @@ + + +CSS Grid Layout Test: Support for row-gap and column-gap properties + + + + + + +

The test passes if it has the same visual effect as reference.

+
+
+
+
+
+
\ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-gutters-005.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-gutters-005.pdf new file mode 100644 index 000000000..a032072ce Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-gutters-005.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-item-auto-margins-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-item-auto-margins-001.html new file mode 100644 index 000000000..be5eb6efb --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-item-auto-margins-001.html @@ -0,0 +1,23 @@ + + + + + +

Test passes if there is a filled green square and no red.

+
+
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-item-auto-margins-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-item-auto-margins-001.pdf new file mode 100644 index 000000000..f7807f92d Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/alignment/grid-item-auto-margins-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/empty-grid-within-flexbox.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/empty-grid-within-flexbox.html new file mode 100644 index 000000000..ee6748647 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/empty-grid-within-flexbox.html @@ -0,0 +1,33 @@ + + +CSS Grid Layout Test: Sizing of an empty grid within a flexbox + + + + + + +

Test passes if there is a filled green square and no red.

+ +
+
+
+
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/empty-grid-within-flexbox.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/empty-grid-within-flexbox.pdf new file mode 100644 index 000000000..aad9ed18c Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/empty-grid-within-flexbox.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-important.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-important.html new file mode 100644 index 000000000..42896ed20 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-important.html @@ -0,0 +1,17 @@ + + + + CSS Grid: !important flag parsing + + + + + +
Some text.
+ + + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-important.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-important.pdf new file mode 100644 index 000000000..8e3e356d1 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-important.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-item-non-auto-height-stretch-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-item-non-auto-height-stretch-001.html new file mode 100644 index 000000000..458ed020e --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-item-non-auto-height-stretch-001.html @@ -0,0 +1,22 @@ + +Grid items only stretch if block-size computes to auto + + + + + +
+
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-item-non-auto-height-stretch-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-item-non-auto-height-stretch-001.pdf new file mode 100644 index 000000000..e5a2abcba Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-item-non-auto-height-stretch-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-item-percentage-quirk-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-item-percentage-quirk-001.html new file mode 100644 index 000000000..0956b7a02 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-item-percentage-quirk-001.html @@ -0,0 +1,9 @@ + + + +

There should be a filled green square below, and no red.

+
+
+ +
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-item-percentage-quirk-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-item-percentage-quirk-001.pdf new file mode 100644 index 000000000..0965abe76 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-item-percentage-quirk-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-tracks-fractional-fr.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-tracks-fractional-fr.html new file mode 100644 index 000000000..6600cef65 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-tracks-fractional-fr.html @@ -0,0 +1,18 @@ + +Tests fractional fr-units which should multiply to whole numbers. + + + +
+
+
+
+
+ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-tracks-fractional-fr.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-tracks-fractional-fr.pdf new file mode 100644 index 000000000..477d46db8 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-tracks-fractional-fr.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-within-flexbox-definite-change.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-within-flexbox-definite-change.html new file mode 100644 index 000000000..03b3e67b2 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-within-flexbox-definite-change.html @@ -0,0 +1,10 @@ + + + + +

Test passes if there is a filled green square.

+
+
+
+
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-within-flexbox-definite-change.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-within-flexbox-definite-change.pdf new file mode 100644 index 000000000..0aa06f866 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid-within-flexbox-definite-change.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/auto-repeat-pos-container-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/auto-repeat-pos-container-001.html new file mode 100644 index 000000000..7d65f6c54 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/auto-repeat-pos-container-001.html @@ -0,0 +1,41 @@ + +CSS Grid: auto-repeat tracks on a positioned grid container. + + + + + + + + +

Test passes if you get a grid with 5 rows of 20px and 4 columns of 25px.

+ +

+
+
+
+
+
+
+
+
+
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/auto-repeat-pos-container-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/auto-repeat-pos-container-001.pdf new file mode 100644 index 000000000..b69ccfc3b Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/auto-repeat-pos-container-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-max-size-002.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-max-size-002.html new file mode 100644 index 000000000..ae1e7e103 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-max-size-002.html @@ -0,0 +1,58 @@ + + +CSS Grid Layout Test: Auto repeat tracks and percentage max sizes + + + + + + + + + + +
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-max-size-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-max-size-002.pdf new file mode 100644 index 000000000..d67916691 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-max-size-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-min-max-size-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-min-max-size-001.html new file mode 100644 index 000000000..72ff3ace5 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-min-max-size-001.html @@ -0,0 +1,55 @@ + + +CSS Grid Layout Test: Auto repeat tracks with min and max sizes + + + + + + + + + + +
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-min-max-size-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-min-max-size-001.pdf new file mode 100644 index 000000000..1cd9e8868 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-min-max-size-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-min-size-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-min-size-001.html new file mode 100644 index 000000000..ba59ab3d0 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-min-size-001.html @@ -0,0 +1,85 @@ + + +CSS Grid Layout Test: Auto repeat tracks and min sizes + + + + + + + + + + +
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-min-size-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-min-size-001.pdf new file mode 100644 index 000000000..a23ada073 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-min-size-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-minmax.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-minmax.html new file mode 100644 index 000000000..f6c7af1e7 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-minmax.html @@ -0,0 +1,10 @@ + + + +

Test passes if there is a filled green square.

+
+
+
+
+
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-minmax.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-minmax.pdf new file mode 100644 index 000000000..8850d05d8 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-minmax.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-multiple-values-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-multiple-values-001.html new file mode 100644 index 000000000..085d94996 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-multiple-values-001.html @@ -0,0 +1,55 @@ + + + + + + CSS Grid Layout Test: Auto Repaeat with Multiple Tracks and Gutters + + + + + + + +

The test passes if it has the same visual effect as reference.

+
+
+
+
+
+
+
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-multiple-values-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-multiple-values-001.pdf new file mode 100644 index 000000000..057639d15 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-auto-repeat-multiple-values-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-layout-basic.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-layout-basic.html new file mode 100644 index 000000000..578f70173 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-layout-basic.html @@ -0,0 +1,43 @@ + + + + CSS Grid Layout Test: basic + + + + + + + +

The test passes if it has the same visual effect as reference.

+
+
 
+
 
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-layout-basic.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-layout-basic.pdf new file mode 100644 index 000000000..14d947019 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-layout-basic.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-layout-repeat-notation.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-layout-repeat-notation.html new file mode 100644 index 000000000..ac0273f83 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-layout-repeat-notation.html @@ -0,0 +1,56 @@ + + + + CSS Grid Layout Test: repeat notation + + + + + + + +

The test passes if it has the same visual effect as reference.

+
+
 
+
 
+
 
+
 
+
 
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-layout-repeat-notation.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-layout-repeat-notation.pdf new file mode 100644 index 000000000..80226d00b Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-layout-repeat-notation.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-support-named-grid-lines-002.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-support-named-grid-lines-002.html new file mode 100644 index 000000000..6b3b19ef9 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-support-named-grid-lines-002.html @@ -0,0 +1,219 @@ + + +CSS Grid Layout Test: Support for named grid lines when 'grid-template-columns' and 'grid-template-rows' have multiple values inside of a repeat. + + + + + + +

The test passes if it has the same visual effect as reference.

+ + +
+
+
+
+
+ +
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-support-named-grid-lines-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-support-named-grid-lines-002.pdf new file mode 100644 index 000000000..bd98abc87 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-support-named-grid-lines-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-template-columns-fit-content-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-template-columns-fit-content-001.html new file mode 100644 index 000000000..ddff3cf7b --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-template-columns-fit-content-001.html @@ -0,0 +1,358 @@ + + + +CSS Grid Layout Test: grid-template-columns fit-content() + + + + + + + + + +

The test passes if it has the same output than the reference.

+ +
+

Only fit-content() and with fixed size tracks.

+
+
XXX
+
+
+ +
+
XXX
+
XXX
+
+
+
+ +
+
XXX XXX
+
+
+ +
+
XXX XXX
+
+
+
+ +
+
XXX XXX
+
XXX XXX
+
+
+
+ +
+
XXX XXX XXX
+
+
+ +
+
XXX XXX XXX
+
+
+
+ +
+
XXX XXX XXX
+
XXX XXX XXX
+
+
+
+ +
+
XXX XX XXX
+
+
+
+ +
+
XXXXX
+
XXX XX XXX
+
+
+
+ +
+
XXXXX
+
XXX XX XXX
+
+
+
+ +
+ +
+

fit-content() with other content-sized tracks.

+
+
XXX XX XXX
+
+
+
+ +
+
XXXXX
+
XXX XX XXX
+
+
+
+ +
+
XXXXX
+
XXX XX XXX
+
+
+
+ +
+
XXX XX XXX
+
+
+
+ +
+
XXXXX
+
XXX XX XXX
+
+
+
+ +
+
XXXXX
+
XXX XX XXX
+
+
+
+ +
+
XXX XX XXX
+
+
+
+
+ +
+
XXX XX XXX
+
+
+
+
+ +
+
XXX XX XXX
+
+
+
+
+ +
+
XXX XX
+
XXX XX XXX
+
+
+
+
+ +
+
XXX XX
+
XXX XX XXX
+
+
+
+
+ +
+
XXX XX
+
XXX XX XXX
+
+
+
+
+
+ +
+

fit-content() with percentage arguments.

+
+
XXX
+
+
+ +
+
XXX
+
XXX
+
+
+
+ +
+
XX XX
+
+
+ +
+
XXX XXX
+
+
+
+ +
+
X X X
+
XXX XXX
+
+
+
+ +
+
XXX XXX XXX
+
+
+ +
+
XXX XXX XXX
+
+
+
+ +
+
XXX XXX XXX
+
XXX XXX XXX
+
+
+
+
+ +
+

max-content < fit-content() argument.

+ +
+
XXX XXX
+
+
+ +
+
XXX XXX
+
+
+
+ +
+
XXX XXX
+
XXX XXX
+
+
+
+ +
+
XXX XXX
+
+
+
+ +
+
XX
+
XXX XXX
+
+
+
+ +
+
XX XX XX XX
+
XXX XXX
+
+
+
+ +
+
XX XX XX XX
+
XXX XXX
+
+
+
+ +
+
XX XX XX XX
+
XXX XXX
+
+
+
+
+ +
+
XX XX XX XX
+
XXX XXX
+
+
+
+
+ +
+
XX XX XX XX
+
XXX XXX
+
+
+
+
+ +
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-template-columns-fit-content-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-template-columns-fit-content-001.pdf new file mode 100644 index 000000000..ac36f620e Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-template-columns-fit-content-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-template-rows-fit-content-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-template-rows-fit-content-001.html new file mode 100644 index 000000000..8ae57cdf6 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-template-rows-fit-content-001.html @@ -0,0 +1,358 @@ + + + +CSS Grid Layout Test: grid-template-rows fit-content() + + + + + + + + + +

The test passes if it has the same output than the reference.

+ +
+
XXX
+
+
+ +
+
XXX
+
XXX
+
+
+
+ +
+
XXX XXX
+
+
+ +
+
XXX XXX
+
+
+
+ +
+
XXX XXX
+
XXX XXX
+
+
+
+ +
+
XXX XXX XXX
+
+
+ +
+
XXX XXX XXX
+
+
+
+ +
+
XXX XXX XXX
+
XXX XXX XXX
+
+
+
+ +
+
XXX XX XXX
+
+
+
+ +
+
XXXXX
+
XXX XX XXX
+
+
+
+ +
+
XXXXX
+
XXX XX XXX
+
+
+
+
+ +
+
+ +
+
XXX XX XXX
+
+
+
+ +
+
XXXXX
+
XXX XX XXX
+
+
+
+ +
+
XXXXX
+
XXX XX XXX
+
+
+
+ +
+
XXX XX XXX
+
+
+
+ +
+
XXXXX
+
XXX XX XXX
+
+
+
+ +
+
XXXXX
+
XXX XX XXX
+
+
+
+ +
+
XXX XX XXX
+
+
+
+
+ +
+
XXX XX XXX
+
+
+
+
+ +
+
XXX XX XXX
+
+
+
+
+ +
+
XXX XX
+
XXX XX XXX
+
+
+
+
+ +
+
XXX XX
+
XXX XX XXX
+
+
+
+
+ +
+
XXX XX
+
XXX XX XXX
+
+
+
+
+ +
+
+ +
+
XXX
+
+
+ +
+
XXX
+
XXX
+
+
+
+ +
+
XX XX
+
+
+ +
+
XXX XXX
+
+
+
+ +
+
X X X
+
XXX XXX
+
+
+
+ +
+
XXX XXX XXX
+
+
+ +
+
XXX XXX XXX
+
+
+
+ +
+
XXX XXX XXX
+
XXX XXX XXX
+
+
+
+ +
+
+ +
+
XXX XXX
+
+
+ +
+
XXX XXX
+
+
+
+ +
+
XXX XXX
+
XXX XXX
+
+
+
+ +
+
XXX XXX
+
+
+
+ +
+
XX
+
XXX XXX
+
+
+
+ +
+
XX XX XX XX
+
XXX XXX
+
+
+
+ +
+
XX XX XX XX
+
XXX XXX
+
+
+
+ +
+
XX XX XX XX
+
XXX XXX
+
+
+
+
+ +
+
XX XX XX XX
+
XXX XXX
+
+
+
+
+ +
+
XX XX XX XX
+
XXX XXX
+
+
+
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-template-rows-fit-content-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-template-rows-fit-content-001.pdf new file mode 100644 index 000000000..2155b459a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_definition/grid-template-rows-fit-content-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-img-item-percent-max-height-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-img-item-percent-max-height-001.html new file mode 100644 index 000000000..375ed2908 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-img-item-percent-max-height-001.html @@ -0,0 +1,13 @@ + + +CSS Grid Layout Test: % max height of grid items + + + + + +

Test passes if there is a filled green square.

+ +
+ +
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-img-item-percent-max-height-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-img-item-percent-max-height-001.pdf new file mode 100644 index 000000000..9c099a8d4 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-img-item-percent-max-height-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-item-containing-block-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-item-containing-block-001.html new file mode 100644 index 000000000..1dca0dcaa --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-item-containing-block-001.html @@ -0,0 +1,37 @@ + + +CSS Grid Layout Test: Grid item sizing + + + + + + +

Test passes if there is a filled green square and no red.

+ +
+
+
+
+
+ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-item-containing-block-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-item-containing-block-001.pdf new file mode 100644 index 000000000..1c60d182a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-item-containing-block-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-item-flex-container-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-item-flex-container-001.html new file mode 100644 index 000000000..56c999c55 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-item-flex-container-001.html @@ -0,0 +1,132 @@ + + +CSS Grid Layout Test: Grid item which is also a flex container + + + + + + + + +
+ +
grid-template-rows: minmax(auto, auto);
+ +
+
+
+
+
+
+
+ +
grid-template-rows: minmax(min-content, auto);
+ +
+
+
+
+
+
+
+ +
grid-template-rows: minmax(max-content, auto);
+ +
+
+
+
+
+
+
+ +
grid-template-rows: minmax(auto, min-content);
+ +
+
+
+
+
+
+
+ +
grid-template-rows: minmax(min-content, min-content);
+ +
+
+
+
+
+
+
+ +
grid-template-rows: minmax(max-content, min-content);
+ +
+
+
+
+
+
+
+ +
grid-template-rows: minmax(auto, max-content);
+ +
+
+
+
+
+
+
+ +
grid-template-rows: minmax(min-content, max-content);
+ +
+
+
+
+
+
+
+ +
grid-template-rows: minmax(max-content, max-content);
+ +
+
+
+
+
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-item-flex-container-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-item-flex-container-001.pdf new file mode 100644 index 000000000..21fc14793 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-item-flex-container-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-minimum-size-grid-items-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-minimum-size-grid-items-001.html new file mode 100644 index 000000000..2abb4b0a5 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-minimum-size-grid-items-001.html @@ -0,0 +1,37 @@ + + +CSS Grid Layout Test: Minimum size of grid items + + + + + + + +

Test passes if there is a filled green square and no red.

+ +
+
+
IT E
+
+ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-minimum-size-grid-items-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-minimum-size-grid-items-001.pdf new file mode 100644 index 000000000..d5244aa79 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-minimum-size-grid-items-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-minimum-size-grid-items-006.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-minimum-size-grid-items-006.html new file mode 100644 index 000000000..7ff6bfd2b --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-minimum-size-grid-items-006.html @@ -0,0 +1,34 @@ + + +CSS Grid Layout Test: Minimum size of grid items + + + + + + +

Test passes if there is a filled green square and no red.

+ +
+
+ Image download support must be enabled +
+ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-minimum-size-grid-items-006.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-minimum-size-grid-items-006.pdf new file mode 100644 index 000000000..fe04ad2cd Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-minimum-size-grid-items-006.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-order-property-auto-placement-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-order-property-auto-placement-001.html new file mode 100644 index 000000000..c66d35a2f --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-order-property-auto-placement-001.html @@ -0,0 +1,55 @@ + + +CSS Grid Layout Test: 'order' property affects grid items auto-placement position + + + + + + + +

Test passes if there are four filled squares with the same size and no red.

+

Blue and yellow squares in the first line; lime and magenta squares in the second line (exactly in this order).

+ +
+
+
M
+
L
+
Y
+
B
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-order-property-auto-placement-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-order-property-auto-placement-001.pdf new file mode 100644 index 000000000..825f31fbd Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/grid-order-property-auto-placement-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/overflow-auto-max-height-percentage.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/overflow-auto-max-height-percentage.html new file mode 100644 index 000000000..62273b87e --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/overflow-auto-max-height-percentage.html @@ -0,0 +1,69 @@ + + + + + Testcase for bug 1526567 + + + + + + + + + +
+ +
+ + + + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/overflow-auto-max-height-percentage.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/overflow-auto-max-height-percentage.pdf new file mode 100644 index 000000000..3e593a02b Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/overflow-auto-max-height-percentage.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/table-with-infinite-max-intrinsic-width.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/table-with-infinite-max-intrinsic-width.html new file mode 100644 index 000000000..877e982cd --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/table-with-infinite-max-intrinsic-width.html @@ -0,0 +1,14 @@ + +Table grid item with infinite max intrinsic inline size + + + +

Test passes if there is a filled green square.

+
+ + + + + +
  
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/table-with-infinite-max-intrinsic-width.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/table-with-infinite-max-intrinsic-width.pdf new file mode 100644 index 000000000..5032bd674 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_items/table-with-infinite-max-intrinsic-width.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/display-grid.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/display-grid.html new file mode 100644 index 000000000..7c6b74332 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/display-grid.html @@ -0,0 +1,107 @@ + + + + CSS Grid Layout: display: grid + + + + + + + + +

Test passes if there are 4 green rectangles and no red.

+ +
+
+
cell1
+
cell2
+
cell3
+
cell4
+
+
+ + + + + + + + + + + +
cell1cell2
cell3cell4
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/display-grid.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/display-grid.pdf new file mode 100644 index 000000000..dff8a97f1 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/display-grid.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-container-ignores-first-letter-002.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-container-ignores-first-letter-002.html new file mode 100644 index 000000000..42014addf --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-container-ignores-first-letter-002.html @@ -0,0 +1,17 @@ + + +CSS Grid Layout Test: '::first-letter' is ignored in button grid containers + + + + + + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-container-ignores-first-letter-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-container-ignores-first-letter-002.pdf new file mode 100644 index 000000000..e3388ffbf Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-container-ignores-first-letter-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-float-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-float-001.html new file mode 100644 index 000000000..521a3bd6c --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-float-001.html @@ -0,0 +1,39 @@ + + +CSS Grid Layout Test: 'float' has no effect on grid items + + + + + + +

Test passes if there is a filled green square and no red.

+ +
+ +
+
+
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-float-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-float-001.pdf new file mode 100644 index 000000000..35e72d24a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-float-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-float-002.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-float-002.html new file mode 100644 index 000000000..63532585d --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-float-002.html @@ -0,0 +1,37 @@ + + +CSS Grid Layout Test: 'float' and 'clear' have no effect on a grid item. + + + + + + + + + + + + +
+
+
+
+
+
+
+
+
+
+ + + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-float-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-float-002.pdf new file mode 100644 index 000000000..093f38250 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-float-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-floats-no-intrude-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-floats-no-intrude-001.html new file mode 100644 index 000000000..31eab4ba6 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-floats-no-intrude-001.html @@ -0,0 +1,35 @@ + + +CSS Grid Layout Test: floats do not intrude into a grid + + + + +

Test passes if there is a filled green square and no red.

+ +
+ +
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-floats-no-intrude-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-floats-no-intrude-001.pdf new file mode 100644 index 000000000..d2c44b883 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-floats-no-intrude-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-margins-no-collapse-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-margins-no-collapse-001.html new file mode 100644 index 000000000..764cca9ce --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-margins-no-collapse-001.html @@ -0,0 +1,17 @@ + + +CSS Grid Layout Test: grid's margins do not collapse + + + + + +

This text should be green and body and paragraph margins should not collapse.

diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-margins-no-collapse-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-margins-no-collapse-001.pdf new file mode 100644 index 000000000..2fe370185 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-margins-no-collapse-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-overflow-padding-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-overflow-padding-001.html new file mode 100644 index 000000000..a7e56b863 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-overflow-padding-001.html @@ -0,0 +1,22 @@ + + +CSS Grid Layout Test: Grid padding 'overflowing' the grid container size + + + + + + + + +

The test passes if you see a grey square below and both scrollbars are visible.

+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-overflow-padding-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-overflow-padding-001.pdf new file mode 100644 index 000000000..324fa3dc7 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/grid_model/grid-overflow-padding-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/implicit_grids/grid-support-grid-auto-columns-rows-001.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/implicit_grids/grid-support-grid-auto-columns-rows-001.html new file mode 100644 index 000000000..e61ced340 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/implicit_grids/grid-support-grid-auto-columns-rows-001.html @@ -0,0 +1,40 @@ + + + + + CSS Grid Layout Test: Support for 'grid-auto-columns' and 'grid-auto-rows' properties + + + + + + +

The test passes if it has the same visual effect as reference.

+
+
+
+
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/implicit_grids/grid-support-grid-auto-columns-rows-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/implicit_grids/grid-support-grid-auto-columns-rows-001.pdf new file mode 100644 index 000000000..81c8ececd Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/implicit_grids/grid-support-grid-auto-columns-rows-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/implicit_grids/grid-support-grid-auto-columns-rows-002.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/implicit_grids/grid-support-grid-auto-columns-rows-002.html new file mode 100644 index 000000000..2e90b4601 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/implicit_grids/grid-support-grid-auto-columns-rows-002.html @@ -0,0 +1,59 @@ + + +CSS Grid Layout Test: Support for 'grid-auto-columns' and 'grid-auto-rows' accepting track listing as value + + + + + +

The test passes if it has the same visual effect as reference.

+
+
+
+
+
+
+
+
\ No newline at end of file diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/implicit_grids/grid-support-grid-auto-columns-rows-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/implicit_grids/grid-support-grid-auto-columns-rows-002.pdf new file mode 100644 index 000000000..5cd8633cc Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/implicit_grids/grid-support-grid-auto-columns-rows-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/min-size-auto-overflow-clip.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/min-size-auto-overflow-clip.html new file mode 100644 index 000000000..3dfd2c18f --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/min-size-auto-overflow-clip.html @@ -0,0 +1,22 @@ + + + + + +overflow: visible and clip behave the same for min-size purposes + +
+
+
+
+
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/min-size-auto-overflow-clip.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/min-size-auto-overflow-clip.pdf new file mode 100644 index 000000000..094f16aed Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/min-size-auto-overflow-clip.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/placement/grid-layout-grid-span.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/placement/grid-layout-grid-span.html new file mode 100644 index 000000000..21aad9970 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/placement/grid-layout-grid-span.html @@ -0,0 +1,43 @@ + + + + CSS Grid Layout Test: grid span + + + + + + + +

The test passes if it has the same visual effect as reference.

+
+
 
+
 
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/placement/grid-layout-grid-span.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/placement/grid-layout-grid-span.pdf new file mode 100644 index 000000000..7a6562ed6 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/placement/grid-layout-grid-span.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/placement/grid-layout-lines-shorthands.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/placement/grid-layout-lines-shorthands.html new file mode 100644 index 000000000..756e08c44 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/placement/grid-layout-lines-shorthands.html @@ -0,0 +1,41 @@ + + + + CSS Grid Layout Test: grid lines shorthands + + + + + + + +

The test passes if it has the same visual effect as reference.

+
+
 
+
 
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/placement/grid-layout-lines-shorthands.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/placement/grid-layout-lines-shorthands.pdf new file mode 100644 index 000000000..8acb68c23 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/placement/grid-layout-lines-shorthands.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/placement/grid-layout-lines.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/placement/grid-layout-lines.html new file mode 100644 index 000000000..62bfc8d7b --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/placement/grid-layout-lines.html @@ -0,0 +1,43 @@ + + + + CSS Grid Layout Test: grid lines + + + + + + + +

The test passes if it has the same visual effect as reference.

+
+
 
+
 
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/placement/grid-layout-lines.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/placement/grid-layout-lines.pdf new file mode 100644 index 000000000..80d612d66 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/placement/grid-layout-lines.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/placement/grid-layout-placement-shorthands.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/placement/grid-layout-placement-shorthands.html new file mode 100644 index 000000000..be9867981 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/placement/grid-layout-placement-shorthands.html @@ -0,0 +1,43 @@ + + + + CSS Grid Layout Test: placement shorthand + + + + + + + +

The test passes if it has the same visual effect as reference.

+
+
 
+
 
+
+ + diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/placement/grid-layout-placement-shorthands.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/placement/grid-layout-placement-shorthands.pdf new file mode 100644 index 000000000..8579e0e9e Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/placement/grid-layout-placement-shorthands.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/stretch-grid-item-checkbox-input.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/stretch-grid-item-checkbox-input.html new file mode 100644 index 000000000..c6a34a828 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/stretch-grid-item-checkbox-input.html @@ -0,0 +1,6 @@ + + + +
+ +
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/stretch-grid-item-checkbox-input.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/stretch-grid-item-checkbox-input.pdf new file mode 100644 index 000000000..4461ed904 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/stretch-grid-item-checkbox-input.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/stretch-grid-item-radio-input.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/stretch-grid-item-radio-input.html new file mode 100644 index 000000000..9ae9d7be0 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/stretch-grid-item-radio-input.html @@ -0,0 +1,6 @@ + + + +
+ +
diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/stretch-grid-item-radio-input.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/stretch-grid-item-radio-input.pdf new file mode 100644 index 000000000..d5f642c7a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/stretch-grid-item-radio-input.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/stretch-grid-item-text-input-overflow.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/stretch-grid-item-text-input-overflow.pdf new file mode 100644 index 000000000..d69d005c3 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/stretch-grid-item-text-input-overflow.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/tracks-stretched-diff-flex-factors-sum.html b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/tracks-stretched-diff-flex-factors-sum.html new file mode 100644 index 000000000..912cd0725 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/tracks-stretched-diff-flex-factors-sum.html @@ -0,0 +1,57 @@ + +CSS Grid: 'stretch' content alignment on flex tracks. + + + + + + + + + + + + + + +
+

When the sum of all track's flex factor is < 1, they don't exhaust the available space, which is used to stretch the 'auto' sized tracks.

+
+
+
+
+
+
+
+ +
+

When the sum of all track's flex factor is >= 1, they exhaust the available space, hence the 'stretch' alignment is not applied to the 'auto' sized tracks.

+
+
+
+
+
+
+
+ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/tracks-stretched-diff-flex-factors-sum.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/tracks-stretched-diff-flex-factors-sum.pdf new file mode 100644 index 000000000..a1153fd22 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_grid/tracks-stretched-diff-flex-factors-sum.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/abspos-after-spanner-static-pos.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/abspos-after-spanner-static-pos.pdf index 4eeaeb3c6..468862aa9 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/abspos-after-spanner-static-pos.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/abspos-after-spanner-static-pos.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/as-column-flex-item.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/as-column-flex-item.pdf index b8c1e004b..d90bd848b 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/as-column-flex-item.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/as-column-flex-item.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/balance-grid-container-ref.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/balance-grid-container-ref.pdf index 4259a1628..62d83c551 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/balance-grid-container-ref.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/balance-grid-container-ref.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/balance-grid-container.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/balance-grid-container.pdf index 666d76e93..ffc644ba7 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/balance-grid-container.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/balance-grid-container.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/column-break-inside-avoid-1-ref.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/column-break-inside-avoid-1-ref.pdf index 64b8280ad..01768194e 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/column-break-inside-avoid-1-ref.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/column-break-inside-avoid-1-ref.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/column-break-inside-avoid-1.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/column-break-inside-avoid-1.pdf index ad073e8c7..648b87c0e 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/column-break-inside-avoid-1.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/column-break-inside-avoid-1.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/fixedpos-static-pos-with-viewport-cb-003.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/fixedpos-static-pos-with-viewport-cb-003.pdf index ee39aad0b..35fee5f93 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/fixedpos-static-pos-with-viewport-cb-003.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/fixedpos-static-pos-with-viewport-cb-003.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-basic-005.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-basic-005.pdf index c81d13001..593827303 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-basic-005.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-basic-005.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-basic-006.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-basic-006.pdf index 18585acdd..c7eb1ba63 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-basic-006.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-basic-006.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-basic-007.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-basic-007.pdf index 42d38b39f..f0d151cdb 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-basic-007.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-basic-007.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-basic-008.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-basic-008.pdf index 17c3fce51..cf3965325 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-basic-008.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-basic-008.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-block-no-clip-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-block-no-clip-001.pdf index 810b04812..17613d991 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-block-no-clip-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-block-no-clip-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-block-no-clip-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-block-no-clip-002.pdf index 9b9220c45..3b6c1a128 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-block-no-clip-002.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-block-no-clip-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-breaking-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-breaking-001.pdf index d9291dccb..61e626518 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-breaking-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-breaking-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-breaking-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-breaking-002.pdf index 7a877271b..e3764dcdc 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-breaking-002.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-breaking-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-breaking-003.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-breaking-003.pdf index e047dc8bd..cd7e4362e 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-breaking-003.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-breaking-003.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-breaking-004.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-breaking-004.pdf index 1f2defc42..12f010260 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-breaking-004.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-breaking-004.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-breaking-005.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-breaking-005.pdf index 5af060922..45ccf0acb 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-breaking-005.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-breaking-005.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-clip-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-clip-001.pdf index e8a218e9c..6d16fbed7 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-clip-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-clip-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-clip-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-clip-002.pdf index 9c916add4..101dffd10 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-clip-002.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-clip-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-collapsing-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-collapsing-001.pdf index 7fe255b46..d60cd7684 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-collapsing-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-collapsing-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-columns-invalid-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-columns-invalid-001.pdf index fc472c267..99c025639 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-columns-invalid-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-columns-invalid-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-columns-invalid-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-columns-invalid-002.pdf index 8e910fafa..ce1a4dc0e 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-columns-invalid-002.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-columns-invalid-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-columns-toolong-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-columns-toolong-001.pdf index 763c35f82..e627bfc2e 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-columns-toolong-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-columns-toolong-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-containing-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-containing-001.pdf index 8feaa866f..1c3abd588 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-containing-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-containing-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-computed-003.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-computed-003.pdf index 3572f0311..c51f81da3 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-computed-003.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-computed-003.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-computed-004.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-computed-004.pdf index e7f00cd4a..3cf2d1f1a 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-computed-004.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-computed-004.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-negative-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-negative-001.pdf index 1ab519b9d..1086e5177 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-negative-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-negative-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-negative-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-negative-002.pdf index 66066aa49..3ee150458 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-negative-002.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-negative-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-non-integer-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-non-integer-001.pdf index f07592657..5f8aa5ece 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-non-integer-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-non-integer-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-non-integer-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-non-integer-002.pdf index 20a2c6315..cf7bb2bdf 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-non-integer-002.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-non-integer-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-non-integer-003.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-non-integer-003.pdf index 0a894713b..9845ce149 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-non-integer-003.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-count-non-integer-003.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-fill-auto-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-fill-auto-002.pdf index 17c18d24c..55d11d7cd 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-fill-auto-002.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-fill-auto-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-fill-auto-003.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-fill-auto-003.pdf index 8f7272776..d978a1040 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-fill-auto-003.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-fill-auto-003.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-fill-balance-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-fill-balance-001.pdf index cb8702563..d85d50e36 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-fill-balance-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-fill-balance-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-gap-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-gap-002.pdf index ae7a80454..ba4d5b961 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-gap-002.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-gap-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-gap-003.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-gap-003.pdf index 3c8966cc6..e83f09eda 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-gap-003.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-gap-003.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-gap-large-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-gap-large-001.pdf index 1fdb62788..05dc4e03b 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-gap-large-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-gap-large-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-gap-large-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-gap-large-002.pdf index 5fa47c586..f73b196fd 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-gap-large-002.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-gap-large-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-gap-negative-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-gap-negative-001.pdf index 4e8a7e490..5b58d8eb0 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-gap-negative-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-gap-negative-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-gap-percentage-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-gap-percentage-001.pdf index 8701675e3..2e1cf35a6 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-gap-percentage-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-gap-percentage-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-height-block-child-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-height-block-child-001.pdf index b9b3a78ee..52b20d840 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-height-block-child-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-height-block-child-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-inherit-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-inherit-001.pdf index 6838a4eca..5b94c4347 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-inherit-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-inherit-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-inherit-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-inherit-002.pdf index 353006399..b1fb3a3ec 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-inherit-002.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-inherit-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-list-item-003.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-list-item-003.pdf index 098e50ff9..8257cad0b 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-list-item-003.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-list-item-003.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-list-item-004.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-list-item-004.pdf index b4e410ea9..338e08312 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-list-item-004.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-list-item-004.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-list-item-005.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-list-item-005.pdf index 09dc295dc..3425b55bf 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-list-item-005.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-list-item-005.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-list-item-008-ref.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-list-item-008-ref.pdf index 2d591c237..a5ab4efb9 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-list-item-008-ref.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-list-item-008-ref.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-list-item-008.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-list-item-008.pdf index 57e17550e..cb5560d76 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-list-item-008.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-list-item-008.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-margin-003.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-margin-003.pdf index 76bbf25f9..25e8c1102 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-margin-003.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-margin-003.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-margin-child-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-margin-child-001.pdf index 3cd51c28e..94fec3bb3 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-margin-child-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-margin-child-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-002.pdf index 8514a6646..e64173a8c 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-002.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-005.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-005.pdf index aa772a328..64d8d2ded 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-005.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-005.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-028.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-028.pdf index 20fd1c41a..c15888525 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-028.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-028.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-column-rule-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-column-rule-001.pdf index f7745778a..8f4c8c037 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-column-rule-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-column-rule-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-margin-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-margin-001.pdf index 792831edf..de06e59d7 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-margin-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-margin-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-margin-003.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-margin-003.pdf index 4d2032dc3..89c6a158f 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-margin-003.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-margin-003.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-margin-004.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-margin-004.pdf index df1e57c2c..a23f52ebf 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-margin-004.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-margin-004.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-margin-005.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-margin-005.pdf index 5b63497f0..1fa24f3e1 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-margin-005.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-nested-margin-005.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-oof-inline-cb-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-oof-inline-cb-001.pdf index 5498f5a4c..5124943eb 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-oof-inline-cb-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-oof-inline-cb-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-oof-inline-cb-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-oof-inline-cb-002.pdf index cd46f1670..ee0ad2e8d 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-oof-inline-cb-002.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-oof-inline-cb-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-overflow-clip.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-overflow-clip.pdf index 8e8f583f2..48a7ed7a5 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-overflow-clip.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-overflow-clip.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-002.pdf index 3ca035393..d97d81597 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-002.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-003.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-003.pdf index 2d6e82fb0..f70e9a0f0 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-003.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-003.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-color-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-color-001.pdf index 399b33018..e7e3bdd95 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-color-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-color-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-fraction-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-fraction-001.pdf index 0e0e2f909..ace2d1e24 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-fraction-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-fraction-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-fraction-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-fraction-002.pdf index 2be4ff3cd..95a61e4f7 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-fraction-002.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-fraction-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-fraction-003.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-fraction-003.pdf index e9611f87a..6f10a3538 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-fraction-003.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-fraction-003.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-large-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-large-001.pdf index 88da8fcb4..74656d6b4 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-large-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-large-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-large-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-large-002.pdf index 4c3477a31..1d4645ac6 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-large-002.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-large-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-nested-balancing-003.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-nested-balancing-003.pdf index 33cb1a4a1..923349091 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-nested-balancing-003.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-nested-balancing-003.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-nested-balancing-004.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-nested-balancing-004.pdf index 48167b4fc..796a9e8bd 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-nested-balancing-004.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-nested-balancing-004.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-px-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-px-001.pdf index 0bb010500..79b505c54 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-px-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-px-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-shorthand-2.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-shorthand-2.pdf index 790f24969..15ac1ccf0 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-shorthand-2.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-shorthand-2.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-stacking-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-stacking-001.pdf index d74709511..250a5e9ed 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-stacking-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-rule-stacking-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-shorthand-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-shorthand-001.pdf index 2fef5672d..15a7a7dda 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-shorthand-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-shorthand-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-001.pdf index b4ba6eadc..0c24b8bf7 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-002.pdf index 94c93cff2..d892ac4ae 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-002.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-004-ref.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-004-ref.pdf index b6b0a680e..8caf3d3a6 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-004-ref.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-004-ref.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-004.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-004.pdf index 240cf31be..b73ac9f7d 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-004.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-004.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-005-ref.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-005-ref.pdf index 9c9cf33c6..71af99468 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-005-ref.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-005-ref.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-005.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-005.pdf index 92aab4299..c462e3731 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-005.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-005.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-008.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-008.pdf index e3dccfdef..a3a30d62c 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-008.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-008.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-009.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-009.pdf index 5823aaa1c..080222f7d 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-009.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-009.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-010-ref.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-010-ref.pdf index 235f40103..31ec8fd43 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-010-ref.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-010-ref.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-010.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-010.pdf index 04c60cf35..59588285a 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-010.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-010.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-children-height-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-children-height-002.pdf index 984b38e59..edc703d35 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-children-height-002.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-children-height-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-children-height-003.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-children-height-003.pdf index 33a856096..3fd7749e6 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-children-height-003.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-children-height-003.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-children-height-006-ref.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-children-height-006-ref.pdf index 925cec3ac..7d974d9d8 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-children-height-006-ref.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-children-height-006-ref.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-children-height-006.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-children-height-006.pdf index b7523adae..812f195fa 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-children-height-006.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-children-height-006.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-children-height-007.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-children-height-007.pdf index ac88070d0..595bfe799 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-children-height-007.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-children-height-007.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-001-ref.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-001-ref.pdf index 2077136da..ce98ee446 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-001-ref.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-001-ref.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-002-ref.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-002-ref.pdf index eb8c5948b..c09ed75aa 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-002-ref.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-002-ref.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-003-ref.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-003-ref.pdf index 67eded599..79f4dad87 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-003-ref.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-003-ref.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-004-ref.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-004-ref.pdf index 2eff6cfac..7d6e15d5e 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-004-ref.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-004-ref.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-007-ref.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-007-ref.pdf index eff5377f5..e858bb1e4 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-007-ref.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-007-ref.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-010-ref.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-010-ref.pdf index d6fb04ee4..5eee1a3a1 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-010-ref.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-010-ref.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-012-ref.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-012-ref.pdf index dc3d22ae2..fbdd0bbe7 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-012-ref.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-add-012-ref.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-remove-005-ref.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-remove-005-ref.pdf index 0678651fe..37a627ef9 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-remove-005-ref.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-dynamic-remove-005-ref.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-fieldset-001-ref.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-fieldset-001-ref.pdf index ec8f81a66..6a82530de 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-fieldset-001-ref.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-fieldset-001-ref.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-fieldset-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-fieldset-001.pdf index 304e63575..fb2b8c77b 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-fieldset-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-fieldset-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-fieldset-002-ref.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-fieldset-002-ref.pdf index e4a2343c5..ae6c974ba 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-fieldset-002-ref.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-fieldset-002-ref.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-fieldset-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-fieldset-002.pdf index 0b7dbf855..eac281597 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-fieldset-002.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-fieldset-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-fieldset-003-ref.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-fieldset-003-ref.pdf index 58978c40e..f868c5510 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-fieldset-003-ref.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-fieldset-003-ref.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-fieldset-003.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-fieldset-003.pdf index 9fc8ffe78..579af7220 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-fieldset-003.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-fieldset-003.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-001.pdf index 670905770..f5f28b076 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-002.pdf index 7b211449c..e6e96928c 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-002.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-003.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-003.pdf index 18b9a68f0..e16f997b7 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-003.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-003.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-bottom-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-bottom-001.pdf index bb2763ee0..bd6803b84 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-bottom-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-bottom-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-nested-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-nested-001.pdf index ea1308667..4dea25fd8 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-nested-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-nested-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-nested-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-nested-002.pdf index 0eb3e6516..efe5d9f72 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-nested-002.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-nested-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-nested-firstchild-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-nested-firstchild-001.pdf index 6c79b7f49..9c63e22b1 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-nested-firstchild-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-margin-nested-firstchild-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-rule-001-ref.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-rule-001-ref.pdf index da19e64c0..aa868c48b 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-rule-001-ref.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-rule-001-ref.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-rule-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-rule-001.pdf index a0bd3520a..592f652d6 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-rule-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-all-rule-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-float-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-float-001.pdf index 787f94fb3..5b8b90895 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-float-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-float-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-none-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-none-001.pdf index 5d0874934..2b4d04994 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-none-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-span-none-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-width-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-width-002.pdf index e830194ad..b015af954 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-width-002.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-width-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-width-003.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-width-003.pdf index 264ae1c52..e7dc9aae0 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-width-003.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-width-003.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-width-large-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-width-large-001.pdf index 195a445cf..1afe827e6 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-width-large-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-width-large-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-width-large-002.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-width-large-002.pdf index 03505ae0d..2a09ab094 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-width-large-002.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-width-large-002.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-width-small-001.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-width-small-001.pdf index 712ef85de..8b358690a 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-width-small-001.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/multicol-width-small-001.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/nested-at-outer-boundary-as-fieldset.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/nested-at-outer-boundary-as-fieldset.pdf index c8d6fbdd3..02c92ebe6 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/nested-at-outer-boundary-as-fieldset.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/nested-at-outer-boundary-as-fieldset.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/nested-at-outer-boundary-as-legend.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/nested-at-outer-boundary-as-legend.pdf index 75e9828af..f477c79f5 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/nested-at-outer-boundary-as-legend.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/nested-at-outer-boundary-as-legend.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/nested-oofs-in-relative-multicol.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/nested-oofs-in-relative-multicol.pdf index e93a58c32..e2923f2cc 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/nested-oofs-in-relative-multicol.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/nested-oofs-in-relative-multicol.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/spanner-fragmentation-008.pdf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/spanner-fragmentation-008.pdf index 575480482..6b260aed4 100644 Binary files a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/spanner-fragmentation-008.pdf and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/css_multicol/spanner-fragmentation-008.pdf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/support/1x1-lime.png b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/support/1x1-lime.png new file mode 100644 index 000000000..cb397fb09 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/support/1x1-lime.png differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/support/alignment.css b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/support/alignment.css new file mode 100644 index 000000000..d4c970c52 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/support/alignment.css @@ -0,0 +1,367 @@ +/* align-self */ +.alignSelfAuto { align-self: auto; } +.alignSelfNormal { align-self: normal; } +.alignSelfStretch { align-self: stretch; } +.alignSelfStart { align-self: start; } +.alignSelfEnd { align-self: end; } +.alignSelfCenter { align-self: center; } +.alignSelfRight { align-self: right; } +.alignSelfLeft { align-self: left; } + +.alignSelfFlexStart { align-self: flex-start; } +.alignSelfFlexEnd { align-self: flex-end; } + +.alignSelfSelfStart { align-self: self-start; } +.alignSelfSelfEnd { align-self: self-end; } + +.alignSelfSafeCenter { align-self: safe center; } +.alignSelfUnsafeCenter { align-self: unsafe center; } +.alignSelfSafeEnd { align-self: safe end; } +.alignSelfUnsafeEnd { align-self: unsafe end; } +.alignSelfSafeSelfEnd { align-self: safe self-end; } +.alignSelfUnsafeSelfEnd { align-self: unsafe self-end; } +.alignSelfSafeSelfStart { align-self: safe self-start; } +.alignSelfUnsafeSelfStart { align-self: unsafe self-start; } +.alignSelfSafeRight { align-self: safe right; } +.alignSelfUnsafeRight { align-self: unsafe right; } +.alignSelfSafeLeft { align-self: safe left; } +.alignSelfUnsafeLeft { align-self: unsafe left; } +.alignSelfSafeFlexEnd { align-self: safe flex-end; } +.alignSelfUnsafeFlexEnd { align-self: unsafe flex-end; } +.alignSelfSafeFlexStart { align-self: safe flex-start; } +.alignSelfUnsafeFlexStart { align-self: unsafe flex-start; } + +.alignSelfBaseline { align-self: baseline; } +.alignSelfFirstBaseline { align-self: first baseline; } +.alignSelfLastBaseline { align-self: last baseline; } + +/* align-items */ +.alignItemsAuto { align-items: auto; } +.alignItemsNormal { align-items: normal; } +.alignItemsStretch { align-items: stretch; } +.alignItemsStart { align-items: start; } +.alignItemsCenter { align-items: center; } +.alignItemsEnd { align-items: end; } +.alignItemsLeft { align-items: left; } +.alignItemsRight { align-items: right; } + +.alignItemsFlexStart { align-items: flex-start; } +.alignItemsFlexEnd { align-items: flex-end; } + +.alignItemsSelfStart { align-items: self-start; } +.alignItemsSelfEnd { align-items: self-end; } + +.alignItemsSafeCenter { align-items: safe center; } +.alignItemsUnsafeCenter { align-items: unsafe center; } +.alignItemsSafeEnd { align-items: safe end; } +.alignItemsUnsafeEnd { align-items: unsafe end; } +.alignItemsSafeSelfEnd { align-items: safe self-end; } +.alignItemsUnsafeSelfEnd { align-items: unsafe self-end; } +.alignItemsSafeSelfStart { align-items: safe self-start; } +.alignItemsUnsafeSelfStart { align-items: unsafe self-start; } +.alignItemsSafeRight { align-items: safe right; } +.alignItemsUnsafeRight { align-items: unsafe right; } +.alignItemsSafeLeft { align-items: safe left; } +.alignItemsUnsafeLeft { align-items: unsafe left; } +.alignItemsSafeFlexEnd { align-items: safe flex-end; } +.alignItemsUnsafeFlexEnd { align-items: unsafe flex-end; } +.alignItemsSafeFlexStart { align-items: safe flex-start; } +.alignItemsUnsafeFlexStart { align-items: unsafe flex-start; } + +.alignItemsBaseline { align-items: baseline; } +.alignItemsFirstBaseline { align-items: first baseline; } +.alignItemsLastBaseline { align-items: last baseline; } + +/* align-content */ +.alignContentBaseline { align-content: baseline; } +.alignContentLastBaseline { align-content: last-baseline; } +.alignContentStart { align-content: start; } +.alignContentEnd { align-content: end; } +.alignContentCenter { align-content: center; } +.alignContentLeft { align-content: left; } +.alignContentRight { align-content: right; } + +.alignContentFlexStart { align-content: flex-start; } +.alignContentFlexEnd { align-content: flex-end; } + +.alignContentSpaceBetween { align-content: space-between; } +.alignContentSpaceAround { align-content: space-around; } +.alignContentSpaceEvenly { align-content: space-evenly; } +.alignContentStretch { align-content: stretch; } + +.alignContentSafeCenter { align-content: safe center; } +.alignContentUnsafeCenter { align-content: unsafe center; } +.alignContentSafeEnd { align-content: safe end; } +.alignContentUnsafeEnd { align-content: unsafe end; } +.alignContentSafeRight { align-content: safe right; } +.alignContentUnsafeRight { align-content: unsafe right; } +.alignContentSafeLeft { align-content: safe left; } +.alignContentUnsafeLeft { align-content: unsafe left; } +.alignContentSafeFlexEnd { align-content: safe flex-end; } +.alignContentUnsafeFlexEnd { align-content: unsafe flex-end; } +.alignContentSafeFlexStart { align-content: safe flex-start; } +.alignContentUnsafeFlexStart { align-content: unsafe flex-start; } + +.alignContentBaseline { align-content: baseline; } +.alignContentFirstBaseline { align-content: first baseline; } +.alignContentLastBaseline { align-content: last baseline; } + +/* justify-self */ +.justifySelfAuto { justify-self: auto; } +.justifySelfNormal { justify-self: normal; } +.justifySelfStretch { justify-self: stretch; } +.justifySelfStart { justify-self: start; } +.justifySelfCenter { justify-self: center; } +.justifySelfEnd { justify-self: end; } +.justifySelfRight { justify-self: right; } +.justifySelfLeft { justify-self: left; } + +.justifySelfFlexStart { justify-self: flex-start; } +.justifySelfFlexEnd { justify-self: flex-end; } + +.justifySelfSelfStart { justify-self: self-start; } +.justifySelfSelfEnd { justify-self: self-end; } + +.justifySelfSafeCenter { justify-self: safe center; } +.justifySelfUnsafeCenter { justify-self: unsafe center; } +.justifySelfSafeEnd { justify-self: safe end; } +.justifySelfUnsafeEnd { justify-self: unsafe end; } +.justifySelfSafeSelfEnd { justify-self: safe self-end; } +.justifySelfUnsafeSelfEnd { justify-self: unsafe self-end; } +.justifySelfSafeSelfStart { justify-self: safe self-start; } +.justifySelfUnsafeSelfStart { justify-self: unsafe self-start; } +.justifySelfSafeRight { justify-self: safe right; } +.justifySelfUnsafeRight { justify-self: unsafe right; } +.justifySelfSafeLeft { justify-self: safe left; } +.justifySelfUnsafeLeft { justify-self: unsafe left; } +.justifySelfSafeFlexEnd { justify-self: safe flex-end; } +.justifySelfUnsafeFlexEnd { justify-self: unsafe flex-end; } +.justifySelfSafeFlexStart { justify-self: safe flex-start; } +.justifySelfUnsafeFlexStart { justify-self: unsafe flex-start; } + +.justifySelfBaseline { justify-self: baseline; } +.justifySelfFirstBaseline { justify-self: first baseline; } +.justifySelfLastBaseline { justify-self: last baseline; } + +/* justify-items */ +.justifyItemsAuto { justify-items: auto; } +.justifyItemsNormal { justify-items: normal; } +.justifyItemsStretch { justify-items: stretch; } +.justifyItemsStart { justify-items: start; } +.justifyItemsCenter { justify-items: center; } +.justifyItemsEnd { justify-items: end; } +.justifyItemsLeft { justify-items: left; } +.justifyItemsRight { justify-items: right; } + +.justifyItemsFlexStart { justify-items: flex-start; } +.justifyItemsFlexEnd { justify-items: flex-end; } + +.justifyItemsSelfStart { justify-items: self-start; } +.justifyItemsSelfEnd { justify-items: self-end; } + +.justifyItemsLegacy { justify-items: legacy; } +.justifyItemsLegacyLeft { justify-items: legacy left; } +.justifyItemsLegacyCenter { justify-items: legacy center; } +.justifyItemsLegacyRight { justify-items: legacy right; } +.justifyItemsLeftLegacy { justify-items: left legacy; } +.justifyItemsCenterLegacy { justify-items: center legacy; } +.justifyItemsRightLegacy { justify-items: right legacy; } + +.justifyItemsSafeCenter { justify-items: safe center; } +.justifyItemsUnsafeCenter { justify-items: unsafe center; } +.justifyItemsSafeEnd { justify-items: safe end; } +.justifyItemsUnsafeEnd { justify-items: unsafe end; } +.justifyItemsSafeSelfEnd { justify-items: safe self-end; } +.justifyItemsUnsafeSelfEnd { justify-items: unsafe self-end; } +.justifyItemsSafeSelfStart { justify-items: safe self-start; } +.justifyItemsUnsafeSelfStart { justify-items: unsafe self-start; } +.justifyItemsSafeRight { justify-items: safe right; } +.justifyItemsUnsafeRight { justify-items: unsafe right; } +.justifyItemsSafeLeft { justify-items: safe left; } +.justifyItemsUnsafeLeft { justify-items: unsafe left; } +.justifyItemsSafeFlexEnd { justify-items: safe flex-end; } +.justifyItemsUnsafeFlexEnd { justify-items: unsafe flex-end; } +.justifyItemsSafeFlexStart { justify-items: safe flex-start; } +.justifyItemsUnsafeFlexStart { justify-items: unsafe flex-start; } + +.justifyItemsTest { justify-items: safe end; } + +.justifyItemsBaseline { justify-items: baseline; } +.justifyItemsFirstBaseline { justify-items: first baseline; } +.justifyItemsLastBaseline { justify-items: last baseline; } + +/* justify-content */ +.justifyContentBaseline { justify-content: baseline; } +.justifyContentLastBaseline { justify-content: last-baseline; } +.justifyContentStart { justify-content: start; } +.justifyContentEnd { justify-content: end; } +.justifyContentCenter { justify-content: center; } +.justifyContentLeft { justify-content: left; } +.justifyContentRight { justify-content: right; } + +.justifyContentFlexStart { justify-content: flex-start; } +.justifyContentFlexEnd { justify-content: flex-end; } + +.justifyContentSpaceBetween { justify-content: space-between; } +.justifyContentSpaceAround { justify-content: space-around; } +.justifyContentSpaceEvenly { justify-content: space-evenly; } +.justifyContentStretch { justify-content: stretch; } + +.justifyContentSafeCenter { justify-content: safe center; } +.justifyContentUnsafeCenter { justify-content: unsafe center; } +.justifyContentSafeEnd { justify-content: safe end; } +.justifyContentUnsafeEnd { justify-content: unsafe end; } +.justifyContentSafeRight { justify-content: safe right; } +.justifyContentUnsafeRight { justify-content: unsafe right; } +.justifyContentSafeLeft { justify-content: safe left; } +.justifyContentUnsafeLeft { justify-content: unsafe left; } +.justifyContentSafeFlexEnd { justify-content: safe flex-end; } +.justifyContentUnsafeFlexEnd { justify-content: unsafe flex-end; } +.justifyContentSafeFlexStart { justify-content: safe flex-start; } +.justifyContentUnsafeFlexStart { justify-content: unsafe flex-start; } + +.justifyContentBaseline { justify-content: baseline; } +.justifyContentFirstBaseline { justify-content: first baseline; } +.justifyContentLastBaseline { justify-content: last baseline; } + +/* Both align-items and justify-items */ +.itemsNormal { + align-items: normal; + justify-items: normal; +} + +.itemsStretch { + align-items: stretch; + justify-items: stretch; +} + +.itemsStart { + align-items: start; + justify-items: start; +} + +.itemsCenter { + align-items: center; + justify-items: center; +} + +.itemsEnd { + align-items: end; + justify-items: end; +} + +.itemsLeft { + align-items: left; + justify-items: left; +} + +.itemsRight { + align-items: right; + justify-items: right; +} + +.itemsSelfStart { + align-items: self-start; + justify-items: self-start; +} + +.itemsSelfEnd { + align-items: self-end; + justify-items: self-end; +} +.itemsBaseline { + align-items: baseline; + justify-items: baseline; +} + +/* Both align-self and justify-self */ +.selfStretch { + align-self: stretch; + justify-self: stretch; +} +.selfStart { + align-self: start; + justify-self: start; +} +.selfEnd { + align-self: end; + justify-self: end; +} +.selfCenter { + align-self: center; + justify-self: center; +} +.selfRight { + align-self: right; + justify-self: right; +} +.selfLeft { + align-self: left; + justify-self: left; +} +.selfSelfStart { + align-self: self-start; + justify-self: self-start; +} +.selfSelfEnd { + align-self: self-end; + justify-self: self-end; +} +.selfBaseline { + align-self: baseline; + justify-self: baseline; +} + +/* Both align-content and justify-content */ +.contentStart { + align-content: start; + justify-content: start; +} +.contentCenter { + align-content: center; + justify-content: center; +} +.contentEnd { + align-content: end; + justify-content: end; +} + +.contentCenterSafe { + align-content: safe center; + justify-content: safe center; +} + +.contentCenterUnsafe { + align-content: unsafe center; + justify-content: unsafe center; +} + +.contentEndSafe { + align-content: safe end; + justify-content: safe end; +} + +.contentEndUnsafe { + align-content: unsafe end; + justify-content: unsafe end; +} + +.contentSpaceBetween { + justify-content: space-between; + align-content: space-between; +} + +.contentSpaceAround { + justify-content: space-around; + align-content: space-around; +} + +.contentSpaceEvenly { + justify-content: space-evenly; + align-content: space-evenly; +} + +.contentStretch { + justify-content: stretch; + align-content: stretch; +} diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/support/colors-8x16.png b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/support/colors-8x16.png new file mode 100644 index 000000000..596fdb389 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/support/colors-8x16.png differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/support/grid.css b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/support/grid.css new file mode 100644 index 000000000..4007ebba4 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/support/grid.css @@ -0,0 +1,289 @@ +.grid { + display: grid; + background-color: grey; +} + +.inline-grid { + display: inline-grid; + background-color: grey; +} + +.firstRowFirstColumn { + background-color: blue; + grid-column: 1; + grid-row: 1; +} + +.onlyFirstRowOnlyFirstColumn { + background-color: blue; + grid-column: 1 / 2; + grid-row: 1 / 2; +} + +.firstRowSecondColumn { + background-color: lime; + grid-column: 2; + grid-row: 1; +} + +.onlyFirstRowOnlySecondColumn { + background-color: lime; + grid-column: 2 / 3; + grid-row: 1 / 2; +} + +.firstRowThirdColumn { + background-color: magenta; + grid-column: 3; + grid-row: 1; +} + +.firstRowFourthColumn { + background-color: green; + grid-column: 4; + grid-row: 1; +} + +.secondRowFirstColumn { + background-color: purple; + grid-column: 1; + grid-row: 2; +} + +.onlySecondRowOnlyFirstColumn { + background-color: purple; + grid-column: 1 / 2; + grid-row: 2 / 3; +} + +.secondRowSecondColumn { + background-color: orange; + grid-column: 2; + grid-row: 2; +} + +.onlySecondRowOnlySecondColumn { + background-color: orange; + grid-column: 2 / 3; + grid-row: 2 / 3; +} + +.endSecondRowEndSecondColumn { + background-color: orange; + grid-column-end: 3; + grid-row-end: 3; +} + +.secondRowThirdColumn { + background-color: navy; + grid-column: 3; + grid-row: 2; +} + +.secondRowFourthColumn { + background-color: pink; + grid-column: 4; + grid-row: 2; +} + +.thirdRowFirstColumn { + background-color: green; + grid-column: 1; + grid-row: 3; +} + +.thirdRowSecondColumn { + background-color: red; + grid-column: 2; + grid-row: 3; +} + +.thirdRowThirdColumn { + background-color: salmon; + grid-column: 3; + grid-row: 3; +} + +.firstAutoRowSecondAutoColumn { + grid-row: 1 / auto; + grid-column: 2 / auto; +} + +.autoLastRowAutoLastColumn { + grid-row: auto / -1; + grid-column: auto / -1; +} + +.autoSecondRowAutoFirstColumn { + grid-row: auto / 2; + grid-column: auto / 1; +} + +.firstRowBothColumn { + grid-row: 1; + grid-column: 1 / -1; +} + +.secondRowBothColumn { + grid-row: 2; + grid-column: 1 / -1; +} + +.bothRowFirstColumn { + grid-row: 1 / -1; + grid-column: 1; +} + +.bothRowSecondColumn { + grid-row: 1 / -1; + grid-column: 2; +} + +.bothRowBothColumn { + grid-row: 1 / -1; + grid-column: 1 / -1; +} + +/* Auto column / row. */ +.autoRowAutoColumn { + background-color: pink; + grid-column: auto; + grid-row: auto; +} + +.firstRowAutoColumn { + background-color: blue; + grid-column: auto; + grid-row: 1; +} + +.secondRowAutoColumn { + background-color: purple; + grid-column: auto; + grid-row: 2; +} + +.thirdRowAutoColumn { + background-color: navy; + grid-column: auto; + grid-row: 3; +} + +.autoRowFirstColumn { + background-color: lime; + grid-column: 1; + grid-row: auto; +} + +.autoRowSecondColumn { + background-color: orange; + grid-column: 2; + grid-row: auto; +} + +.autoRowThirdColumn { + background-color: magenta; + grid-column: 3; + grid-row: auto; +} + +.autoRowAutoColumnSpanning2 { + background-color: maroon; + grid-column: span 2; + grid-row: auto; +} + +.autoRowSpanning2AutoColumn { + background-color: aqua; + grid-column: auto; + grid-row: span 2; +} + +.autoRowSpanning2AutoColumnSpanning3 { + background-color: olive; + grid-column: span 3; + grid-row: span 2; +} + +.autoRowSpanning3AutoColumnSpanning2 { + background-color: indigo; + grid-column: span 2; + grid-row: span 3; +} + +.autoRowFirstColumnSpanning2 { + background-color: maroon; + grid-column: 1 / span 2; + grid-row: auto; +} + +.autoRowSecondColumnSpanning2 { + background-color: olive; + grid-column: 2 / span 2; + grid-row: auto; +} + +.firstRowSpanning2AutoColumn { + background-color: maroon; + grid-column: auto; + grid-row: 1 / span 2; + height: 100%; +} + +.secondRowSpanning2AutoColumn { + background-color: olive; + grid-column: auto; + grid-row: 2 / span 2; + height: 100%; +} + +/* Grid element flow. */ +.gridAutoFlowColumnSparse { + grid-auto-flow: column; +} + +.gridAutoFlowColumnDense { + grid-auto-flow: column dense; +} + +.gridAutoFlowRowSparse { + grid-auto-flow: row; +} + +.gridAutoFlowRowDense { + grid-auto-flow: row dense; +} + +/* This rule makes sure the container is smaller than any grid items to avoid distributing any extra logical space to them. */ +.constrainedContainer { + width: 10px; + height: 10px; +} + +.unconstrainedContainer { + width: 1000px; + height: 1000px; +} + +.sizedToGridArea { + font: 10px/1 Ahem; + /* Make us fit our grid area. */ + width: 100%; + height: 100%; +} + +.verticalRL { + writing-mode: vertical-rl; +} +.verticalLR { + writing-mode: vertical-lr; +} +.horizontalTB { + writing-mode: horizontal-tb; +} +.directionRTL { + direction: rtl; +} +.directionLTR { + direction: ltr; +} diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/support/width-keyword-classes.css b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/support/width-keyword-classes.css new file mode 100644 index 000000000..e77752760 --- /dev/null +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/css/w3c/support/width-keyword-classes.css @@ -0,0 +1,43 @@ +/* + Take every possible line break so the box width is the width of largest + unbreakable line box. +*/ +.min-content { + width: min-content; +} + +.max-content { + width: max-content; +} + +/* + Shrink wrap just like floating. + max(min-content, min(max-content, fill-available)) +*/ +.fit-content { + width: fit-content; +} + +.max-width-min-content { + max-width: min-content; +} + +.max-width-max-content { + max-width: max-content; +} + +.max-width-fit-content { + max-width: fit-content; +} + +.min-width-min-content { + min-width: min-content; +} + +.min-width-max-content { + min-width: max-content; +} + +.min-width-fit-content { + min-width: fit-content; +} diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/fonts/Bokor-Regular.ttf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/fonts/Bokor-Regular.ttf new file mode 100644 index 000000000..66faecc0a Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/fonts/Bokor-Regular.ttf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/fonts/NOTICE.txt b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/fonts/NOTICE.txt index d56b443bb..6d0612c77 100644 --- a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/fonts/NOTICE.txt +++ b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/fonts/NOTICE.txt @@ -5,7 +5,13 @@ | Amaranth font | OFL-1.1 | | NotoNaskhArabic-Regular | OFL-1.1 | In development version of font based on commit 4cdde035fd5138d6653a2176ba728b5b6f8cc533 (30.10.2019) from repository: "https://github.com/googlefonts/noto-fonts" | NotoEmoji-Regular | SIL Open Font License v1.1 | OFL.txt | - + | SpaceMono-Regular | SIL Open Font License v1.1 | OFL.txt |(29.04.2024) + | StyleScript-Regular | SIL Open Font License v1.1 | OFL.txt |(29.04.2024) + | Orbitron-Regular | SIL Open Font License v1.1 | OFL.txt |(29.04.2024) + | Bokor-Regular | SIL Open Font License v1.1 | OFL.txt |(30.04.2024) + | NotoSansJP-Bold.ttf | OFL-1.1 | OFL.txt |(07.05.2024) + | OpenSans-Regular.ttf | OFL-1.1 | OFL.txt |(07.05.2024) + | OpenSans-Bold.ttf | OFL-1.1 | OFL.txt |(07.05.2024) ------------------------------------------------------------------------------------------------------------------------ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/fonts/NotoSansCJKjp-Regular.otf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/fonts/NotoSansCJKjp-Regular.otf new file mode 100644 index 000000000..296fbebd8 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/fonts/NotoSansCJKjp-Regular.otf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/fonts/NotoSansJP-Bold.ttf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/fonts/NotoSansJP-Bold.ttf new file mode 100644 index 000000000..384f8ebb8 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/fonts/NotoSansJP-Bold.ttf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/fonts/Orbitron-Regular.otf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/fonts/Orbitron-Regular.otf new file mode 100644 index 000000000..68bc92a91 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/fonts/Orbitron-Regular.otf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/fonts/SpaceMono-Regular.ttf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/fonts/SpaceMono-Regular.ttf new file mode 100644 index 000000000..04e56b923 Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/fonts/SpaceMono-Regular.ttf differ diff --git a/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/fonts/StyleScript-Regular.otf b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/fonts/StyleScript-Regular.otf new file mode 100644 index 000000000..01da4edae Binary files /dev/null and b/itext.tests/itext.html2pdf.tests/resources/itext/html2pdf/fonts/StyleScript-Regular.otf differ diff --git a/itext/itext.html2pdf/Html2PdfExtensions.cs b/itext/itext.html2pdf/Html2PdfExtensions.cs index e1395db83..42de78d13 100644 --- a/itext/itext.html2pdf/Html2PdfExtensions.cs +++ b/itext/itext.html2pdf/Html2PdfExtensions.cs @@ -30,6 +30,7 @@ You should have received a copy of the GNU Affero General Public License using iText.Commons.Utils; using iText.Html2pdf; +//\cond DO_NOT_DOCUMENT internal static class Html2PdfExtensions { public static String Name(this Encoding e) { return e.WebName.ToUpperInvariant(); @@ -488,3 +489,4 @@ public static byte[] GetBuffer(this MemoryStream memoryStream) { } #endif } +//\endcond \ No newline at end of file diff --git a/itext/itext.html2pdf/Properties/AssemblyInfo.cs b/itext/itext.html2pdf/Properties/AssemblyInfo.cs index eac2fe7c9..ee10c903a 100644 --- a/itext/itext.html2pdf/Properties/AssemblyInfo.cs +++ b/itext/itext.html2pdf/Properties/AssemblyInfo.cs @@ -28,6 +28,6 @@ [assembly: Guid("ff6ba09d-3655-466a-8c17-a7bfd3479ca1")] -[assembly: AssemblyVersion("5.0.4.0")] -[assembly: AssemblyFileVersion("5.0.4.0")] -[assembly: AssemblyInformationalVersion("5.0.4")] +[assembly: AssemblyVersion("5.0.5.0")] +[assembly: AssemblyFileVersion("5.0.5.0")] +[assembly: AssemblyInformationalVersion("5.0.5")] diff --git a/itext/itext.html2pdf/itext.html2pdf.csproj b/itext/itext.html2pdf/itext.html2pdf.csproj index 0e324c2bb..df2f79fad 100644 --- a/itext/itext.html2pdf/itext.html2pdf.csproj +++ b/itext/itext.html2pdf/itext.html2pdf.csproj @@ -31,7 +31,7 @@
- + diff --git a/itext/itext.html2pdf/itext/html2pdf/ByteBuffer.cs b/itext/itext.html2pdf/itext/html2pdf/ByteBuffer.cs index 52cfe78cf..854eec3a9 100644 --- a/itext/itext.html2pdf/itext/html2pdf/ByteBuffer.cs +++ b/itext/itext.html2pdf/itext/html2pdf/ByteBuffer.cs @@ -24,6 +24,7 @@ You should have received a copy of the GNU Affero General Public License namespace iText.Html2pdf { +//\cond DO_NOT_DOCUMENT internal class ByteBuffer { internal byte[] buffer; internal int position = 0; @@ -88,4 +89,6 @@ public static ByteBuffer EmptyByteBuffer() { return new ByteBuffer(new byte[0]); } } + +//\endcond } diff --git a/itext/itext.html2pdf/itext/html2pdf/ConverterProperties.cs b/itext/itext.html2pdf/itext/html2pdf/ConverterProperties.cs index 9bf7ad60a..60311670b 100644 --- a/itext/itext.html2pdf/itext/html2pdf/ConverterProperties.cs +++ b/itext/itext.html2pdf/itext/html2pdf/ConverterProperties.cs @@ -552,6 +552,7 @@ public virtual iText.Html2pdf.ConverterProperties SetImmediateFlush(bool immedia return this; } +//\cond DO_NOT_DOCUMENT /// Gets html meta info. /// /// Gets html meta info. @@ -565,6 +566,7 @@ public virtual iText.Html2pdf.ConverterProperties SetImmediateFlush(bool immedia internal virtual IMetaInfo GetEventMetaInfo() { return metaInfo == null ? HtmlConverter.CreatePdf2HtmlMetaInfo() : metaInfo; } +//\endcond /// Sets html meta info. /// diff --git a/itext/itext.html2pdf/itext/html2pdf/HtmlConverter.cs b/itext/itext.html2pdf/itext/html2pdf/HtmlConverter.cs index 2980cb8fd..b31be8b49 100644 --- a/itext/itext.html2pdf/itext/html2pdf/HtmlConverter.cs +++ b/itext/itext.html2pdf/itext/html2pdf/HtmlConverter.cs @@ -747,9 +747,11 @@ public static IList ConvertToElements(Stream htmlStream, ConverterProp return Attacher.Attach(doc, converterProperties); } +//\cond DO_NOT_DOCUMENT internal static IMetaInfo CreatePdf2HtmlMetaInfo() { return new HtmlConverter.HtmlMetaInfo(); } +//\endcond private static IMetaInfo ResolveMetaInfo(ConverterProperties converterProperties) { return converterProperties == null ? CreatePdf2HtmlMetaInfo() : converterProperties.GetEventMetaInfo(); diff --git a/itext/itext.html2pdf/itext/html2pdf/actions/data/PdfHtmlProductData.cs b/itext/itext.html2pdf/itext/html2pdf/actions/data/PdfHtmlProductData.cs index 8e347a7e5..e7f1db8b1 100644 --- a/itext/itext.html2pdf/itext/html2pdf/actions/data/PdfHtmlProductData.cs +++ b/itext/itext.html2pdf/itext/html2pdf/actions/data/PdfHtmlProductData.cs @@ -33,7 +33,7 @@ namespace iText.Html2pdf.Actions.Data { public sealed class PdfHtmlProductData { private const String PDF_HTML_PUBLIC_PRODUCT_NAME = "pdfHTML"; - private const String PDF_HTML_VERSION = "5.0.4"; + private const String PDF_HTML_VERSION = "5.0.5"; private const int PDF_HTML_COPYRIGHT_SINCE = 2000; diff --git a/itext/itext.html2pdf/itext/html2pdf/attach/impl/DefaultTagWorkerFactory.cs b/itext/itext.html2pdf/itext/html2pdf/attach/impl/DefaultTagWorkerFactory.cs index 50ce26760..ccb6859ef 100644 --- a/itext/itext.html2pdf/itext/html2pdf/attach/impl/DefaultTagWorkerFactory.cs +++ b/itext/itext.html2pdf/itext/html2pdf/attach/impl/DefaultTagWorkerFactory.cs @@ -68,9 +68,11 @@ public ITagWorker GetTagWorker(IElementNode tag, ProcessorContext context) { return tagWorker; } +//\cond DO_NOT_DOCUMENT internal virtual TagProcessorMapping GetDefaultMapping() { return defaultMapping; } +//\endcond /// Gets the tag worker creator for a specific element node. /// the mapping diff --git a/itext/itext.html2pdf/itext/html2pdf/attach/impl/DefaultTagWorkerMapping.cs b/itext/itext.html2pdf/itext/html2pdf/attach/impl/DefaultTagWorkerMapping.cs index d354b141a..02b3f74dc 100644 --- a/itext/itext.html2pdf/itext/html2pdf/attach/impl/DefaultTagWorkerMapping.cs +++ b/itext/itext.html2pdf/itext/html2pdf/attach/impl/DefaultTagWorkerMapping.cs @@ -32,6 +32,7 @@ You should have received a copy of the GNU Affero General Public License using iText.StyledXmlParser.Node; namespace iText.Html2pdf.Attach.Impl { +//\cond DO_NOT_DOCUMENT /// /// Contains the actual mapping of the /// . @@ -160,6 +161,8 @@ static DefaultTagWorkerMapping() { rhs)); workerMapping.PutMapping(TagConstants.SPAN, CssConstants.FLEX, (lhs, rhs) => new DisplayFlexTagWorker(lhs, rhs)); + workerMapping.PutMapping(TagConstants.DIV, CssConstants.GRID, (lhs, rhs) => new DisplayGridTagWorker(lhs, + rhs)); // pseudo elements mapping String beforePseudoElemName = CssPseudoElementUtil.CreatePseudoElementTagName(CssConstants.BEFORE); String afterPseudoElemName = CssPseudoElementUtil.CreatePseudoElementTagName(CssConstants.AFTER); @@ -189,13 +192,16 @@ static DefaultTagWorkerMapping() { (lhs, rhs)); } +//\cond DO_NOT_DOCUMENT /// Gets the default tag worker mapping. /// the default mapping internal virtual TagProcessorMapping GetDefaultTagWorkerMapping () { return workerMapping; } +//\endcond +//\cond DO_NOT_DOCUMENT /// /// Instantiates a new /// @@ -203,7 +209,9 @@ internal virtual TagProcessorMapping /// internal DefaultTagWorkerMapping() { } +//\endcond public delegate ITagWorker ITagWorkerCreator(IElementNode elementNode, ProcessorContext processorContext); } +//\endcond } diff --git a/itext/itext.html2pdf/itext/html2pdf/attach/impl/HtmlMetaInfoContainer.cs b/itext/itext.html2pdf/itext/html2pdf/attach/impl/HtmlMetaInfoContainer.cs index 9b48858a7..3507bf758 100644 --- a/itext/itext.html2pdf/itext/html2pdf/attach/impl/HtmlMetaInfoContainer.cs +++ b/itext/itext.html2pdf/itext/html2pdf/attach/impl/HtmlMetaInfoContainer.cs @@ -33,10 +33,12 @@ public HtmlMetaInfoContainer(IMetaInfo metaInfo) { this.metaInfo = metaInfo; } +//\cond DO_NOT_DOCUMENT /// Return the IMetaInfo object. /// returns IMetaInfo internal virtual IMetaInfo GetMetaInfo() { return metaInfo; } +//\endcond } } diff --git a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/DimensionContainer.cs b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/DimensionContainer.cs index f4d89f96f..92264bd00 100644 --- a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/DimensionContainer.cs +++ b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/DimensionContainer.cs @@ -27,18 +27,30 @@ You should have received a copy of the GNU Affero General Public License using iText.StyledXmlParser.Css.Util; namespace iText.Html2pdf.Attach.Impl.Layout { +//\cond DO_NOT_DOCUMENT /// Container class for grouping necessary values used in dimension calculation internal abstract class DimensionContainer { +//\cond DO_NOT_DOCUMENT internal float dimension; +//\endcond +//\cond DO_NOT_DOCUMENT internal float minDimension; +//\endcond +//\cond DO_NOT_DOCUMENT internal float maxDimension; +//\endcond +//\cond DO_NOT_DOCUMENT internal float minContentDimension; +//\endcond +//\cond DO_NOT_DOCUMENT internal float maxContentDimension; +//\endcond +//\cond DO_NOT_DOCUMENT internal DimensionContainer() { dimension = -1; minDimension = 0; @@ -46,13 +58,17 @@ internal DimensionContainer() { maxDimension = float.MaxValue; maxContentDimension = float.MaxValue; } +//\endcond +//\cond DO_NOT_DOCUMENT /// Check if this dimension is auto /// True if the dimension is to be automatically calculated, false if it was set via a property internal virtual bool IsAutoDimension() { return dimension == -1; } +//\endcond +//\cond DO_NOT_DOCUMENT internal virtual float ParseDimension(CssContextNode node, String content, float maxAvailableDimension, float additionalWidthFix) { float fontSize = CssDimensionParsingUtils.ParseAbsoluteFontSize(node.GetStyles().Get(CssConstants.FONT_SIZE @@ -66,5 +82,7 @@ internal virtual float ParseDimension(CssContextNode node, String content, float } return maxAvailableDimension * unitValue.GetValue() / 100f; } +//\endcond } +//\endcond } diff --git a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/HeightDimensionContainer.cs b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/HeightDimensionContainer.cs index 37f47f986..970ccb623 100644 --- a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/HeightDimensionContainer.cs +++ b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/HeightDimensionContainer.cs @@ -28,9 +28,11 @@ You should have received a copy of the GNU Affero General Public License using iText.StyledXmlParser.Css; namespace iText.Html2pdf.Attach.Impl.Layout { +//\cond DO_NOT_DOCUMENT internal class HeightDimensionContainer : DimensionContainer { private const float infHeight = 1e6f; +//\cond DO_NOT_DOCUMENT internal HeightDimensionContainer(CssContextNode pmbcNode, float width, float maxHeight, IRenderer renderer , float additionalWidthFix) { String height = pmbcNode.GetStyles().Get(CssConstants.HEIGHT); @@ -53,6 +55,7 @@ internal HeightDimensionContainer(CssContextNode pmbcNode, float width, float ma } } } +//\endcond private float GetMinHeight(CssContextNode node, float maxAvailableHeight, float additionalWidthFix) { String content = node.GetStyles().Get(CssConstants.MIN_HEIGHT); @@ -74,4 +77,5 @@ private float GetMaxHeight(CssContextNode node, float maxAvailableHeight, float return dim; } } +//\endcond } diff --git a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/HtmlBodyStylesApplierHandler.cs b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/HtmlBodyStylesApplierHandler.cs index 622058773..01571c8fc 100644 --- a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/HtmlBodyStylesApplierHandler.cs +++ b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/HtmlBodyStylesApplierHandler.cs @@ -32,6 +32,7 @@ You should have received a copy of the GNU Affero General Public License using iText.Layout.Properties; namespace iText.Html2pdf.Attach.Impl.Layout { +//\cond DO_NOT_DOCUMENT /// This handler draws backgrounds and borders for html, body and page-annotation styles. internal class HtmlBodyStylesApplierHandler : iText.Kernel.Events.IEventHandler { private readonly HtmlDocumentRenderer htmlDocumentRenderer; @@ -65,6 +66,7 @@ public virtual void HandleEvent(Event @event) { ProcessPage(page, pageNumber); } +//\cond DO_NOT_DOCUMENT internal virtual void ProcessPage(PdfPage page, int pageNumber) { HtmlBodyStylesApplierHandler.PageStylesProperties pageProperties = pageStylesPropertiesMap.Get(pageNumber); if (pageProperties == null) { @@ -75,6 +77,7 @@ internal virtual void ProcessPage(PdfPage page, int pageNumber) { ApplyHtmlBodyStyles(page, contextProcessor.ComputeLayoutMargins(), pageProperties.styles, pageNumber); pdfCanvas = null; } +//\endcond private void ApplyHtmlBodyStyles(PdfPage page, float[] margins, BodyHtmlStylesContainer[] styles, int pageNumber ) { @@ -179,25 +182,38 @@ private void RecalculateBackgroundAreaForBody(Rectangle backgroundArea, Div page } } +//\cond DO_NOT_DOCUMENT internal class LowestAndHighest { +//\cond DO_NOT_DOCUMENT internal float lowest; +//\endcond +//\cond DO_NOT_DOCUMENT internal float highest; +//\endcond public LowestAndHighest(float lowest, float highest) { this.lowest = lowest; this.highest = highest; } } +//\endcond +//\cond DO_NOT_DOCUMENT internal class PageStylesProperties { +//\cond DO_NOT_DOCUMENT internal BodyHtmlStylesContainer[] styles; +//\endcond +//\cond DO_NOT_DOCUMENT internal HtmlBodyStylesApplierHandler.LowestAndHighest lowestAndHighest; +//\endcond public PageStylesProperties(BodyHtmlStylesContainer[] styles) { this.styles = styles; } } +//\endcond } +//\endcond } diff --git a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/HtmlDocumentRenderer.cs b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/HtmlDocumentRenderer.cs index 4b8e580fe..147f5180a 100644 --- a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/HtmlDocumentRenderer.cs +++ b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/HtmlDocumentRenderer.cs @@ -173,6 +173,7 @@ public override void Close() { } } +//\cond DO_NOT_DOCUMENT /// /// Removes event handlers that were added to pdf document when this /// @@ -183,6 +184,7 @@ internal virtual void RemoveEventHandlers() { // This handler is added in processPageRules method. document.GetPdfDocument().RemoveEventHandler(PdfDocumentEvent.END_PAGE, marginBoxesHandler); } +//\endcond /* (non-Javadoc) * @see com.itextpdf.layout.renderer.DocumentRenderer#getNextRenderer() @@ -327,10 +329,13 @@ protected override PageSize AddNewPage(PageSize customPageSize) { return new PageSize(addedPage.GetTrimBox()); } +//\cond DO_NOT_DOCUMENT internal virtual bool ShouldAttemptTrimLastPage() { return TRIM_LAST_BLANK_PAGE && document.GetPdfDocument().GetNumberOfPages() > 1; } +//\endcond +//\cond DO_NOT_DOCUMENT internal virtual void TrimLastPageIfNecessary() { if (ShouldAttemptTrimLastPage()) { PdfDocument pdfDocument = document.GetPdfDocument(); @@ -342,7 +347,9 @@ internal virtual void TrimLastPageIfNecessary() { } } } +//\endcond +//\cond DO_NOT_DOCUMENT /// /// Returns the number of pages that will be trimmed on /// @@ -373,7 +380,9 @@ internal virtual int SimulateTrimLastPage() { return 0; } } +//\endcond +//\cond DO_NOT_DOCUMENT /// Gets a page processor for the page. /// /// the number of the page for which the @@ -395,12 +404,15 @@ internal virtual PageContextProcessor GetPageProcessor(int pageNum) { } } } +//\endcond +//\cond DO_NOT_DOCUMENT /// Gets the estimated number of pages. /// the estimated number of pages internal virtual int GetEstimatedNumberOfPages() { return estimatedNumberOfPages; } +//\endcond private void UpdateDefaultMargins(BodyHtmlStylesContainer[] styles, float[] defaultMargins) { for (int i = 0; i < 2; i++) { @@ -471,11 +483,13 @@ private bool IsPageRight(int pageNum) { private class PageMarginBoxesDrawingHandler : iText.Kernel.Events.IEventHandler { private HtmlDocumentRenderer htmlDocumentRenderer; +//\cond DO_NOT_DOCUMENT internal virtual HtmlDocumentRenderer.PageMarginBoxesDrawingHandler SetHtmlDocumentRenderer(HtmlDocumentRenderer htmlDocumentRenderer) { this.htmlDocumentRenderer = htmlDocumentRenderer; return this; } +//\endcond public virtual void HandleEvent(Event @event) { if (@event is PdfDocumentEvent) { @@ -486,10 +500,12 @@ public virtual void HandleEvent(Event @event) { } } +//\cond DO_NOT_DOCUMENT internal virtual void ProcessPage(PdfDocument pdfDoc, int pageNumber) { PageContextProcessor pageProcessor = htmlDocumentRenderer.GetPageProcessor(pageNumber); pageProcessor.ProcessPageEnd(pageNumber, pdfDoc, htmlDocumentRenderer); } +//\endcond } } } diff --git a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/HtmlPageBreak.cs b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/HtmlPageBreak.cs index 4192aa84c..ec4ba747e 100644 --- a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/HtmlPageBreak.cs +++ b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/HtmlPageBreak.cs @@ -28,11 +28,13 @@ namespace iText.Html2pdf.Attach.Impl.Layout { /// . /// public class HtmlPageBreak : AreaBreak { +//\cond DO_NOT_DOCUMENT /// /// The /// . /// internal HtmlPageBreakType breakType; +//\endcond /// Instantiates a new html page break. /// the page break type @@ -40,6 +42,7 @@ public HtmlPageBreak(HtmlPageBreakType type) { this.breakType = type; } +//\cond DO_NOT_DOCUMENT /// /// Gets the /// . @@ -48,5 +51,6 @@ public HtmlPageBreak(HtmlPageBreakType type) { internal virtual HtmlPageBreakType GetBreakType() { return breakType; } +//\endcond } } diff --git a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/PageContextProcessor.cs b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/PageContextProcessor.cs index 34d1c2400..0dd3f2b3d 100644 --- a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/PageContextProcessor.cs +++ b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/PageContextProcessor.cs @@ -44,6 +44,7 @@ You should have received a copy of the GNU Affero General Public License using iText.StyledXmlParser.Css.Util; namespace iText.Html2pdf.Attach.Impl.Layout { +//\cond DO_NOT_DOCUMENT /// Context processor for specific types of pages: first, left, or right page. internal class PageContextProcessor { /// The page size. @@ -80,6 +81,7 @@ internal class PageContextProcessor { private static readonly ILogger LOGGER = ITextLogManager.GetLogger(typeof(iText.Html2pdf.Attach.Impl.Layout.PageContextProcessor )); +//\cond DO_NOT_DOCUMENT /// Instantiates a new page context processor. /// the page context properties /// the processor context @@ -91,6 +93,7 @@ internal PageContextProcessor(PageContextProperties properties, ProcessorContext this.context = context; Reset(defaultPageSize, defaultPageMargins); } +//\endcond /// Parses the marks. /// @@ -121,6 +124,7 @@ private static ICollection ParseMarks(String marksStr) { return marks; } +//\cond DO_NOT_DOCUMENT /// /// Re-initializes page context processor based on default current page size and page margins /// and on properties from css page at-rules. @@ -155,13 +159,17 @@ internal virtual iText.Html2pdf.Attach.Impl.Layout.PageContextProcessor Reset(Pa pageMarginBoxHelper = new PageMarginBoxBuilder(properties.GetResolvedPageMarginBoxes(), margins, pageSize); return this; } +//\endcond +//\cond DO_NOT_DOCUMENT /// Gets the page size. /// the page size internal virtual PageSize GetPageSize() { return pageSize; } +//\endcond +//\cond DO_NOT_DOCUMENT /// Compute layout margins. /// the float values of the margins internal virtual float[] ComputeLayoutMargins() { @@ -175,7 +183,9 @@ internal virtual float[] ComputeLayoutMargins() { } return layoutMargins; } +//\endcond +//\cond DO_NOT_DOCUMENT /// Finalizes page processing by drawing margins if necessary. /// the page to process /// @@ -188,7 +198,9 @@ internal virtual void ProcessPageEnd(int pageNum, PdfDocument pdfDocument, Docum ) { DrawMarginBoxes(pageNum, pdfDocument, documentRenderer); } +//\endcond +//\cond DO_NOT_DOCUMENT /// /// Processes a new page by setting the bleed value, adding marks, drawing /// page backgrounds and borders. @@ -199,7 +211,9 @@ internal virtual void ProcessNewPage(PdfPage page) { DrawMarks(page); DrawPageBorders(page); } +//\endcond +//\cond DO_NOT_DOCUMENT /// Draws page background. /// the page /// pdfCanvas instance if there was a background to draw, otherwise returns null @@ -214,6 +228,7 @@ internal virtual PdfCanvas DrawPageBackground(PdfPage page) { } return pdfCanvas; } +//\endcond /// Sets the bleed value for a page. /// the new bleed @@ -460,4 +475,5 @@ private void CreatePageSimulationElements(IDictionary styles, Pr pageBordersSimulation.GetAccessibilityProperties().SetRole(StandardRoles.ARTIFACT); } } +//\endcond } diff --git a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/PageContextProperties.cs b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/PageContextProperties.cs index 1c56f8420..b21dab059 100644 --- a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/PageContextProperties.cs +++ b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/PageContextProperties.cs @@ -29,6 +29,7 @@ You should have received a copy of the GNU Affero General Public License using iText.StyledXmlParser.Node; namespace iText.Html2pdf.Attach.Impl.Layout { +//\cond DO_NOT_DOCUMENT /// /// Properties class for the /// . @@ -117,16 +118,21 @@ private static PageContextNode GetResolvedPageClassNode(INode rootNode, ICssReso return pagesClassNode; } +//\cond DO_NOT_DOCUMENT /// Gets the resolved page context node. /// the resolved page context node internal virtual PageContextNode GetResolvedPageContextNode() { return pageContextNode; } +//\endcond +//\cond DO_NOT_DOCUMENT /// Gets the resolved page margin boxes. /// the resolved page margin boxes internal virtual IList GetResolvedPageMarginBoxes() { return pageMarginBoxes; } +//\endcond } +//\endcond } diff --git a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/PageCountRenderer.cs b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/PageCountRenderer.cs index 01c11c7f2..4f60d897c 100644 --- a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/PageCountRenderer.cs +++ b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/PageCountRenderer.cs @@ -35,6 +35,7 @@ You should have received a copy of the GNU Affero General Public License using iText.Layout.Renderer; namespace iText.Html2pdf.Attach.Impl.Layout { +//\cond DO_NOT_DOCUMENT /// /// /// implementation for the page count. @@ -42,12 +43,14 @@ namespace iText.Html2pdf.Attach.Impl.Layout { internal class PageCountRenderer : TextRenderer { private readonly CounterDigitsGlyphStyle digitsGlyphStyle; +//\cond DO_NOT_DOCUMENT /// Instantiates a new page count renderer. /// the text element internal PageCountRenderer(PageCountElement textElement) : base(textElement) { this.digitsGlyphStyle = textElement.GetDigitsGlyphStyle(); } +//\endcond protected internal PageCountRenderer(TextRenderer other) : base(other) { @@ -133,4 +136,5 @@ protected override bool ResolveFonts(IList addTo) { return true; } } +//\endcond } diff --git a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/PageMarginBoxBuilder.cs b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/PageMarginBoxBuilder.cs index 3f97dbfeb..60b08e07b 100644 --- a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/PageMarginBoxBuilder.cs +++ b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/PageMarginBoxBuilder.cs @@ -43,17 +43,28 @@ You should have received a copy of the GNU Affero General Public License using iText.StyledXmlParser.Node; namespace iText.Html2pdf.Attach.Impl.Layout { +//\cond DO_NOT_DOCUMENT // implementation of algorithm specified in https://drafts.csswg.org/css-page-3/#margin-dimension internal class PageMarginBoxBuilder { +//\cond DO_NOT_DOCUMENT internal IRenderer[] renderers; +//\endcond +//\cond DO_NOT_DOCUMENT internal PageMarginBoxContextNode[] nodes; +//\endcond +//\cond DO_NOT_DOCUMENT internal float[] margins; +//\endcond +//\cond DO_NOT_DOCUMENT internal PageSize pageSize; +//\endcond +//\cond DO_NOT_DOCUMENT internal IList resolvedPageMarginBoxes; +//\endcond private const float EPSILON = 0.00001f; @@ -663,6 +674,7 @@ private Rectangle CalculateContainingBlockSizesForMarginBox(int marginBoxInd, Re } } +//\cond DO_NOT_DOCUMENT /// Maps a margin box name to an index. /// the margin box name /// the index corresponding with the margin box name @@ -734,5 +746,7 @@ internal virtual int MapMarginBoxNameToIndex(String marginBoxName) { } return -1; } +//\endcond } +//\endcond } diff --git a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/PageSizeParser.cs b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/PageSizeParser.cs index f15f485d4..0969b625c 100644 --- a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/PageSizeParser.cs +++ b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/PageSizeParser.cs @@ -32,6 +32,7 @@ You should have received a copy of the GNU Affero General Public License using iText.StyledXmlParser.Css.Util; namespace iText.Html2pdf.Attach.Impl.Layout { +//\cond DO_NOT_DOCUMENT /// The Class PageSizeParser. internal class PageSizeParser { /// A Map mapping page size names to page size values. @@ -56,6 +57,7 @@ static PageSizeParser() { pageSizeConstants.Put("ledger", PageSize.LEDGER.Rotate()); } +//\cond DO_NOT_DOCUMENT /// Fetch the page size. /// the name of the page size ("a4", "letter",...) /// the em value @@ -121,6 +123,7 @@ internal static PageSize FetchPageSize(String pageSizeStr, float em, float rem, } return pageSize; } +//\endcond /// Parses a page length value into a page size. /// array of string values that represent the page size @@ -174,4 +177,5 @@ private static bool IsLandscapePortraitValue(String pageSizeChunk) { return CssConstants.LANDSCAPE.Equals(pageSizeChunk) || CssConstants.PORTRAIT.Equals(pageSizeChunk); } } +//\endcond } diff --git a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/PageTargetCountRenderer.cs b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/PageTargetCountRenderer.cs index 4fbea3c2e..a36bf8bc0 100644 --- a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/PageTargetCountRenderer.cs +++ b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/PageTargetCountRenderer.cs @@ -35,6 +35,7 @@ You should have received a copy of the GNU Affero General Public License using iText.Layout.Renderer; namespace iText.Html2pdf.Attach.Impl.Layout { +//\cond DO_NOT_DOCUMENT /// /// /// implementation for the page target-counter. @@ -49,6 +50,7 @@ internal class PageTargetCountRenderer : TextRenderer { private readonly CounterDigitsGlyphStyle digitsGlyphStyle; +//\cond DO_NOT_DOCUMENT /// /// Instantiates a new /// . @@ -59,6 +61,7 @@ internal PageTargetCountRenderer(PageTargetCountElement textElement) digitsGlyphStyle = textElement.GetDigitsGlyphStyle(); target = textElement.GetTarget(); } +//\endcond protected internal PageTargetCountRenderer(TextRenderer other) : base(other) { @@ -124,4 +127,5 @@ protected override bool ResolveFonts(IList addTo) { return true; } } +//\endcond } diff --git a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/RunningElement.cs b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/RunningElement.cs index 82d1b62eb..05a410ed9 100644 --- a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/RunningElement.cs +++ b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/RunningElement.cs @@ -57,6 +57,7 @@ protected override IRenderer MakeNewRenderer() { return new RunningElement.RunningElementRenderer(this, runningElementContainer); } +//\cond DO_NOT_DOCUMENT /// It's an empty div so it's not expected to be ever split between areas. internal class RunningElementRenderer : DivRenderer { private RunningElementContainer runningElementContainer; @@ -82,5 +83,6 @@ public override void Draw(DrawContext drawContext) { base.Draw(drawContext); } } +//\endcond } } diff --git a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/RunningElementContainer.cs b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/RunningElementContainer.cs index 3dc0ab381..6cb9aac7a 100644 --- a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/RunningElementContainer.cs +++ b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/RunningElementContainer.cs @@ -88,12 +88,16 @@ public virtual bool IsFirstOnPage() { return this.firstOnPage; } +//\cond DO_NOT_DOCUMENT internal virtual IElementNode GetRunningElement() { return runningElement; } +//\endcond +//\cond DO_NOT_DOCUMENT internal virtual ITagWorker GetProcessedElementWorker() { return processedElementWorker; } +//\endcond } } diff --git a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/WidthDimensionContainer.cs b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/WidthDimensionContainer.cs index 3a9a4f32b..7167078d6 100644 --- a/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/WidthDimensionContainer.cs +++ b/itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/WidthDimensionContainer.cs @@ -27,6 +27,7 @@ You should have received a copy of the GNU Affero General Public License using iText.StyledXmlParser.Css; namespace iText.Html2pdf.Attach.Impl.Layout { +//\cond DO_NOT_DOCUMENT internal class WidthDimensionContainer : DimensionContainer { public WidthDimensionContainer(CssContextNode node, float maxWidth, IRenderer renderer, float additionalWidthFix ) { @@ -71,4 +72,5 @@ private float GetMaxWidth(CssContextNode node, float maxAvailableWidth, float ad return dim; } } +//\endcond } diff --git a/itext/itext.html2pdf/itext/html2pdf/attach/impl/tags/DisplayGridTagWorker.cs b/itext/itext.html2pdf/itext/html2pdf/attach/impl/tags/DisplayGridTagWorker.cs new file mode 100644 index 000000000..1f6509f85 --- /dev/null +++ b/itext/itext.html2pdf/itext/html2pdf/attach/impl/tags/DisplayGridTagWorker.cs @@ -0,0 +1,57 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using iText.Html2pdf.Attach; +using iText.Layout; +using iText.Layout.Element; +using iText.StyledXmlParser.Node; + +namespace iText.Html2pdf.Attach.Impl.Tags { + /// + /// + /// implementation for elements with + /// display: grid. + /// + public class DisplayGridTagWorker : DivTagWorker { + /// + /// Creates a new + /// + /// instance. + /// + /// the element + /// the context + public DisplayGridTagWorker(IElementNode element, ProcessorContext context) + : base(element, context, new GridContainer()) { + } + + /// + public override bool ProcessTagChild(ITagWorker childTagWorker, ProcessorContext context) { + IPropertyContainer element = childTagWorker.GetElementResult(); + if (childTagWorker is BrTagWorker) { + return base.ProcessTagChild(childTagWorker, context); + } + else { + return AddBlockChild((IElement)element); + } + } + } +} diff --git a/itext/itext.html2pdf/itext/html2pdf/attach/impl/tags/DivTagWorker.cs b/itext/itext.html2pdf/itext/html2pdf/attach/impl/tags/DivTagWorker.cs index 64c66ad98..a10d3851d 100644 --- a/itext/itext.html2pdf/itext/html2pdf/attach/impl/tags/DivTagWorker.cs +++ b/itext/itext.html2pdf/itext/html2pdf/attach/impl/tags/DivTagWorker.cs @@ -56,8 +56,20 @@ public class DivTagWorker : ITagWorker, IDisplayAware { /// /// the element /// the context - public DivTagWorker(IElementNode element, ProcessorContext context) { - div = new Div(); + public DivTagWorker(IElementNode element, ProcessorContext context) + : this(element, context, new Div()) { + } + + /// + /// Creates a new + /// + /// instance. + /// + /// the element + /// the context + /// div element container + protected internal DivTagWorker(IElementNode element, ProcessorContext context, Div container) { + div = container; IDictionary styles = element.GetStyles(); if (styles != null && (styles.ContainsKey(CssConstants.COLUMN_COUNT) || styles.ContainsKey(CssConstants.COLUMN_WIDTH ))) { diff --git a/itext/itext.html2pdf/itext/html2pdf/attach/impl/tags/ImgTagWorker.cs b/itext/itext.html2pdf/itext/html2pdf/attach/impl/tags/ImgTagWorker.cs index 530292cde..b55f68932 100644 --- a/itext/itext.html2pdf/itext/html2pdf/attach/impl/tags/ImgTagWorker.cs +++ b/itext/itext.html2pdf/itext/html2pdf/attach/impl/tags/ImgTagWorker.cs @@ -130,11 +130,13 @@ public virtual IPropertyContainer GetElementResult() { return image; } +//\cond DO_NOT_DOCUMENT /// Gets the display value. /// the display value internal virtual String GetDisplay() { return display; } +//\endcond private ObjectFit GetObjectFitValue(String objectFitValue) { if (objectFitValue == null) { diff --git a/itext/itext.html2pdf/itext/html2pdf/attach/impl/tags/InputTagWorker.cs b/itext/itext.html2pdf/itext/html2pdf/attach/impl/tags/InputTagWorker.cs index 958478c19..9e7646d43 100644 --- a/itext/itext.html2pdf/itext/html2pdf/attach/impl/tags/InputTagWorker.cs +++ b/itext/itext.html2pdf/itext/html2pdf/attach/impl/tags/InputTagWorker.cs @@ -201,6 +201,7 @@ public virtual IPropertyContainer GetElementResult() { return formElement; } +//\cond DO_NOT_DOCUMENT internal static String PreprocessInputValue(String value, String inputType) { if (AttributeConstants.NUMBER.Equals(inputType) && value != null && !iText.Commons.Utils.Matcher.Match(NUMBER_INPUT_ALLOWED_VALUES , value).Matches()) { @@ -208,5 +209,6 @@ internal static String PreprocessInputValue(String value, String inputType) { } return value; } +//\endcond } } diff --git a/itext/itext.html2pdf/itext/html2pdf/attach/impl/tags/SpanTagWorker.cs b/itext/itext.html2pdf/itext/html2pdf/attach/impl/tags/SpanTagWorker.cs index d2a67d4e1..f7eae923f 100644 --- a/itext/itext.html2pdf/itext/html2pdf/attach/impl/tags/SpanTagWorker.cs +++ b/itext/itext.html2pdf/itext/html2pdf/attach/impl/tags/SpanTagWorker.cs @@ -39,14 +39,18 @@ namespace iText.Html2pdf.Attach.Impl.Tags { /// tag. /// public class SpanTagWorker : ITagWorker, IDisplayAware { +//\cond DO_NOT_DOCUMENT /// The span wrapper. internal SpanWrapper spanWrapper; +//\endcond +//\cond DO_NOT_DOCUMENT // TODO DEVSIX-2445. Ideally, this should be refactored. For now, I don't see a beautiful way // of passing this information to other workers. // Also, we probably should wait a bit until the display support is more or less stable internal IDictionary childrenDisplayMap = new Dictionary(); +//\endcond /// A list of elements belonging to the span. private IList elements; @@ -163,6 +167,7 @@ public virtual String GetDisplay() { return display; } +//\cond DO_NOT_DOCUMENT /// /// The child shall be one from /// @@ -171,6 +176,7 @@ public virtual String GetDisplay() { internal virtual String GetElementDisplay(IPropertyContainer child) { return childrenDisplayMap.Get(child); } +//\endcond /// Flushes the waiting leaf elements. private void FlushInlineHelper() { diff --git a/itext/itext.html2pdf/itext/html2pdf/attach/impl/tags/TrTagWorker.cs b/itext/itext.html2pdf/itext/html2pdf/attach/impl/tags/TrTagWorker.cs index 53ebce64c..9b6841975 100644 --- a/itext/itext.html2pdf/itext/html2pdf/attach/impl/tags/TrTagWorker.cs +++ b/itext/itext.html2pdf/itext/html2pdf/attach/impl/tags/TrTagWorker.cs @@ -94,10 +94,12 @@ public virtual IPropertyContainer GetElementResult() { return null; } +//\cond DO_NOT_DOCUMENT /// Gets the table row wrapper. /// the table row wrapper internal virtual TableRowWrapper GetTableRowWrapper() { return rowWrapper; } +//\endcond } } diff --git a/itext/itext.html2pdf/itext/html2pdf/attach/util/TrimUtil.cs b/itext/itext.html2pdf/itext/html2pdf/attach/util/TrimUtil.cs index 99158a436..7796388b9 100644 --- a/itext/itext.html2pdf/itext/html2pdf/attach/util/TrimUtil.cs +++ b/itext/itext.html2pdf/itext/html2pdf/attach/util/TrimUtil.cs @@ -39,6 +39,7 @@ public sealed class TrimUtil { private TrimUtil() { } +//\cond DO_NOT_DOCUMENT /// Trim leaf elements, and sanitize. /// the leaf elements /// the trimmed and sanitized list @@ -66,13 +67,16 @@ internal static IList TrimLeafElementsAndSanitize(IList leaf } return waitingLeaves; } +//\endcond +//\cond DO_NOT_DOCUMENT /// Checks if a character is white space value that doesn't cause a newline. /// the character /// true, if the character is a white space character, but no newline internal static bool IsNonLineBreakSpace(char ch) { return WhiteSpaceUtil.IsNonEmSpace(ch) && ch != '\n'; } +//\endcond /// Trims a sub list of leaf elements. /// the list of leaf elements diff --git a/itext/itext.html2pdf/itext/html2pdf/attach/wrapelement/TableWrapper.cs b/itext/itext.html2pdf/itext/html2pdf/attach/wrapelement/TableWrapper.cs index 457f7df5c..e397e138e 100644 --- a/itext/itext.html2pdf/itext/html2pdf/attach/wrapelement/TableWrapper.cs +++ b/itext/itext.html2pdf/itext/html2pdf/attach/wrapelement/TableWrapper.cs @@ -283,12 +283,17 @@ private UnitValue[] GetColWidths(WaitingColgroupsHelper colgroups) { /// element. /// private class CellWrapper { +//\cond DO_NOT_DOCUMENT /// The column index. internal int col; +//\endcond +//\cond DO_NOT_DOCUMENT /// The cell. internal Cell cell; +//\endcond +//\cond DO_NOT_DOCUMENT /// /// Creates a new /// @@ -300,6 +305,7 @@ internal CellWrapper(int col, Cell cell) { this.col = col; this.cell = cell; } +//\endcond } } } diff --git a/itext/itext.html2pdf/itext/html2pdf/css/CssConstants.cs b/itext/itext.html2pdf/itext/html2pdf/css/CssConstants.cs index d3f8cdc39..b62a21240 100644 --- a/itext/itext.html2pdf/itext/html2pdf/css/CssConstants.cs +++ b/itext/itext.html2pdf/itext/html2pdf/css/CssConstants.cs @@ -27,6 +27,12 @@ You should have received a copy of the GNU Affero General Public License namespace iText.Html2pdf.Css { public class CssConstants : CommonCssConstants { + /// The Constant AUTO_FIT. + public const String AUTO_FIT = "auto-fit"; + + /// The Constant AUTO_FILL. + public const String AUTO_FILL = "auto-fill"; + /// The Constant BLEED. public const String BLEED = "bleed"; @@ -66,6 +72,9 @@ public class CssConstants : CommonCssConstants { /// The Constant MIN_WIDTH. public const String MIN_WIDTH = "min-width"; + /// The Constant MIN_MAX. + public const String MINMAX = "minmax"; + /// The Constant OBJECT_FIT. public const String OBJECT_FIT = "object-fit"; @@ -130,8 +139,8 @@ public class CssConstants : CommonCssConstants { /// The Constant FIRST_EXCEPT. public const String FIRST_EXCEPT = "first-except"; - /// The Constant GRID. - public const String GRID = "grid"; + /// The Constant GRID_AREA. + public const String GRID_AREA = "grid-area"; /// The Constant INLINE. public const String INLINE = "inline"; @@ -214,6 +223,9 @@ public class CssConstants : CommonCssConstants { /// The Constant SUB. public const String SUB = "sub"; + /// The Constant SUBGRID. + public const String SUBGRID = "subgrid"; + /// The Constant SUPER. public const String SUPER = "super"; diff --git a/itext/itext.html2pdf/itext/html2pdf/css/apply/impl/BlockCssApplier.cs b/itext/itext.html2pdf/itext/html2pdf/css/apply/impl/BlockCssApplier.cs index dc770912d..3d6928e39 100644 --- a/itext/itext.html2pdf/itext/html2pdf/css/apply/impl/BlockCssApplier.cs +++ b/itext/itext.html2pdf/itext/html2pdf/css/apply/impl/BlockCssApplier.cs @@ -61,6 +61,7 @@ public virtual void Apply(ProcessorContext context, IStylesContainer stylesConta OrphansWidowsApplierUtil.ApplyOrphansAndWidows(cssProps, container); VerticalAlignmentApplierUtil.ApplyVerticalAlignmentForBlocks(cssProps, container, IsInlineItem(tagWorker)); MultiColumnCssApplierUtil.ApplyMultiCol(cssProps, context, container); + GridApplierUtil.ApplyGridItemProperties(cssProps, stylesContainer, container); if (IsFlexItem(stylesContainer)) { FlexApplierUtil.ApplyFlexItemProperties(cssProps, context, container); } diff --git a/itext/itext.html2pdf/itext/html2pdf/css/apply/impl/DefaultCssApplierFactory.cs b/itext/itext.html2pdf/itext/html2pdf/css/apply/impl/DefaultCssApplierFactory.cs index 485469ce6..c714dc661 100644 --- a/itext/itext.html2pdf/itext/html2pdf/css/apply/impl/DefaultCssApplierFactory.cs +++ b/itext/itext.html2pdf/itext/html2pdf/css/apply/impl/DefaultCssApplierFactory.cs @@ -87,9 +87,11 @@ public virtual ICssApplier GetCustomCssApplier(IElementNode tag) { return null; } +//\cond DO_NOT_DOCUMENT internal virtual TagProcessorMapping GetDefaultMapping() { return defaultMapping; } +//\endcond /// Gets the css applier class. /// the mapping diff --git a/itext/itext.html2pdf/itext/html2pdf/css/apply/impl/DefaultTagCssApplierMapping.cs b/itext/itext.html2pdf/itext/html2pdf/css/apply/impl/DefaultTagCssApplierMapping.cs index cbe2939f6..78824e41e 100644 --- a/itext/itext.html2pdf/itext/html2pdf/css/apply/impl/DefaultTagCssApplierMapping.cs +++ b/itext/itext.html2pdf/itext/html2pdf/css/apply/impl/DefaultTagCssApplierMapping.cs @@ -30,8 +30,10 @@ You should have received a copy of the GNU Affero General Public License using iText.StyledXmlParser.Css.Pseudo; namespace iText.Html2pdf.Css.Apply.Impl { +//\cond DO_NOT_DOCUMENT /// Class that contains the default mapping between CSS keys and CSS appliers. internal class DefaultTagCssApplierMapping { +//\cond DO_NOT_DOCUMENT /// /// Creates a new /// @@ -39,6 +41,7 @@ internal class DefaultTagCssApplierMapping { /// internal DefaultTagCssApplierMapping() { } +//\endcond /// The default mapping. private static TagProcessorMapping mapping; @@ -147,6 +150,7 @@ static DefaultTagCssApplierMapping() { mapping.PutMapping(TagConstants.DIV, CssConstants.TABLE_ROW, () => new DisplayTableRowTagCssApplier()); mapping.PutMapping(TagConstants.DIV, CssConstants.FLEX, () => new DisplayFlexTagCssApplier()); mapping.PutMapping(TagConstants.SPAN, CssConstants.FLEX, () => new DisplayFlexTagCssApplier()); + mapping.PutMapping(TagConstants.DIV, CssConstants.GRID, () => new DisplayGridTagCssApplier()); // pseudo elements mapping String beforePseudoElemName = CssPseudoElementUtil.CreatePseudoElementTagName(CssConstants.BEFORE); String afterPseudoElemName = CssPseudoElementUtil.CreatePseudoElementTagName(CssConstants.AFTER); @@ -168,13 +172,16 @@ static DefaultTagCssApplierMapping() { mapping.PutMapping(PageMarginBoxContextNode.PAGE_MARGIN_BOX_TAG, () => new PageMarginBoxCssApplier()); } +//\cond DO_NOT_DOCUMENT /// Gets the default CSS applier mapping. /// the default CSS applier mapping internal virtual TagProcessorMapping GetDefaultCssApplierMapping () { return mapping; } +//\endcond public delegate ICssApplier ICssApplierCreator(); } +//\endcond } diff --git a/itext/itext.html2pdf/itext/html2pdf/css/apply/impl/DisplayFlexTagCssApplier.cs b/itext/itext.html2pdf/itext/html2pdf/css/apply/impl/DisplayFlexTagCssApplier.cs index 6cc441a04..0bf7e0d8b 100644 --- a/itext/itext.html2pdf/itext/html2pdf/css/apply/impl/DisplayFlexTagCssApplier.cs +++ b/itext/itext.html2pdf/itext/html2pdf/css/apply/impl/DisplayFlexTagCssApplier.cs @@ -44,7 +44,6 @@ public override void Apply(ProcessorContext context, IStylesContainer stylesCont container.DeleteOwnProperty(Property.OVERFLOW_X); container.DeleteOwnProperty(Property.OVERFLOW_Y); } - MultiColumnCssApplierUtil.ApplyMultiCol(stylesContainer.GetStyles(), context, container); } } } diff --git a/itext/itext.html2pdf/itext/html2pdf/css/apply/impl/DisplayGridTagCssApplier.cs b/itext/itext.html2pdf/itext/html2pdf/css/apply/impl/DisplayGridTagCssApplier.cs new file mode 100644 index 000000000..748c4c54f --- /dev/null +++ b/itext/itext.html2pdf/itext/html2pdf/css/apply/impl/DisplayGridTagCssApplier.cs @@ -0,0 +1,47 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using System.Collections.Generic; +using iText.Html2pdf.Attach; +using iText.Html2pdf.Css.Apply.Util; +using iText.Layout; +using iText.StyledXmlParser.Node; + +namespace iText.Html2pdf.Css.Apply.Impl { + /// + /// + /// implementation for elements with display grid. + /// + public class DisplayGridTagCssApplier : BlockCssApplier { + /// + public override void Apply(ProcessorContext context, IStylesContainer stylesContainer, ITagWorker tagWorker + ) { + base.Apply(context, stylesContainer, tagWorker); + IPropertyContainer container = tagWorker.GetElementResult(); + if (container != null) { + IDictionary cssProps = stylesContainer.GetStyles(); + GridApplierUtil.ApplyGridContainerProperties(cssProps, container, context); + } + } + } +} diff --git a/itext/itext.html2pdf/itext/html2pdf/css/apply/impl/MultiColumnCssApplierUtil.cs b/itext/itext.html2pdf/itext/html2pdf/css/apply/impl/MultiColumnCssApplierUtil.cs index 89a6bc51a..5c5b44353 100644 --- a/itext/itext.html2pdf/itext/html2pdf/css/apply/impl/MultiColumnCssApplierUtil.cs +++ b/itext/itext.html2pdf/itext/html2pdf/css/apply/impl/MultiColumnCssApplierUtil.cs @@ -54,6 +54,15 @@ public static void ApplyMultiCol(IDictionary cssProps, Processor if (width != null) { element.SetProperty(Property.COLUMN_WIDTH, width.GetValue()); } + if (!element.HasProperty(Property.COLUMN_WIDTH) && !element.HasProperty(Property.COLUMN_COUNT)) { + if (CommonCssConstants.AUTO.Equals(cssProps.Get(CssConstants.COLUMN_COUNT)) || CommonCssConstants.AUTO.Equals + (cssProps.Get(CssConstants.COLUMN_WIDTH))) { + element.SetProperty(Property.COLUMN_COUNT, 1); + } + else { + return; + } + } UnitValue gap = CssDimensionParsingUtils.ParseLengthValueToPt(cssProps.Get(CssConstants.COLUMN_GAP), emValue , remValue); if (gap != null) { @@ -63,11 +72,6 @@ public static void ApplyMultiCol(IDictionary cssProps, Processor if (!element.HasProperty(Property.COLUMN_GAP)) { element.SetProperty(Property.COLUMN_GAP, CssDimensionParsingUtils.ParseRelativeValue("1em", emValue)); } - if (!element.HasProperty(Property.COLUMN_COUNT) && !element.HasProperty(Property.COLUMN_WIDTH) && (CommonCssConstants - .AUTO.Equals(cssProps.Get(CssConstants.COLUMN_COUNT)) || CommonCssConstants.AUTO.Equals(cssProps.Get(CssConstants - .COLUMN_WIDTH)))) { - element.SetProperty(Property.COLUMN_COUNT, 1); - } Border borderFromCssProperties = BorderStyleApplierUtil.GetCertainBorder(cssProps.Get(CssConstants.COLUMN_RULE_WIDTH ), cssProps.Get(CssConstants.COLUMN_RULE_STYLE), GetColumnGapColorOrDefault(cssProps), emValue, remValue ); diff --git a/itext/itext.html2pdf/itext/html2pdf/css/apply/util/GridApplierUtil.cs b/itext/itext.html2pdf/itext/html2pdf/css/apply/util/GridApplierUtil.cs new file mode 100644 index 000000000..d57a55d18 --- /dev/null +++ b/itext/itext.html2pdf/itext/html2pdf/css/apply/util/GridApplierUtil.cs @@ -0,0 +1,719 @@ +/* +This file is part of the iText (R) project. +Copyright (c) 1998-2024 Apryse Group NV +Authors: Apryse Software. + +This program is offered under a commercial and under the AGPL license. +For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. + +AGPL licensing: +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ +using System; +using System.Collections.Generic; +using System.Text.RegularExpressions; +using Microsoft.Extensions.Logging; +using iText.Commons; +using iText.Commons.Datastructures; +using iText.Commons.Utils; +using iText.Html2pdf.Attach; +using iText.Html2pdf.Css; +using iText.Html2pdf.Logs; +using iText.Layout; +using iText.Layout.Element; +using iText.Layout.Properties; +using iText.Layout.Properties.Grid; +using iText.StyledXmlParser.Css; +using iText.StyledXmlParser.Css.Util; +using iText.StyledXmlParser.Node; +using iText.StyledXmlParser.Node.Impl.Jsoup.Node; + +namespace iText.Html2pdf.Css.Apply.Util { + /// Utilities class to apply css grid properties and styles. + public sealed class GridApplierUtil { + private static readonly ILogger LOGGER = ITextLogManager.GetLogger(typeof(iText.Html2pdf.Css.Apply.Util.GridApplierUtil + )); + + private static readonly Regex SPAN_PLACEMENT = iText.Commons.Utils.StringUtil.RegexCompile("^span\\s+(.+)$" + ); + + /// Property map which maps property order in grid-area css prop to layout property + private static readonly IDictionary propsMap = new Dictionary(); + + /// Property map which maps property order in grid-area css prop to grid span property + private static readonly IDictionary spansMap = new Dictionary(); + + static GridApplierUtil() { + propsMap.Put(0, Property.GRID_ROW_START); + propsMap.Put(1, Property.GRID_COLUMN_START); + propsMap.Put(2, Property.GRID_ROW_END); + propsMap.Put(3, Property.GRID_COLUMN_END); + spansMap.Put(0, Property.GRID_ROW_SPAN); + spansMap.Put(1, Property.GRID_COLUMN_SPAN); + spansMap.Put(2, Property.GRID_ROW_SPAN); + spansMap.Put(3, Property.GRID_COLUMN_SPAN); + } + + private GridApplierUtil() { + } + + // empty constructor + /// Applies grid properties to a grid item. + /// the CSS properties + /// the styles container + /// the element + public static void ApplyGridItemProperties(IDictionary cssProps, IStylesContainer stylesContainer + , IPropertyContainer element) { + if (!(stylesContainer is JsoupElementNode) || !(((JsoupElementNode)stylesContainer).ParentNode() is JsoupElementNode + )) { + return; + } + IDictionary parentStyles = ((JsoupElementNode)((JsoupElementNode)stylesContainer).ParentNode + ()).GetStyles(); + if (!CssConstants.GRID.Equals(parentStyles.Get(CssConstants.DISPLAY))) { + // Not a grid - return + return; + } + ApplyGridArea(cssProps, element); + ApplyGridItemPlacement(cssProps.Get(CssConstants.GRID_COLUMN_END), element, Property.GRID_COLUMN_END, Property + .GRID_COLUMN_SPAN); + ApplyGridItemPlacement(cssProps.Get(CssConstants.GRID_COLUMN_START), element, Property.GRID_COLUMN_START, + Property.GRID_COLUMN_SPAN); + ApplyGridItemPlacement(cssProps.Get(CssConstants.GRID_ROW_END), element, Property.GRID_ROW_END, Property.GRID_ROW_SPAN + ); + ApplyGridItemPlacement(cssProps.Get(CssConstants.GRID_ROW_START), element, Property.GRID_ROW_START, Property + .GRID_ROW_SPAN); + } + + /// Applies grid properties to a grid container. + /// the CSS properties + /// the grid container + /// the context + public static void ApplyGridContainerProperties(IDictionary cssProps, IPropertyContainer container + , ProcessorContext context) { + float emValue = CssDimensionParsingUtils.ParseAbsoluteFontSize(cssProps.Get(CssConstants.FONT_SIZE)); + float remValue = context.GetCssContext().GetRootFontSize(); + GridApplierUtil.NamedAreas namedAreas = ApplyNamedAreas(cssProps.Get(CssConstants.GRID_TEMPLATE_AREAS), container + ); + ApplyTemplate(cssProps.Get(CssConstants.GRID_TEMPLATE_COLUMNS), container, Property.GRID_TEMPLATE_COLUMNS, + emValue, remValue, namedAreas); + ApplyTemplate(cssProps.Get(CssConstants.GRID_TEMPLATE_ROWS), container, Property.GRID_TEMPLATE_ROWS, emValue + , remValue, namedAreas); + ApplyAuto(cssProps.Get(CssConstants.GRID_AUTO_ROWS), container, Property.GRID_AUTO_ROWS, emValue, remValue + ); + ApplyAuto(cssProps.Get(CssConstants.GRID_AUTO_COLUMNS), container, Property.GRID_AUTO_COLUMNS, emValue, remValue + ); + ApplyFlow(cssProps.Get(CssConstants.GRID_AUTO_FLOW), container); + ApplyGap(container, emValue, remValue, cssProps.Get(CssConstants.COLUMN_GAP), Property.COLUMN_GAP); + ApplyGap(container, emValue, remValue, cssProps.Get(CssConstants.GRID_COLUMN_GAP), Property.COLUMN_GAP); + ApplyGap(container, emValue, remValue, cssProps.Get(CssConstants.ROW_GAP), Property.ROW_GAP); + ApplyGap(container, emValue, remValue, cssProps.Get(CssConstants.GRID_ROW_GAP), Property.ROW_GAP); + } + + private static void ApplyGap(IPropertyContainer container, float emValue, float remValue, String gap, int + property) { + UnitValue gapValue = CssDimensionParsingUtils.ParseLengthValueToPt(gap, emValue, remValue); + if (gapValue != null) { + container.SetProperty(property, gapValue.GetValue()); + } + } + + private static void ApplyAuto(String autoStr, IPropertyContainer container, int property, float emValue, float + remValue) { + if (autoStr != null) { + TemplateValue value = ParseTemplateValue(autoStr, emValue, remValue); + if (value != null) { + container.SetProperty(property, value); + } + } + } + + private static void ApplyFlow(String flow, IPropertyContainer container) { + GridFlow value = GridFlow.ROW; + if (flow != null) { + if (flow.Contains(CommonCssConstants.COLUMN)) { + if (flow.Contains(CssConstants.DENSE)) { + value = GridFlow.COLUMN_DENSE; + } + else { + value = GridFlow.COLUMN; + } + } + else { + if (flow.Contains(CssConstants.DENSE)) { + value = GridFlow.ROW_DENSE; + } + } + } + container.SetProperty(Property.GRID_FLOW, value); + } + + private static GridApplierUtil.NamedAreas ApplyNamedAreas(String gridTemplateAreas, IPropertyContainer container + ) { + if (gridTemplateAreas == null || CommonCssConstants.NONE.Equals(gridTemplateAreas)) { + return null; + } + GridApplierUtil.NamedAreas namedAreas = ParseGridTemplateAreas(gridTemplateAreas); + IList children = ((IAbstractElement)container).GetChildren(); + foreach (IElement child in children) { + // Area name can be only in GRID_ROW_START + Object propValue = child.GetProperty(Property.GRID_ROW_START); + if (propValue is String) { + // It will override all props by integers if area name is found + namedAreas.SetPlaceToElement((String)propValue, child); + } + } + return namedAreas; + } + + private static void ApplyTemplate(String templateStr, IPropertyContainer container, int property, float emValue + , float remValue, GridApplierUtil.NamedAreas namedAreas) { + if (templateStr != null && templateStr.Contains(CssConstants.SUBGRID)) { + LOGGER.LogWarning(Html2PdfLogMessageConstant.SUBGRID_VALUE_IS_NOT_SUPPORTED); + } + IDictionary> lineNumbersPerName = new Dictionary>(); + int namedAreaLength = 0; + bool applyColumns = property == Property.GRID_TEMPLATE_COLUMNS; + if (namedAreas != null) { + if (applyColumns) { + lineNumbersPerName = namedAreas.GetNamedColumnNumbers(); + namedAreaLength = namedAreas.GetColumnsCount(); + } + else { + lineNumbersPerName = namedAreas.GetNamedRowNumbers(); + namedAreaLength = namedAreas.GetRowsCount(); + } + } + IList templateResult = new List(); + int currentLine = 1; + if (templateStr != null) { + IList templateStrArray = CssUtils.ExtractShorthandProperties(templateStr)[0]; + foreach (String str in templateStrArray) { + TemplateValue value = ParseTemplateValue(str, emValue, remValue, lineNumbersPerName, currentLine); + if (value != null) { + templateResult.Add(value); + if (value is FixedRepeatValue) { + currentLine += ((FixedRepeatValue)value).GetRepeatCount() * ((FixedRepeatValue)value).GetValues().Count; + } + else { + ++currentLine; + } + } + } + if (templateResult.IsEmpty()) { + LOGGER.LogWarning(MessageFormatUtil.Format(Html2PdfLogMessageConstant.GRID_TEMPLATE_WAS_NOT_RECOGNISED, applyColumns + ? "columns" : "rows")); + } + else { + container.SetProperty(property, templateResult); + } + } + // Now process all children to apply line names + int startProperty; + int endProperty; + int spanProperty; + if (applyColumns) { + startProperty = Property.GRID_COLUMN_START; + endProperty = Property.GRID_COLUMN_END; + spanProperty = Property.GRID_COLUMN_SPAN; + } + else { + startProperty = Property.GRID_ROW_START; + endProperty = Property.GRID_ROW_END; + spanProperty = Property.GRID_ROW_SPAN; + } + IList children = ((IAbstractElement)container).GetChildren(); + foreach (IElement child in children) { + SubstituteLinename(lineNumbersPerName, startProperty, child, Math.Max(namedAreaLength + 1, currentLine), "-start" + ); + SubstituteLinename(lineNumbersPerName, endProperty, child, Math.Max(namedAreaLength + 1, currentLine), "-end" + ); + SubstituteLinenameInSpan(lineNumbersPerName, startProperty, endProperty, spanProperty, child, Math.Max(namedAreaLength + + 1, currentLine)); + } + } + + private static void SubstituteLinenameInSpan(IDictionary> lineNumbersPerName, int startProperty + , int endProperty, int spanProperty, IElement child, int lastLineNumber) { + Object propValue = child.GetProperty(spanProperty); + if (!(propValue is String)) { + // It means it's null or we processed it earlier + return; + } + child.DeleteOwnProperty(spanProperty); + // Here we need one of grid-row/column-start or grid-row/column-end + // as otherwise the property doesn't have sense + // And we know that there can't be both start and end at this point + int? startPoint = child.GetProperty(startProperty); + int? endPoint = child.GetProperty(endProperty); + if (startPoint == null && endPoint == null) { + return; + } + Tuple2 parsedValue = ParseStringValue((String)propValue); + int distance = parsedValue.GetFirst(); + String strValue = parsedValue.GetSecond(); + IList lineNumbers = lineNumbersPerName.Get(strValue); + if (lineNumbers == null || distance <= 0 || strValue == null) { + return; + } + // We should span by X linenames back or forth starting from current position + int direction = startPoint != null ? 1 : -1; + int startPosition = startPoint != null ? startPoint.Value : endPoint.Value; + // linenumbers are sorted, let's find current position in the array + int start = -1; + int correction = -direction; + foreach (int? lineNumber in lineNumbers) { + ++start; + if (startPosition <= lineNumber) { + if (startPosition == lineNumber) { + correction = 0; + } + break; + } + } + int spanIdx = start + distance * direction + correction; + if (spanIdx < 0) { + // Going negative is not supported + return; + } + int endPosition; + if (spanIdx > lineNumbers.Count - 1) { + // Increase grid + endPosition = lastLineNumber + spanIdx - (lineNumbers.Count - 1); + } + else { + endPosition = lineNumbers[spanIdx]; + } + if (direction == 1) { + child.SetProperty(endProperty, endPosition); + } + else { + child.SetProperty(startProperty, endPosition); + } + } + + private static void SubstituteLinename(IDictionary> lineNumbersPerName, int property, IElement + child, int lastLineNumber, String alternateLineNameSuffix) { + Object propValue = child.GetProperty(property); + if (!(propValue is String)) { + // It means it's null or we processed it earlier + return; + } + child.DeleteOwnProperty(property); + Tuple2 parsedValue = ParseStringValue((String)propValue); + int idx = parsedValue.GetFirst(); + String strValue = parsedValue.GetSecond(); + if (idx == 0 || strValue == null) { + return; + } + IList lineNumbers = lineNumbersPerName.Get(strValue); + if (lineNumbers == null) { + lineNumbers = lineNumbersPerName.Get(strValue + alternateLineNameSuffix); + } + if (lineNumbers == null) { + return; + } + if (idx > lineNumbers.Count) { + // Increase grid + // We should also go to negative in a similar manner + // but currently we don't support negative columns/rows + child.SetProperty(property, lastLineNumber + idx - lineNumbers.Count); + return; + } + if (Math.Abs(idx) > lineNumbers.Count) { + // The case when it's too negative + LOGGER.LogError(Html2PdfLogMessageConstant.ADDING_GRID_LINES_TO_THE_LEFT_OR_TOP_IS_NOT_SUPPORTED); + return; + } + if (idx < 0) { + idx = lineNumbers.Count + idx + 1; + } + child.SetProperty(property, lineNumbers[idx - 1]); + } + + private static Tuple2 ParseStringValue(String strPropValue) { + String[] propValues = iText.Commons.Utils.StringUtil.Split(strPropValue, "\\s+"); + int idx = 1; + String strValue = null; + if (propValues.Length == 1) { + strValue = propValues[0]; + } + else { + if (propValues.Length == 2) { + // Here we have two options + // grid-row-start: 1 a and grid-row-start a 1 + int? i0 = CssDimensionParsingUtils.ParseInteger(propValues[0]); + int? i1 = CssDimensionParsingUtils.ParseInteger(propValues[1]); + int? i = i0 != null ? i0 : i1; + if (i != null) { + idx = i.Value; + } + strValue = i0 != null ? propValues[1] : propValues[0]; + } + } + return new Tuple2(idx, strValue); + } + + private static TemplateValue ParseTemplateValue(String str, float emValue, float remValue) { + UnitValue unit = CssDimensionParsingUtils.ParseLengthValueToPt(str, emValue, remValue); + if (unit != null) { + if (unit.IsPointValue()) { + return new PointValue(unit.GetValue()); + } + else { + return new PercentValue(unit.GetValue()); + } + } + if (CommonCssConstants.MIN_CONTENT.Equals(str)) { + return MinContentValue.VALUE; + } + if (CommonCssConstants.MAX_CONTENT.Equals(str)) { + return MaxContentValue.VALUE; + } + if (CommonCssConstants.AUTO.Equals(str)) { + return AutoValue.VALUE; + } + float? fr = CssDimensionParsingUtils.ParseFlex(str); + if (fr != null) { + return new FlexValue((float)fr); + } + if (DetermineFunction(str, CommonCssConstants.FIT_CONTENT)) { + return ParseFitContent(str, emValue, remValue); + } + if (DetermineFunction(str, CssConstants.MINMAX)) { + return ParseMinMax(str, emValue, remValue); + } + return null; + } + + private static TemplateValue ParseTemplateValue(String str, float emValue, float remValue, IDictionary> lineNumbersPerName, int currentLine) { + if (str == null) { + return null; + } + if (str.StartsWith("[") && str.EndsWith("]")) { + // It's a linename + String strStripped = str.JSubstring(1, str.Length - 1); + String[] linenames = iText.Commons.Utils.StringUtil.Split(strStripped.Trim(), "\\s+"); + foreach (String linename in linenames) { + if (!lineNumbersPerName.ContainsKey(linename)) { + lineNumbersPerName.Put(linename, new List(1)); + } + lineNumbersPerName.Get(linename).Add(currentLine); + } + return null; + } + if (DetermineFunction(str, CommonCssConstants.REPEAT)) { + return ParseRepeat(str, emValue, remValue, lineNumbersPerName, currentLine); + } + return ParseTemplateValue(str, emValue, remValue); + } + + private static FitContentValue ParseFitContent(String str, float emValue, float remValue) { + UnitValue length = CssDimensionParsingUtils.ParseLengthValueToPt(str.JSubstring(CommonCssConstants.FIT_CONTENT + .Length + 1, str.Length - 1), emValue, remValue); + if (length == null) { + return null; + } + return new FitContentValue(length); + } + + private static bool DetermineFunction(String str, String function) { + return str.StartsWith(function) && str.Length > function.Length + 2; + } + + private static TemplateValue ParseMinMax(String str, float emValue, float remValue) { + int parameterSeparator = str.IndexOf(','); + if (parameterSeparator < 0) { + return null; + } + TemplateValue min = ParseTemplateValue(str.JSubstring(CssConstants.MINMAX.Length + 1, parameterSeparator). + Trim(), emValue, remValue); + TemplateValue max = ParseTemplateValue(str.JSubstring(parameterSeparator + 1, str.Length - 1).Trim(), emValue + , remValue); + if (!(min is BreadthValue) || !(max is BreadthValue)) { + return null; + } + return new MinMaxValue((BreadthValue)min, (BreadthValue)max); + } + + private static TemplateValue ParseRepeat(String str, float emValue, float remValue, IDictionary> lineNumbersPerName, int currentLine) { + IList repeatList = new List(); + int repeatTypeEndIndex = str.IndexOf(','); + if (repeatTypeEndIndex < 0) { + return null; + } + String repeatType = str.JSubstring(CommonCssConstants.REPEAT.Length + 1, repeatTypeEndIndex).Trim(); + int? repeatCount = CssDimensionParsingUtils.ParseInteger(repeatType); + IList repeatStr = CssUtils.ExtractShorthandProperties(str.JSubstring(repeatTypeEndIndex + 1, str.Length + - 1))[0]; + IDictionary> repeatLineNumbersPerName = new Dictionary>(); + foreach (String strValue in repeatStr) { + TemplateValue value = ParseTemplateValue(strValue, emValue, remValue, repeatLineNumbersPerName, currentLine + ); + if (value is GridValue) { + repeatList.Add((GridValue)value); + ++currentLine; + } + } + // Now multiply line numbers for repeats + if (repeatCount != null && repeatCount.Value > 1) { + foreach (IList repeatLineNumbers in repeatLineNumbersPerName.Values) { + IList extraLineNumbers = new List(); + for (int i = 1; i < repeatCount.Value; ++i) { + foreach (int? lineNumber in repeatLineNumbers) { + int extraLineNumber = lineNumber.Value + repeatList.Count * i; + if (!extraLineNumbers.Contains(extraLineNumber)) { + extraLineNumbers.Add(extraLineNumber); + } + } + } + repeatLineNumbers.RemoveAll(extraLineNumbers); + repeatLineNumbers.AddAll(extraLineNumbers); + } + } + // Now merge with common lineNumbersPerName + MapUtil.Merge(lineNumbersPerName, repeatLineNumbersPerName, (dest, source) => { + dest.RemoveAll(source); + dest.AddAll(source); + return dest; + } + ); + if (repeatCount != null) { + return new FixedRepeatValue(repeatCount.Value, repeatList); + } + else { + if (CssConstants.AUTO_FILL.Equals(repeatType)) { + if (!lineNumbersPerName.IsEmpty()) { + LOGGER.LogWarning(Html2PdfLogMessageConstant.LINENAMES_ARE_NOT_SUPPORTED_WITHIN_AUTO_REPEAT); + } + return new AutoRepeatValue(false, repeatList); + } + else { + if (CssConstants.AUTO_FIT.Equals(repeatType)) { + if (!lineNumbersPerName.IsEmpty()) { + LOGGER.LogWarning(Html2PdfLogMessageConstant.LINENAMES_ARE_NOT_SUPPORTED_WITHIN_AUTO_REPEAT); + } + return new AutoRepeatValue(true, repeatList); + } + } + } + return null; + } + + private static void ApplyGridArea(IDictionary cssProps, IPropertyContainer element) { + if (cssProps.Get(CssConstants.GRID_AREA) == null) { + return; + } + String gridArea = cssProps.Get(CssConstants.GRID_AREA); + String[] gridAreaParts = iText.Commons.Utils.StringUtil.Split(gridArea, "/"); + for (int i = 0; i < gridAreaParts.Length; ++i) { + String part = gridAreaParts[i].Trim(); + if (CommonCssConstants.AUTO.Equals(part)) { + // We override already set value if any + element.DeleteOwnProperty(propsMap.Get(i).Value); + continue; + } + // If it's an area name from grid-template-areas, it will go into GRID_ROW_START + ApplyGridItemPlacement(part, element, propsMap.Get(i).Value, spansMap.Get(i).Value); + } + } + + private static void ApplyGridItemPlacement(String value, IPropertyContainer element, int property, int spanProperty + ) { + if (value == null) { + return; + } + int? intValue = CssDimensionParsingUtils.ParseInteger(value); + if (intValue != null) { + // grid-row-start: 2 + element.SetProperty(property, intValue); + return; + } + Matcher matcher = iText.Commons.Utils.Matcher.Match(SPAN_PLACEMENT, value.Trim()); + if (matcher.Matches()) { + int? spanValue = CssDimensionParsingUtils.ParseInteger(matcher.Group(1)); + if (spanValue != null) { + // grid-row-start: span 2 + element.SetProperty(spanProperty, spanValue); + } + else { + // grid-row-start: span linename or grid-row-start: span linename 2 + // Later on we will convert linename to number or remove + element.SetProperty(spanProperty, matcher.Group(1).Trim()); + } + return; + } + // grid-row-start: linename + // Later on we will convert linename to number or remove + element.SetProperty(property, value.Trim()); + } + + private static GridApplierUtil.NamedAreas ParseGridTemplateAreas(String templateAreas) { + GridApplierUtil.NamedAreas res = new GridApplierUtil.NamedAreas(); + String[] rows = iText.Commons.Utils.StringUtil.Split(templateAreas, "[\\\"|']"); + int rowIdx = 0; + foreach (String row in rows) { + String rowTrimmed = row.Trim(); + if (String.IsNullOrEmpty(rowTrimmed)) { + continue; + } + ++rowIdx; + int columnIdx = 0; + String[] names = iText.Commons.Utils.StringUtil.Split(rowTrimmed, "\\s+"); + foreach (String name in names) { + if (String.IsNullOrEmpty(name)) { + continue; + } + ++columnIdx; + res.AddName(name, rowIdx, columnIdx); + } + } + return res; + } + + private sealed class NamedAreas { + private const String DOT_PLACEHOLDER = "."; + + private const String AREA_START_SUFFIX = "-start"; + + private const String AREA_END_SUFFIX = "-end"; + + private readonly IDictionary areas = new Dictionary(); + + private int rowsCount = 0; + + private int columnsCount = 0; + +//\cond DO_NOT_DOCUMENT + internal NamedAreas() { + } +//\endcond + + // Empty constructor + public void AddName(String name, int row, int column) { + // Dot has a special meaning saying this area is not named and grid-template-areas doesn't work for it + // Numbers are also not allowed + if (DOT_PLACEHOLDER.Equals(name) || CssDimensionParsingUtils.ParseInteger(name) != null) { + return; + } + GridApplierUtil.Placement placement = areas.Get(name); + if (placement == null) { + areas.Put(name, new GridApplierUtil.Placement(row, row, column, column)); + } + else { + placement.IncreaseSpansTill(row, column); + } + rowsCount = Math.Max(rowsCount, row); + columnsCount = Math.Max(columnsCount, column); + } + + public void SetPlaceToElement(String name, IPropertyContainer element) { + GridApplierUtil.Placement placement = areas.Get(name); + if (placement == null) { + return; + } + element.SetProperty(Property.GRID_ROW_START, placement.GetRowStart()); + element.SetProperty(Property.GRID_ROW_END, placement.GetRowEnd() + 1); + element.SetProperty(Property.GRID_COLUMN_START, placement.GetColumnStart()); + element.SetProperty(Property.GRID_COLUMN_END, placement.GetColumnEnd() + 1); + } + + public IDictionary> GetNamedRowNumbers() { + IDictionary> namedNumbers = new Dictionary>(areas.Count * 2); + foreach (KeyValuePair area in areas) { + namedNumbers.Put(area.Key + AREA_START_SUFFIX, new List(JavaUtil.ArraysAsList(area.Value.GetRowStart( + )))); + namedNumbers.Put(area.Key + AREA_END_SUFFIX, new List(JavaUtil.ArraysAsList(area.Value.GetRowEnd() + + 1))); + } + return namedNumbers; + } + + public IDictionary> GetNamedColumnNumbers() { + IDictionary> namedNumbers = new Dictionary>(); + foreach (KeyValuePair area in areas) { + namedNumbers.Put(area.Key + AREA_START_SUFFIX, new List(JavaUtil.ArraysAsList(area.Value.GetColumnStart + ()))); + namedNumbers.Put(area.Key + AREA_END_SUFFIX, new List(JavaUtil.ArraysAsList(area.Value.GetColumnEnd() + + 1))); + } + return namedNumbers; + } + + public int GetRowsCount() { + return rowsCount; + } + + public int GetColumnsCount() { + return columnsCount; + } + } + + private sealed class Placement { + // 1-based indexes. + private int rowStart; + + private int rowEnd; + + private int columnStart; + + private int columnEnd; + + public Placement(int rowStart, int rowEnd, int columnStart, int columnEnd) { + this.rowStart = rowStart; + this.rowEnd = rowEnd; + this.columnStart = columnStart; + this.columnEnd = columnEnd; + } + + public void IncreaseSpansTill(int row, int column) { + bool valid = false; + if (row == rowEnd + 1) { + valid = column == columnStart; + } + else { + if (column == columnEnd + 1) { + valid = row == rowEnd; + } + } + // valid stays false + if (!valid) { + LOGGER.LogError(Html2PdfLogMessageConstant.GRID_TEMPLATE_AREAS_IS_INVALID); + return; + } + rowEnd = row; + columnEnd = column; + } + + public int GetRowStart() { + return rowStart; + } + + public int GetRowEnd() { + return rowEnd; + } + + public int GetColumnStart() { + return columnStart; + } + + public int GetColumnEnd() { + return columnEnd; + } + } + } +} diff --git a/itext/itext.html2pdf/itext/html2pdf/css/apply/util/PageBreakApplierUtil.cs b/itext/itext.html2pdf/itext/html2pdf/css/apply/util/PageBreakApplierUtil.cs index bcb945567..b44570ede 100644 --- a/itext/itext.html2pdf/itext/html2pdf/css/apply/util/PageBreakApplierUtil.cs +++ b/itext/itext.html2pdf/itext/html2pdf/css/apply/util/PageBreakApplierUtil.cs @@ -166,6 +166,7 @@ private class HtmlPageBreakWorker : ITagWorker { /// private HtmlPageBreak pageBreak; +//\cond DO_NOT_DOCUMENT /// /// Creates a new /// @@ -175,6 +176,7 @@ private class HtmlPageBreakWorker : ITagWorker { internal HtmlPageBreakWorker(HtmlPageBreak pageBreak) { this.pageBreak = pageBreak; } +//\endcond /* (non-Javadoc) * @see com.itextpdf.html2pdf.attach.ITagWorker#processEnd(com.itextpdf.html2pdf.html.node.IElementNode, com.itextpdf.html2pdf.attach.ProcessorContext) diff --git a/itext/itext.html2pdf/itext/html2pdf/css/resolve/CssContentPropertyResolver.cs b/itext/itext.html2pdf/itext/html2pdf/css/resolve/CssContentPropertyResolver.cs index ca8e8bc89..c2d5f3f56 100644 --- a/itext/itext.html2pdf/itext/html2pdf/css/resolve/CssContentPropertyResolver.cs +++ b/itext/itext.html2pdf/itext/html2pdf/css/resolve/CssContentPropertyResolver.cs @@ -39,6 +39,7 @@ You should have received a copy of the GNU Affero General Public License using iText.StyledXmlParser.Node; namespace iText.Html2pdf.Css.Resolve { +//\cond DO_NOT_DOCUMENT /// The Class CssContentPropertyResolver. internal class CssContentPropertyResolver { private static readonly ILogger LOGGER = ITextLogManager.GetLogger(typeof(CssContentPropertyResolver)); @@ -54,6 +55,7 @@ internal class CssContentPropertyResolver { private const int TARGET_COUNTER_MIN_PARAMS_SIZE = 2; +//\cond DO_NOT_DOCUMENT /// Resolves content. /// the styles map /// the content container @@ -264,6 +266,7 @@ internal static IList ResolveContent(IDictionary styles, } return result; } +//\endcond /// Resolves content in case of errors. /// the content @@ -292,6 +295,7 @@ private class ContentTextNode : ITextNode { /// The content. private String content; +//\cond DO_NOT_DOCUMENT /// /// Creates a new /// @@ -303,6 +307,7 @@ internal ContentTextNode(INode parent, String content) { this.parent = parent; this.content = content; } +//\endcond /* (non-Javadoc) * @see com.itextpdf.html2pdf.html.node.INode#childNodes() @@ -333,4 +338,5 @@ public virtual String WholeText() { } } } +//\endcond } diff --git a/itext/itext.html2pdf/itext/html2pdf/css/resolve/DefaultCssResolver.cs b/itext/itext.html2pdf/itext/html2pdf/css/resolve/DefaultCssResolver.cs index 26c2f44a1..376f1faec 100644 --- a/itext/itext.html2pdf/itext/html2pdf/css/resolve/DefaultCssResolver.cs +++ b/itext/itext.html2pdf/itext/html2pdf/css/resolve/DefaultCssResolver.cs @@ -143,11 +143,12 @@ private IDictionary ResolveStyles(INode element, CssContext cont elementStyles = StyleUtil.MergeParentStyleDeclaration(elementStyles, entry.Key, entry.Value, parentStyles. Get(CommonCssConstants.FONT_SIZE), inheritanceRules); // If the parent has display: flex, the flex item is blockified - // no matter what display value is set for it (except 'none' value). + // no matter what display value is set for it (except 'none' and 'grid' values). // See CSS Flexible Box Layout Module Level 1, // W3C Candidate Recommendation, 19 November 2018: 4. Flex Items. String currentElementDisplay = elementStyles.Get(CssConstants.DISPLAY); - if (IsFlexItem(entry, currentElementDisplay) && !CommonCssConstants.NONE.Equals(currentElementDisplay)) { + if (IsFlexItem(entry, currentElementDisplay) && !CommonCssConstants.NONE.Equals(currentElementDisplay) && + !CommonCssConstants.GRID.Equals(currentElementDisplay)) { elementStyles.Put(CssConstants.DISPLAY, CssConstants.BLOCK); } } diff --git a/itext/itext.html2pdf/itext/html2pdf/css/resolve/HtmlStylesToCssConverter.cs b/itext/itext.html2pdf/itext/html2pdf/css/resolve/HtmlStylesToCssConverter.cs index f7bfaee1c..d9e26bd8a 100644 --- a/itext/itext.html2pdf/itext/html2pdf/css/resolve/HtmlStylesToCssConverter.cs +++ b/itext/itext.html2pdf/itext/html2pdf/css/resolve/HtmlStylesToCssConverter.cs @@ -31,6 +31,7 @@ You should have received a copy of the GNU Affero General Public License using iText.StyledXmlParser.Node; namespace iText.Html2pdf.Css.Resolve { +//\cond DO_NOT_DOCUMENT /// Utilities class that converts HTML styles to CSS. internal class HtmlStylesToCssConverter { /// Maps HTML styles to a specific converter. @@ -638,4 +639,5 @@ public virtual IList Convert(IElementNode element, String value) } } } +//\endcond } diff --git a/itext/itext.html2pdf/itext/html2pdf/css/resolve/UserAgentCss.cs b/itext/itext.html2pdf/itext/html2pdf/css/resolve/UserAgentCss.cs index 5b70da313..06d090850 100644 --- a/itext/itext.html2pdf/itext/html2pdf/css/resolve/UserAgentCss.cs +++ b/itext/itext.html2pdf/itext/html2pdf/css/resolve/UserAgentCss.cs @@ -31,6 +31,7 @@ You should have received a copy of the GNU Affero General Public License using iText.StyledXmlParser.Node; namespace iText.Html2pdf.Css.Resolve { +//\cond DO_NOT_DOCUMENT /// Utilities class to get the styles of a node. internal class UserAgentCss { /// The path to the default CSS file. @@ -68,4 +69,5 @@ public static IList GetStyles(INode node) { return defaultCss.GetCssDeclarations(node, MediaDeviceDescription.CreateDefault()); } } +//\endcond } diff --git a/itext/itext.html2pdf/itext/html2pdf/logs/Html2PdfLogMessageConstant.cs b/itext/itext.html2pdf/itext/html2pdf/logs/Html2PdfLogMessageConstant.cs index 4174fe173..0a67d7b82 100644 --- a/itext/itext.html2pdf/itext/html2pdf/logs/Html2PdfLogMessageConstant.cs +++ b/itext/itext.html2pdf/itext/html2pdf/logs/Html2PdfLogMessageConstant.cs @@ -155,6 +155,17 @@ public sealed class Html2PdfLogMessageConstant { public const String IMMEDIATE_FLUSH_DISABLED = "Setting createAcroForm disables immediateFlush property"; + public const String GRID_TEMPLATE_AREAS_IS_INVALID = "grid-template-areas property is invalid. " + "The result is nondeterministic"; + + public const String LINENAMES_ARE_NOT_SUPPORTED_WITHIN_AUTO_REPEAT = "Line names are not supported " + "with auto-repeat as a track-size"; + + public const String ADDING_GRID_LINES_TO_THE_LEFT_OR_TOP_IS_NOT_SUPPORTED = "Adding grid lines to the left " + + "or to the top is not supported"; + + public const String SUBGRID_VALUE_IS_NOT_SUPPORTED = "Subgrid value for grid-template-row\\columns isn't supported"; + + public const String GRID_TEMPLATE_WAS_NOT_RECOGNISED = "Grid template {0} value was not recognised"; + private Html2PdfLogMessageConstant() { } //Private constructor will prevent the instantiation of this class directly diff --git a/itext/itext.html2pdf/itext/html2pdf/resolver/font/DefaultFontProvider.cs b/itext/itext.html2pdf/itext/html2pdf/resolver/font/DefaultFontProvider.cs index 2357baa24..4758031c1 100644 --- a/itext/itext.html2pdf/itext/html2pdf/resolver/font/DefaultFontProvider.cs +++ b/itext/itext.html2pdf/itext/html2pdf/resolver/font/DefaultFontProvider.cs @@ -40,13 +40,17 @@ namespace iText.Html2pdf.Resolver.Font { /// series of fonts that are shipped with the add-on. /// public class DefaultFontProvider : BasicFontProvider { +//\cond DO_NOT_DOCUMENT /// The path to the shipped fonts. internal const String SHIPPED_FONT_RESOURCE_PATH = "iText.Html2Pdf.font."; +//\endcond +//\cond DO_NOT_DOCUMENT /// The file names of the shipped fonts. internal static readonly String[] SHIPPED_FONT_NAMES = new String[] { "NotoSansMono-Regular.ttf", "NotoSansMono-Bold.ttf" , "NotoSans-Regular.ttf", "NotoSans-Bold.ttf", "NotoSans-BoldItalic.ttf", "NotoSans-Italic.ttf", "NotoSerif-Regular.ttf" , "NotoSerif-Bold.ttf", "NotoSerif-BoldItalic.ttf", "NotoSerif-Italic.ttf" }; +//\endcond /// The logger. private static readonly ILogger LOGGER = ITextLogManager.GetLogger(typeof(iText.Html2pdf.Resolver.Font.DefaultFontProvider diff --git a/pdfHTML.nuspec b/pdfHTML.nuspec index d57e0ef4a..b1f6b1763 100644 --- a/pdfHTML.nuspec +++ b/pdfHTML.nuspec @@ -2,7 +2,7 @@ itext.pdfhtml - 5.0.4 + 5.0.5 iText pdfHTML Apryse Software Apryse Software @@ -19,10 +19,10 @@ - + - + diff --git a/port-hash b/port-hash index f1d6d8170..75597fd9f 100644 --- a/port-hash +++ b/port-hash @@ -1 +1 @@ -2050ed360d6959873cb1b180125a9a54650a7c66 +a979e828bc10dbeb36323cecc3cbf201dc2ce060